- 1 year ago
PowerShell - Start another instance of PowerShell.exe without elevation and using -NoProfile
To start another instance of PowerShell.exe
without elevation and using the -NoProfile
option, you can use the following steps:
Open PowerShell: Open PowerShell by typing "PowerShell" in the Start menu or by opening a PowerShell terminal.
Create a new PowerShell process: Use the
Start-Process
cmdlet to create a new PowerShell process. You can specify the-Verb RunAs
option to run the process without elevation, and the-NoProfile
option to prevent it from loading your profile script. For example:arduinoStart-Process powershell.exe -Verb RunAs -NoProfile
This command will create a new instance of
PowerShell.exe
without elevation and using the-NoProfile
option.Use the new PowerShell process: Once the new PowerShell process is created, you can use it to execute any commands that you want. You can type commands directly into the new PowerShell console or use the
Invoke-Command
cmdlet to run commands remotely.
By following these steps, you should be able to start another instance of PowerShell.exe
without elevation and using the -NoProfile
option.