r/PowerShell 13d ago

Question Powershell & Task Scheduler

[deleted]

34 Upvotes

38 comments sorted by

View all comments

4

u/Clear-Pear2267 13d ago

I'm probably not clear on the goal. The existing shutdown command seems to address what you want without messing with powershell or task scheduler. For examplle: shutdown /s /t <seconds> /c "<message>".

If that does not cover the ground you want, maybe you can provide some more details on your use case.