- Jul
- 325
- 1
I am trying to get a tab set up for PowerShell with elevated rights. I cannot seem to get there. If I just start PowerShell from a shortcut that is set to run as Administrator, it works. I can tell this by the command
[bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")
That returns "True " when run.
But my TCMD tab that is set to run as Admin does not, and returns a "False" to the same string.
What am I doing wrong here? The one thing I see is that if I go to "Options / Take Command Tabs" and look at the PowerShell tab, the "Run As" fields are always empty. I enter the info, get no error, but the tab does not load as Admin, and then the fields are empty upon review.
What do I need to change here?
[bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")
That returns "True " when run.
But my TCMD tab that is set to run as Admin does not, and returns a "False" to the same string.
What am I doing wrong here? The one thing I see is that if I go to "Options / Take Command Tabs" and look at the PowerShell tab, the "Run As" fields are always empty. I enter the info, get no error, but the tab does not load as Admin, and then the fields are empty upon review.
What do I need to change here?