Hello, we are running Windows 2003 on our terminal server. We have our users using terminal services to run an application on the server. We have their RDP session setup so that it launches a specific program when they connect to the server. Essentially, their RDP session is shelled out to this application. We would like it so that if these users RDP in to our terminal server, they get a specifc drive mapping. However we only want them to get the drive if they RDP into this server. We don't want them to get the drive if they are just logging in to a workstation. This client is using KIX32.exe to run their login scripts. In the script I have added the following statements so that when these users RDP to the server, they will get a new mapped drive. For some reason, these new statements are not mapping the drive. Any ideas on what the problem is would be greatly appreciated.
if %computername% == "server" (GOTO :true) ELSE Goto :False
net use J: /delete
net use J: \\server\directory
Workstation not permitted J:\ mapping