No module Published on Offcanvas position

Ever wanted to start a scheduled task within a powershell script? Well, you sure can!
In my case, our systems have a scheduled task that's run every day after work. However, users requested the ability to do this themselfs instead of shooting the IT department a request and then wait for them to start the task.

The only requirement is that you supply admin credentials inside the script because remotely starting a schedule task requires admin rights.

When I first started using powershell and made them do stuff on a remote computer or when a certain command required to be passed credentials, I, like every beginner, just put the password in plain text in the script.
Over time, I've come to realize this isn't the safest option and especially when your users have to run the script and they just happen to know how to open your script in notepad.

Therefore I've learned to encrypt the passwords and store them in a file where no user should ever be.

Page 5 of 5