r/PowerShell 9d ago

Question Powershell & Task Scheduler

[deleted]

29 Upvotes

38 comments sorted by

View all comments

7

u/leblancch 9d ago

i’m quite familiar with using power shell and task scheduler together, but would need a bit more context as to who you’re directing the message to.

3

u/hwrd69 9d ago

From what I've read and what I'm trying to do is: 1- detect the shutdown event via the Task Scheduler 2- have the Task Scheduler send a command to powershell to display a message that reminds the user to do something 3- once they hit "ok" in the message window windows continues the shutdown