It would take me several minutes to create a task in the Task Scheduler and I wanted to fast track it to quickly deploy scripts when needed so I made this PowerShell script to create and register the script on a schedule. I found a post about creating the task then having it change to user name when it registers the task like below w/ Get-Content but I wanted to really learn the ins and outs of how to do it all in PowerShell. Please see the .ps1 for the full break down. It also will install PowerShell 7.2 if its not installed as that is where I run my scripts.
top of page
bottom of page
Comments