Enable WinRM with Group Policy.
WinRM is the channel Octotor uses to talk to Windows computers. One Group Policy Object on your Domain Controller turns it on for every domain computer at once — no visits to individual machines. This walkthrough shows every screen.
Before you begin
What you need
A Domain Admin account, the Group Policy Management console on your Domain Controller, and your Octotor server's IP address. The screens below come from a real working policy; the example domain is TRIPLEOR.DEMO and the example Octotor server is 172.20.101.5 — substitute your own.
What you're building
One GPO with four settings — open the WinRM firewall port for the Octotor server only, allow the WinRM service, add the Octotor server to the trusted-hosts list, and start the service automatically.
1Create the GPO
On the Domain Controller, open Group Policy Management, right-click the OU that holds your computers (or the domain itself), choose Create a GPO in this domain, and Link it here…, and name it — the example policy is called Octotor WinRM. Right-click the new GPO and choose Edit to open the Group Policy Management Editor, where the next four steps happen.
2Open the firewall — for Octotor only
WinRM listens on TCP port 5985. Add the predefined inbound rule and scope it to your Octotor server, so only Octotor can use the channel:
Right-click Inbound Rules → New Rule… → rule type Predefined → pick Windows Remote Management → keep the HTTP-In entry → action Allow the connection. Then open the new rule's properties, and on the Scope tab add your Octotor server's IP address under Remote IP address.
3Allow remote management through WinRM
In the editor, walk the tree to the WinRM Service folder:
Double-click Allow remote server management through WinRM, select Enabled, and put * in the IPv4 filter field — that tells the service to listen on the machine's addresses. Leave the IPv6 filter empty unless you use IPv6. Click OK.
4Trust the Octotor server
The Trusted Hosts setting tells the machines which remote-management hosts they trust when a connection is made by IP address. Add your Octotor server's IP address here so the machines accept its connections:
Double-click Trusted Hosts, select Enabled, and enter your Octotor server's IP address in the TrustedHostsList field. To list more than one address, separate them with commas. Click OK.
5Start the WinRM service automatically
The service must be running before Octotor can connect. A Services preference item starts it on every machine and keeps it set to start on boot:
Right-click Services → New → Service.
In the properties window: Startup Automatic, Service name WinRM, Service action Start service. Leave Log on as on No change. Click OK.
✓When it takes effect
Domain computers pick the policy up at their next Group Policy refresh — within about 90 minutes, or at the next reboot. To apply it to one test machine right away, run gpupdate /force on that machine.
Test-only: enable WinRM with one command
For a quick test on a single machine, open PowerShell as Administrator on that machine and run:
Enable-PSRemoting -ForceWhat you should see: WinRM is configured and started; several confirmation lines.