Command search within Standard User

I’m trying to run the following command with a script powershell executionpolicy bypass -File .grantaccesscode.ps1.

Unfortunately the command gives me errors as Powershell was run as an administrator and therefore the sub path to which the script is trying to access is only available as a standard user.

How can I run the command as an Administrator as required by powershell to execute a elevated commands but when running the command have it search not within an Administrator account; rather a standard account for the sub-path ?

submitted by /u/SonicSkunk
[link] [comments]

Leave a Reply