No Error Message when running mklink as limited user

May 18, 2010
3
0
Running the mklink command as a limited user does not produce an error message; rather it indicates that the link was successfully created. Mklink requires elevated administrator rights under Visa and Windows 7, so some sort of error should have been reported. The TCMD help file also does not mention that mklink requires elevated administrator rights under Vista and Windows 7.

This behavior was observed with TCMD v 11.0 build 49 (64-bit) running under Windows 7, 64-bit.
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
> Running the mklink command as a limited user does not produce an error
> message; rather it indicates that the link was successfully created.
> Mklink requires elevated administrator rights under Visa and Windows 7,
> so some sort of error should have been reported. The TCMD help file
> also does not mention that mklink requires elevated administrator
> rights under Vista and Windows 7.

It's a Windows API issue -- MKLINK is calling the Windows CreateSymbolicLink
API, and returning its result. Not much TCC can do if Windows is lying
about the outcome!

(BTW, the Microsoft documentation on CreateSymbolicLink says nothing about
it requiring admin rights.)

Rex Conn
JP Software
 
May 29, 2008
37
0
The help for @ipaddress has an example of echo %@ipaddress[] which doesn't seem
to work anymore.

The help for @ipname has an example of echo %@ipaddress[0]. Should be echo
%@ipname[0].
 
May 26, 2008
537
4
I just tried this with TCC LE 11.00.48 on Windows 7 x64. Not running in elevated mode.

mklink /d reports that "A required privilege is not held by the client."
mklink /j works fine without elevation
 
Similar threads
Thread starter Title Forum Replies Date
mfarah Fixed The DATE command produces the wrong error message. Support 1
D How to? Skip removing directory (RMDIR) without error message Support 2
vefatica Error message from TOUCH Support 2
vefatica Why no error message? Support 2
vefatica REGDIR, strange error message Support 7
D How to? Suppress error message with dir /h and no files? Support 2
Peter Bratton "externally altered" error message Support 23
Stefano Piccardi how to get error message instead of beep? Support 5
J Uninformative START error message Support 0
J ASSOC / FTYPE strange error message Support 3
C Copy (sys) error Support 3
T Error: This page can’t be displayed Make sure the web address //ieframe.dll/dnserrordiagoff.htm# is correct. Support 8
kb6ojs How to? "Specified Account Already Exists" error installing TCMD v27 Support 12
samintz How to? Abort on error DO loop Support 10
vefatica ON ERROR terminates DO loop. Support 0
C Google intregration error Support 4
C FB intregration error Support 0
gworley rd (Remove Directory) gives interesting error: Support 2
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
M Strange error messages from TCC in FTP copy Support 7
R FIND command error Support 9
fpefpe Python dll error Support 3
D error in help documentation? Support 0
R FOR usage error from TCC but not from CMD Support 16
K_Meinhard Help file error Support 1
X small translation error. Support 0
W pdir returns diff results between tcc and tcmd - one is an error msg Support 5
Dmitry L. Kobyakov From old version: had the setup's error been corrected? Support 6
vefatica ON ERROR and pipes? Support 8
MickeyF Why does this batch file give me 'unknown command "else"' error? Support 17
Joe Caverly TASKDIALOG Help link error Support 1
J Error "Contents lost before copy" Support 3
vefatica What's causing this error? Support 4
vefatica Error 203? Support 4
C Activation Error. Support 2
J Error running Python at command line Support 9
Joe Caverly PSHELL Error? Support 16
M Fixed PSHELL command returns error Support 2
O Error in plugin /u Support 2
O TPIPE: Error -Can´t access textpipeengine.dll Support 24
fpefpe How to? script error Support 1
fpefpe How to? script error Support 0
D Error 0xc0000142 and FAR Manager Support 10
F Powershell call fails with "Scripting Integrator 2016 (PowerShell)" license error Support 9
cgunhouse FTP Error Support 5
C How to? Error updating from 20.00.16 to 20.00.21 Support 10
vefatica Missing post and security error Support 4
samintz Documentation TCANSI error Support 8
vefatica WAD ON ERROR GOTO ... Support 11
dcantor Documentation Documentation error in UNSET Support 0

Similar threads