Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Powershell in Task Scheduler

$
0
0

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?

submitted by /u/blitzballer2201
[link] [comments]

The post Powershell in Task Scheduler appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images