WAD /elevated failure...

May 24, 2010
855
0
Northlake, Il
Running TCMD with the /elevated parameter yields a message box "The parameter is incorrect. /elevated". Also right-clicking on the tcmd icon on the task bar (which how I normally used to start a TCMD session in administrative mode) no longer has a "Run as administrator" option.. I actually have found no way to delete files/directories from the "C:\Program Files (X86)". I am the first (and only) user on this Windows 7 machine.
 
May 24, 2010
855
0
Northlake, Il
Rex, "/Elevated" is an option of the start command in the help file (I just looked at it). "Start /Elevated /PGM TCMD.exe" yields :"The system can not find the file specified. /Elevated". And "Stare /PGM TCMD.exe /Elevated" yields "The system cannot find the file specified. /Elevated". And I have been right-clicking Take Command (from an icon pinned to the task bar) to select "Run as Administrator" for many years now. And just ignoring the previous two sentences, how do I start an elevated TCMD session?
 

rconn

Administrator
Staff member
May 14, 2008
12,363
150
Rex, "/Elevated" is an option of the start command in the help file (I just looked at it). "Start /Elevated /PGM TCMD.exe" yields :"The system can not find the file specified. /Elevated". And "Stare /PGM TCMD.exe /Elevated" yields "The system cannot find the file specified. /Elevated".

As I said, "/elevated" is an option of START, not TCMD. Your syntax should be:

START /elevated /PGM tcmd.exe

You can also start TCMD elevated by right clicking on its icon from Explorer and selecting "run as administrator".
 
May 24, 2010
855
0
Northlake, Il
Rex you didn't read what I wrote carefully enough - please look at it. 'Start /Elevated /PGM "TCMD.exe" does not work ("... cannot find the file specified. "/PGM") and "Run as administrator" no longer appears if I I right-click the "TCMD" icon on the task bar (to which it is pinned).
 

rconn

Administrator
Staff member
May 14, 2008
12,363
150
Rex you didn't read what I wrote carefully enough - please look at it. 'Start /Elevated /PGM "TCMD.exe" does not work ("... cannot find the file specified. "/PGM") and "Run as administrator" no longer appears if I I right-click the "TCMD" icon on the task bar (to which it is pinned).

This syntax definitely will start TCMD.EXE elevated:

start /elevated /pgm tcmd.exe

Provided that TCMD.EXE is in the current directory, and provided you're not running in a limited account with no UAC elevation privileges. (Actually the /PGM option is unnecessary unless you're passing a quoted filename, so you could just enter "start /elevated tcmd.exe" from a TCC prompt.)

"Run as administrator" is an Explorer option, not a taskbar option. A program pinned to the taskbar will not have that option unless you specifically create it for the jumplist.

Did you try right-clicking on the TCMD icon from File Explorer?
 
May 24, 2010
855
0
Northlake, Il
Well Rex we are at an impasse here; that command (I copied it from your reply and pasted it into a TCC window) yields (and I quote) 'TCC: (Sys) The system cannot find the file specified. (line feed) /elevated"' so it (no longer) works as documented (It definitely will not start TCMD elevated; see the screen shot enclosed is the attached .zip file) . And right-clicking the Take Command icon on the taskbar (to which it is pinned) no longer has the "Run as administrator" option (Just "Take Command" and "Unpin this program from the taskbar."; again look at the screen shot in the attached .zip file). This is brand-new behavior which started after the last set of Windows Updates (Windows 10 Pro). Obviously Windows Update "broke it", which is even more sensible given that this started immediately after a (rather-long) set of Windows Updates. The bottom line is that this absolutely "kills" me; I am totally unable to install a program into the "C:\Program Files (x86)" directory.

I will note that I used the longer format for the "Start" command (specifically the use of the /PGM keyword) as an attempt to get "Elevated" to work; it was not my habit to use that keyword in the past.

Update: From what you have said in this stream it appeared that "Start" is a native windows command rather than something being supplied by TCC. So I went into a native DOS command prompt and entered "Start /?" to get the native DOS help. Bottom line: there is no "/Elevated" parameter listed in the "help" display (again see attached .zip file). So you have nothing to do with it which leaves me up the creek without a paddle.

Rex I think you have four options here:

1. Update the documentation so that all references to the "/Elevated" parameter are deleted. (Quite a bit of work for you; issues with disseminating the updated documentation and problems with it being correct only for some version of Windows) and the least desirable from the user perspective).

2. Write you own version of the "Start" command (or equivalent). This assumes that there is a Windows API function that will elevate a process; if such an API does not exist (it must exist because "Install" programs are still able to elevate themselves) that's the end of the ball game.

