I am looking to create a script that may be way out of scripting league (or at least out of my knowledge) with PowerShell. I have a Ping script that will pull systems from a .txt file and output the results into a .csv. I then want the script to look into that .csv file, pull out whichever systems resulted with "Pinged", and run another update script that I have on my local system. Once that update script is done installing patches, I need the system to reboot, and once it is started up, need it to run all of the cycles under the 'Actions' tab in Config Manager in Control Panel.
Is this something that is way too complicated or powerful to complete? My biggest thing is how will the script know once the system is finished installing Windows Updates to then go and reboot itself. Any help is much appreciated. Even if it is just telling me I am a bit out of context! Thanks guys.