
Run a PowerShell script as a different user
Sometimes it´s required to run a script as a service user on a Windows machine, e.g. for reading file shares as a different user with different permissions or similar tasks. You can easily do this using the following two methods. Method 1: Run a task as different user with Scheduled Tasks The first method is to create a new basic task in Computer Management / System Tools / Task Scheduler / Task Schedule Library. ...