3. Assuming that an "elevate" Windows API function exists add "/Elevated" as a keyword to the TCMD and/or TCC commands.

4. Persuade Microsoft to put the "/Elevated" parameter back on the "Start" command (the least amount of work for you if you have that much influence with Microsoft).
 

Attachments

  • Native DOS Start Command Documentation.zip
    37 KB · Views: 87
Last edited:

rconn

Administrator
Staff member
May 14, 2008
12,363
150
I have the latest Windows 10 build here, and it works fine. The /Elevated option is internal to the TCC START command; it doesn't have anything to do with START in CMD. (The START in CMD does not support /elevated.)

What version of TCMD are you running? If it's an old one, it won't have the "/elevated" option.

It sounds like you may have an alias for START that is interfering with the command. Try running the command as:

Code:
*start /elevated tcmd.exe

The leading * will override an existing alias.
 
May 24, 2010
855
0
Northlake, Il
Rex you were correct, I did have an alias for "Start" (Start=*Start /PGM %$). However that doesn't explain the absence of the "Run as administrator" option when right-clicking on a program on the taskbar. (I didn't notice this right away because normally I right-click the program on the taskbar and select "Run as administrator".)
 

rconn

Administrator
Staff member
May 14, 2008
12,363
150
Unless you've created a custom jump list (i.e., with the JUMPLIST command in TCC), the right-click menu that appears when you click on the taskbar is displayed & processed by Windows, not TCMD. I have never seen a "run as administrator" option in that menu for any app. There has never been anything in TCMD to do that.
 
Jun 2, 2008
359
4
For pinned items, holding Shift when right clicking gives you the shortcut menu you're used to that includes the Run as administrator option. :)
 
May 24, 2010
855
0
Northlake, Il
Thank you TEA-Time, that restores the functionality that I was needing. I don't remember having to use the Shift key to get that option before and the menu that comes up when you use the Shift key when you right click has many more options than what I remember. However I am disabled and bad memory is my #1 disability.
 
Jun 2, 2008
359
4
No problem. :) Perhaps you're thinking of Vista or previous where shift wasn't required, and rather than pinning to the taskbar, there was the Quick Launch bar with normal shortcuts.
 
Similar threads
Thread starter Title Forum Replies Date
M Start "/Elevated" failure... Support 3
x13 Check if process is elevated? Support 11
I TCC in Elevated mode? Support 6
vefatica BTM, elevated, console window caption? Support 4
vefatica START /elevated and PcaSvc? Support 5
CWBillow TCMD PowerShell Tab elevated Support 6
P Run as Admin tab in non-elevated Take Command session? Support 9
D WAD START /ELEVATED "Title" /PGM "job.btm" Support 6
C How to? run a BTM in elevated, inv tcc tab window Support 9
vefatica TCC window caption in elevated session? Support 5
C OT: Registry OPEN verb to start elevated... Support 2
vefatica Caption when running elevated? Support 4
M How to? Start a program on log on elevated abovenormal Support 5
M How to? /Elevated doesn't do it for me... Support 8
vefatica Elevated session and UpdateTitle? Support 3
Dan Glynhampton Problem with Start /elevated Support 2
vefatica _STARPID & @PID[] after START /ELEVATED Support 10
Jay Sage How to Run Non-Elevated From Elevated TCC Support 1
J start /elevated /inv not invisible Support 4
D Environment in elevated process Support 1
Y Elevated tab Support 4
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
M MOVE does not behaves like intended (on failure) Support 1
M TCmd Failure... Support 1
C TakeCommand 18 Installation Failure Support 13
Jay Sage Failure of ACTIVATE to Set a Window Position Support 3
M A UNC name failure... Support 28
S WAD Xenforo posts - EMAIL delivery failure Support 18
M %_EXECARRAY failure... Support 2
Stefano Piccardi UTF-8 BOM marker @iniread failure Support 6
S Failure: _EXECARRAY Support 1
S @DEVICE failure Support 7
Roedy reame.txt failure in installer Support 1
D iftp failure after upgrading to build 65 Support 9
N Command History Failure? Support 3
N Directory wildcard failure? Support 1
J dir failure with some unicode characters Support 6
J V12 PDIR failure Support 1
J OT: Windows 7 failure Support 24
U failure to load plugin Support 5
Jay Sage Failure in TCMD Help with Favorites Support 9
S SHORTCUT command failure Support 1
S Recent website and forum failure Support 9
J Find failure dialog box failure Support 0
Jay Sage Failure with WINDOW Command Support 4
dcantor IF ISAPP failure Support 12

Similar threads