1

How can I switch users on the PS command prompt?

When I start PS, I get the following:

PS C:/Users/neo>

I want to switch users (similar to su - trinity in linux) so that I get something like this:

PS C:/Users/trinity>

The reason I want to switch users is because only trinity has write and execute permissions on some PS scripts on the Windows Server.

Yusuf W
  • 11
  • 2
  • 3
    [runas - Running PowerShell as another user, and launching a script - Stack Overflow](https://stackoverflow.com/questions/28989750/running-powershell-as-another-user-and-launching-a-script) ? – user202729 Nov 06 '21 at 01:38

0 Answers0