Home > Windows > Deploying FaultTracePC across a fleet from a single computer — a PowerShell (…)
Deploying FaultTracePC across a fleet from a single computer — a PowerShell script
Thursday 3 September 2026, by
A free script that installs FaultTracePC on remote Windows computers, one or several at a time, wakes them if they are switched off, and registers them with the fleet console. Written for a real school fleet, published as-is, with no warranty. Since version 1.7.1 it is included in the software and laid down automatically by the console — it stays published here to be read, and stays usable on its own. Its prompts and messages are in French only.
This script’s own prompts, menus and messages are in French. Everything it drives — msiexec, FaultTracePC.Cli.exe, Windows itself — is language-neutral or translated, so it works on an English fleet; but you will be reading French on screen. This page exists so that you know that before downloading. An English version may follow. It does not exist today, and saying otherwise would waste your time.
Since FaultTracePC 1.7.1, this script is included in the software. The console lays it down itself in Documents\FaultTracePC\Deploiement and drives it from its Inventory tab: there is nothing left to download in order to use it. The embedded copy is the one that was proven with that exact version — distributed separately, it had ended up existing in two copies that drifted apart.
The script stays published here so that it can be read before it is run, and stays usable on its own, from a USB stick, without the software. That is deliberate: a tool that acts on remote machines with administrator rights must be readable by whoever launches it.
Group Policy deployment remains the right method for a whole fleet, and it is described in the software’s main article. This script answers the other need, the daily one: install on one machine, or five, right now — without waiting for the next reboot, without touching the policy.
It was written during the September 2026 back-to-school period, on a real school fleet, and fixed every time it failed on a real machine. Its comments record those failures: they explain why each check exists, which is more useful than describing what it does.
What it does, for each computer you name
- checks the name is a domain computer account — a phone or a typo is ruled out before anything is attempted;
- checks it answers, by ping or port 445: many policies block ICMP, and giving up on a live machine would be worse than waking one that is already on;
- checks Windows Remote Management answers, before copying 63 MB that would be wasted;
- if it is off, wakes it with Wake-on-LAN;
- copies the package to the computer, installs it while checking msiexec’s exit code, then deletes the package;
- configures fleet mode if you ask for it, checks the tool’s exit code, then verifies the port really answers.
At the end it prints what to enter in the console — machine name, host, port — and the IP address it actually observed, not the one you thought you remembered. It offers to start again without reopening the window.
A menu at startup also lets you only wake a computer, or only register one that is already installed.
The prerequisite that almost always blocks: WinRM
This is the thing to know before downloading anything.
On a Windows client, the Windows Remote Management service starts « on demand », and nobody ever demands it. The result: the computer answers ping, the \\host\C$ share opens normally, and yet Invoke-Command fails — with a message about firewalls and local subnets, which sends you looking in the wrong place. Ping, SMB and WinRM are three different protocols; a computer answering the first two tells you nothing about the third.
So the script tests port 5985 before copying, and prints the two commands that fix it remotely. They go over RPC, not WinRM — which is exactly why they succeed where the remote session fails:
On a fleet, the durable answer is not to repeat those commands: it is a Group Policy setting the Windows Remote Management (WS-Management) service to Automatic, under Computer Configuration → Windows Settings → Security Settings → System Services. Once, for every machine, and it serves all your tools rather than this one.
Why it copies the package instead of installing from the share
Because it cannot do otherwise. A remote session cannot present your identity to a third computer: the target would introduce itself to the file server with no credentials, and the share would refuse it. This is the Kerberos « double hop », a delegation limit — being a domain administrator changes nothing.
The package is therefore copied to C:\Windows\Temp, installed, then deleted. Only on failure is it left in place with its installation log, for a fix on site.
Wake-on-LAN
The magic packet is a broadcast: it does not cross routers. Irrelevant as long as console and computers share the same VLAN, and useless beyond it — the script says so on screen rather than letting you read an unexplained failure.
The MAC address is looked up in this order: the DHCP server first, which does not go stale; the postes.csv file next, which is only a cache; the ARP table last. The packet is sent from the network adapter that actually reaches the computer, to the subnet broadcast and the general broadcast, on ports 9 and 7. None of this is decorative: sent without choosing the adapter, the packet leaves through whichever comes first — often a virtual machine adapter — and UDP reports no error. The wake-up « succeeds » silently and nothing switches on.
postes.csv is not a target list
It is a MAC address directory, read only to wake a machine that does not answer. Nothing in it is installed automatically: the script installs only on what you name. It can therefore safely contain the phones and tablets your DHCP server returns.
Fleet mode and the master secret
If you ask for it, the script registers the computer with the fleet straight away. The master secret is typed blind, once per run. It is never displayed, never written, never logged: it passes through a temporary file on the target, deleted in every case, success or failure. The computer itself never learns the secret — it derives its own token and stores only that.
After configuring, the script waits for the service to re-read its configuration, then verifies that the port answers. That check is not a flourish: the command can return 0 while the computer stays unreachable because a firewall is closed elsewhere. Without it, you find out the next day, from the console, with no idea which link gave way.
And if the configuration command fails, the script says so with the exit code the tool returned, instead of letting you conclude it was a firewall. « The configuration failed » and « the configuration succeeded but the port is unreachable » are two different faults, looked for in two different places; confusing them costs an evening.
What it sends anywhere
Nothing. No telemetry, no account, no Internet access.
On first run it asks for two values specific to your network — the MSI package path and your DHCP server name — and offers to save them, or not, in a parametres.json file placed beside it. That file holds no secret, but it names your servers: it is not meant to be redistributed. The archive below contains none, and its postes.csv is an empty template.
Before first use: unblock the files
Windows marks anything downloaded from the Internet and refuses to run a script so marked — often with no clear explanation. In the extracted folder:
This is not a sign that the file is dangerous: Windows applies it to every download.
Requirements, plainly
- an Active Directory domain, and administrator rights on the target computers;
- access to
\\host\C$; - WinRM answering on the target (see above);
- the FaultTracePC MSI package, on a share or locally.
The script runs from any folder, including a USB stick, as long as its files stay together. A .cmd launcher requests elevation and displays errors instead of closing the window.
No warranty, and why say so
This script is not signed, not supported, and was written for one specific fleet before being published as-is. It acts on remote machines with administrator rights: read it before you run it. It is commented throughout — in French — and every check is justified by the failure that made it necessary.
MIT licence: free to use, modify and redistribute, with no warranty whatsoever.
Version 1.1, 5 September 2026.