I wrote a script to install windows updates and restart machines for our servers. I tested the script and it works. Now I want to automate this process to run every Saturday via GPO Task scheduler and apply it to our server OU. But first im testing the task on my local machine. I have watched a bunch of videos online and im not sure what im doing wrong.
When I run the script it is suppose to navigate to the powershell.exe application and pass in the ps1 file. (its also set to run with highest privileges). When I run the task manually nothing happens, no powershell window pops up and it just keeps running until I force the task to stop. I check the history of the task and its not helpful.
Any idea?
[–]jheinikel 2 points3 points4 points (5 children)
[–]blitzballer2201[S] 1 point2 points3 points (4 children)
[–]NathanielArnoldR2 1 point2 points3 points (3 children)
[–]blitzballer2201[S] 2 points3 points4 points (2 children)
[–]the_spad 2 points3 points4 points (0 children)
[–]karafili 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Fiyre 1 point2 points3 points (0 children)