TCC not recognize maped drive

Dec 11, 2017
14
0
Hi,
I have TCC 17.00.77 (oldest version:) ) and i try to create directory in a network drive z for example.
I got this error:
[C:\Program Files (x86)\JPSoft\TCMD17]Z:
TCC: (Sys) The system cannot find the drive specified.
"Z:"
When i open CMD its work manualy but not as a batch script and in tcc its even not recognize the network drive by also manually and in script.
I'm new in TCC and i'll be happy to know what can be the solution for this issue
Thanks
Chen
 
Dec 11, 2017
14
0
Thanks a lot!
Now UNC path worked.
my problem now is that tcc not recognized Mapd drive like Z: while cmd (typed net use) see the drive?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,823
48
Albuquerque, NM
prospero.unm.edu
How are you mapping the drive? How do you know that it is mapped? What does NET USE report? Vince's question is cogent.

TCC does reliably work with mapped drives, in my experience. However, TCC will not automatically map them for you -- as CMD.EXE occasionally will.
 
Dec 11, 2017
14
0
Hi Charles,
I start by saying that my TCC version is a bit old (ver' 17.00), and i mapped a network drive by explorer (gui method..).
So now i can see the network drive in the window explorer and by command net use in cmd as i said.
i restart the OS (windows 2012 r2) to maybe restart TCC but it not helped.

Here is the output of the command in TCC when i typed NET USE
[C:\Program Files (x86)\JPSoft\TCMD17]net use
New connections will be remembered.

There are no entries in the list.

How do you suggest me to maped what already mapd and be seeing by cmd?
 
Jun 2, 2008
305
1
Sounds like you're running TCC elevated, but CMD is not. For whatever reason, when UAC is enabled, Windows does not make the drives/connections established in unelevated processes (such as explorer) available to elevated ones. They need to be re-established, such as in AnrDaemon's net use "\\remote\IPC$".
 
May 20, 2008
9,273
62
Syracuse, NY, USA
NET.EXE is a stand-alone executable program. NET USE should work exactly the same when run from CMD or TCC. What does NET USE say when you run it from CMD?
 
May 20, 2008
9,273
62
Syracuse, NY, USA
Sounds like you're running TCC elevated, but CMD is not. For whatever reason, when UAC is enabled, Windows does not make the drives/connections established in unelevated processes (such as explorer) available to elevated ones. They need to be re-established, such as in AnrDaemon's net use "\\remote\IPC$".
Good one TEA-Time! If that's the problem, perhaps this registry entry will fix it permanently.

Code:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

        Value: EnableLinkedConnections
        Data:  1 (0x00000001)
 
Jun 2, 2008
305
1
Thanks guys. Hopefully that's Chen's issue. I normally have UAC disabled to avoid exactly those types of issues, but I have it enabled on my computer at work so it doesn't behave any differently than the users I support, so the scenario sounded familiar. Otherwise I probably never would have known.

Thanks for the registry setting, Vince! For some reason I never thought to look for a policy/registry setting for that annoyance. :-/ I'll try it tomorrow at work.
 
May 20, 2008
9,273
62
Syracuse, NY, USA
Thanks for the registry setting, Vince! For some reason I never thought to look for a policy/registry setting for that annoyance. :-/ I'll try it tomorrow at work.
Did you Google it? I think it's right to the point. I did it so long ago that I forgot about it and I only rediscovered it after some Googling. I can't remember mapping a drive unelevated and not being able to see it elevated.
 
Jun 2, 2008
305
1
Yup, I did Google it. It should be perfect. I also saw that apparently an update stopped the setting from affecting DFS drive mappings (a type of mapping I've never used) until it was fixed like 6 months later. Heh
 
Dec 11, 2017
14
0
Hi,
First off all, thanks so much for your help i realy apriciate it .
I did what Vefatica suggets about modify the registry and it's worked like a magic :) Thanks!
I'm not so familiare with TCC, about running TCC elevated, what does it mean?
We use tcc in backgroung (run scripts by CI tools/ jenkins so i would like to know (since i dont know what is non/elevated
mode) what would be the best way to use TCC for this cause.
and if i need to work in a specific mode, how do i changed it permanently..for the good ;)
Cheers
Chen
 
Last edited:
Aug 23, 2010
354
5
"Elevated" means an application is running with administrator access enabled.
In modern Windows (Vista+), being in Administrators group does not automatically equals having administration access to the system.
You have to explicitly elevate the program.

For comparison:
Code:
$ id -G
197121 197611 197610 545 4 66049 11 15 113 4095 66048 262154 401408

# id -G
197121 114 197611 197610 544 545 4 66049 11 15 113 4095 66048 262154 405504
Particularly, the group 114 (Local account, member of Administrators group) and 544 (the local Administrators group itself) only present in elevated token.

I would discourage from altering local policy like suggested. Instead, make up your mind and stick to one or another mode of operation.
 
Dec 11, 2017
14
0
HI,

Thanks AnrDeamon for answer, im using a window server and i understand what you mean.

But stil not no how to open tcc by a user or Admin (Admin=unelevated OR no AdminUser=elevated).

Cheers
Chen
 
Aug 23, 2010
354
5
If you need elevated shell often, you can create a shortcut and set it to start with elevated privileges.
Don't make a mistake, though, the option you need is located on the Shortcut tab (Advanced… - Run as administrator).