We are developing an automation script using PowerShell for Post OS Build checkouts. We typically do checks like specific software installed or not (McAfee, WinZip), Registry changes, Time domain synch and enabling windows features if it is not present ( ISS etc).
This script may be run in following scenario.
- from same machine
- from remote machine
- from remote machine for many servers
Run-PostBuildCheckout -Computer D1,D2 -Verbose
For these above scenario,
Please advise about remote model i can go for…
- Create a session for each computer and run the checks (New-PSSession & Invoke-Command)
- Directly running command by passing computer in parameter (Get-wmiobject -computername D1)
- Any other good method i can follow for this scenario.
Overall 20 checkouts to be finished.