Take Command tab as PowerShell

Jul 12, 2008
286
0
Las Vegas, NV
I have one of my tabs on Take Command set to open a PowerShell instance. If my PS tab starts with the following commands

Command=%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
Directory=C:\
RunAs=

What can I do/modify/add to have PowerShell running with Admin rights?
 
Here is one method of doing what you want;
1546945651215.png


Joe
 
Jul 12, 2008
286
0
Las Vegas, NV
It seemingly didn't work. I get the following error with the tab:

Set-ExecutionPolicy : Access to the registry key
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied. To change the
execution policy for the default (LocalMachine) scope, start Windows PowerShell with the "Run as administrator"
option. To change the execution policy for the current user, run "Set-ExecutionPolicy -Scope CurrentUser".
At C:\Users\OL Man\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:1 char:1
+ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicyCo
mmand
 
Jul 12, 2008
286
0
Las Vegas, NV
After opening the window (getting no error) I ran the following

([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
>>
>> [Security.Principal.WindowsBuiltInRole] "Administrator")
False
PS C:\>
 
Similar threads
Thread starter Title Forum Replies Date
C How to? Mouse support in WSL when in Take Command Tab Support 2
P Run as Admin tab in non-elevated Take Command session? Support 9
D Take Command tab only uses half of window Support 1
H lua Causes Take Command Tab to Exit Support 5
rps Command Input Window tab completion broken Support 7
tmaynard How to? Any way to run a command in a new tab at startup? Support 18
W Opening a new tab takes forever to get the command prompt Support 5
fpefpe How to? start command /tab option/switch Support 6
Mordachai modal dialog in one tab can lock up take command Support 14
ehab aboudaya How to? Command Input history for each tab? Support 0
ehab aboudaya How to? activate tab with same directory in command line Support 6
Phileosophos SELECT command opens additional tab Support 9
Charles Dye Text selection in Take Command tab window Support 13
R Sending keystrokes and activations to Take Command tab windows Support 1
Joe Caverly Display the VIEW window in a Take Command tab window Support 2
daniel347x Is it possible to send a line from the "command input" window to the tab without pressing "Enter", w Support 4
O Make command history tab-specific Support 2
S Weird tab completion in command line Support 2
R Take Command console tab AND TCC are not Chinese friendly Support 13
nikbackm Rename TC tab from command line Support 0
T REN a TCC Tab from command line Support 9
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 9
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3

Similar threads