top of page
Search

Import Task into Task Scheduler w/ PowerShell

chefsitcompendium

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.


7 views0 comments

Recent Posts

See All

New Blog Site

Hey, it's been a while since I last blogged. I have been sitting on quite a few posts relating to PowerShell, Linux, System...

Comments


© 2023 by Chef's I.T. Compendium

Subscribe for Chef's Tech Updates!

Thanks for submitting!

bottom of page