Opening Command Prompt & PowerShell as Administrator in 2 ways
Posted: 22.02.2021, 00:53
I am having problems with both the CMD and PowerShell - trying to run them as Administrator. I want them to open in 2 ways: in the root folder of drive C [i.e. >>c:\<<] and in the current location [i.e. that Panel which happens to be active when I click the icon on the toolbar]
My >>Define favorite toolbars<< settings are as follow
Command Prompt
This opens CMD as Administrator in
So it is working as intended. But also want a second version
And so I changed it to
but it opens CMD in
I also tried
but the result was the same
PowerShell
This opens PowerShell as Administrator but in
If I change
then it will open in
but not as Administrator
And if I combine those two into one
then I can see the PowerShell window opening as Administrator but before it can reveal its location it closes itself. Thus it is simply broken. So how do I correctly combine them; or workaround this?
I tried upgrading the first setup with
but it simply does not work, as the PowerShell open in
I am using FreeCommander XE 2020 Build 840 32-bit public on Windows 10 Enterprise 20H2 19042.746
My >>Define favorite toolbars<< settings are as follow
Command Prompt
Code: Select all
Program or folder:
C:\Windows\system32\cmd.exe
Start folder:
[EMPTY]
Parameter:
/K "cd /d C:\"
[SELECTED OPTIONS]
Enclose each selected item with "
With "Run as" dialog
Maximized
Code: Select all
C:\
And so I changed it to
Code: Select all
Start folder:
%ActivDir%
Parameter:
/K
Code: Select all
C:\Windows\System32
I also tried
Code: Select all
Start folder:
[EMPTY]
Parameter:
%ActivDir%
PowerShell
Code: Select all
Program or folder:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
Start folder:
[EMPTY]
Parameter:
Start-Process PowerShell -Verb runAs
[SELECTED OPTIONS]
Enclose each selected item with "
With "Run as" dialog
Maximized
Code: Select all
C:\Windows\System32
If I change
Code: Select all
Parameter:
-NoExit -Command "& {cd c:\}"
Code: Select all
C:\
And if I combine those two into one
Code: Select all
Parameter:
Start-Process PowerShell -Verb runAs -NoExit -Command "& {cd c:\}"
I tried upgrading the first setup with
Code: Select all
Start folder:
%ActivDir%
and also
Start folder:
C:\
Code: Select all
C:\Windows\System32
I am using FreeCommander XE 2020 Build 840 32-bit public on Windows 10 Enterprise 20H2 19042.746