Windows Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5663
Answer
Windows Automation coordinates repeatable changes and evidence collection across Windows hosts while keeping remoting, security context, configuration stores, service/update state and workload acceptance distinct.
Remember
- Remote session success ≠ requested Windows operation authorized.
- Cmdlet success ≠ target state persisted or consumed.
- Registry/CIM/service state ≠ application acceptance.
- One computer success ≠ fleet-wide completion or consistency.
First checks
Test-WSMan <host>— WinRMInvoke-Command -ComputerName <host> { $PSVersionTable }— remote PowerShellansible windows -m ansible.windows.win_ping— Ansible to Windows
Verify in this order
controller → WinRM → PowerShell/DSC → Windows host
Where it usually breaks
Windows Automation proves only observed automation and read-back boundaries; it does not by itself prove application correctness, domain dependency health or future fleet consistency.
Automation/controller success is not target-state proof; target config/state is not effective-runtime proof; effective state is not workload proof.
Windows Automation automation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact source revision, hosts and execution identity are explicit | Selector drift, stale inventory or wrong token changes scope/authority |
| Operation | Tool/provider action and per-host result are traceable | Partial failure, hidden error semantics or environment differences are lost |
| Platform state | Persistent and effective state are read back | Command/cmdlet success is mistaken for convergence |
| Workload proof | Original service/application acceptance passes | Automation summary substitutes for actual runtime behavior |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5663