Pcornel
Automation

Windows Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5663

Back to the Topic

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> — WinRM
  • Invoke-Command -ComputerName <host> { $PSVersionTable } — remote PowerShell
  • ansible 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

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact source revision, hosts and execution identity are explicitSelector drift, stale inventory or wrong token changes scope/authority
OperationTool/provider action and per-host result are traceablePartial failure, hidden error semantics or environment differences are lost
Platform statePersistent and effective state are read backCommand/cmdlet success is mistaken for convergence
Workload proofOriginal service/application acceptance passesAutomation 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

Confirmation

Confirm action

Continue?