Hi Everyone
My circumstance required me to be able to reboot windows 2003 servers via ansible and wait for them to come back and check availability. we do not need to properly configuration manage windows 2003 servers. Anyway we can achieve this on a windows 2003 server with powershell 2.0?
Any help or pointing me to useful resource are much appreciated
Alternatively, I knocked up the following powershell script a long time ago as a proof of concept, but never made use of it (see below). Passing the username and password required as parameters to the script probably isn’t the most secure thing but that might not be your priority.
$ cat legacy_connect.ps1
This example powershell script shows how you can run a remote command on a powershell 2.0 only host