- Jul
- 316
- 0
I have my system set up to have PowerShell set to run as Admin if called.
I do this with a command in my startup
powershell.exe -File C:\pssetpol.ps1
Where pssetpol.ps1 then executes
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
This works fine for direct P-Shell execution form a shortcut. But it isn't carrying over to my PowerShell tab in TCMD. There the presence of elevated rights (Admin) is false.
What do I do to the P-Shell tab in TCMD to have it start elevated?
I do this with a command in my startup
powershell.exe -File C:\pssetpol.ps1
Where pssetpol.ps1 then executes
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
This works fine for direct P-Shell execution form a shortcut. But it isn't carrying over to my PowerShell tab in TCMD. There the presence of elevated rights (Admin) is false.
What do I do to the P-Shell tab in TCMD to have it start elevated?