I'm trying to edit the registry from a PowerShell script which will run on startup (through the task scheduler). Since the domain account I'm using does not have privileges I'm getting an error. Can I pass through credentials for a local admin account within the script?
Note: I need a solution that won't raise a user prompt for username/password. The script is supposed to be automated without need for user input.