Hiding mapped remote drives on Terminal Services (\\tsclient\c)
Posted on 2007-11-30
I'm trying to use a client's remote desktop mapped drive which is normally like \\tsclient\c to copy some files from the REMOTE computer onto the server in a logon script.
However, the major problem I'm having is that I don't want that drive to then be available to the user after the logon script runs. It seems that you can't 'DISABLE DRIVE MAPPING' and still be able to map manually (through netuse).
I also can't seem to get the drives to disappear through net use \\tsclient\c /delete.
It says it deletes the drive - however they still show up and are accessible under Windows Explorer (My Computer).
Also, you can still type dir \\tsclient\c right after you delete it - and get a successful directory listing.
Have even tried hiding and preventing access to the drives through GPEDIT - however it won't hide the \\tsclient drives - only local drives (A,B,C,D,etc).
Mainly, we need to be able to copy the files remotely from their computer - but don't want a security risk with them being able to copy files from our server back to their remote computer.
Really need an answer quickly - and am awarding 500 points because of this.