Passing Custom Date to Scheduled Task?

We have a script that runs monthly but the date is not always the same. This is a one time script.

I want to be able to pass the date and time to New-ScheduledTaskTrigger, using something similar to Read-Host.

Would also like it to run using the system account.

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

Leave a Reply