Scheduled Task to run as any User

The following script will setup a scheduled task to run as any user by running the task as the ‘Users’ group.

Please note, this is using the .Net method of creating the task, as there’s more options using the .Net method rather than using the PowerShell cmdlet:


The information to help build the below PowerShell script was taken from the website which covers all the information you need