Link to home
Start Free TrialLog in
Avatar of billygreen
billygreenFlag for United States of America

asked on

Logon Script for Terminal Server 2003

I have a 2003 Terminal CLOUD Server and have about three users that remote in for a virtual desktop environment. The server is NOT in a Domain or running AD. The server is only in a workgroup. I add users in Computer Management, Local Users and Groups.

I need to map a drive on each user account to a local folder on the same server. When I use the "Subst p: C:\folder" command it maps a P drive just fine and my software works. However, when I log off the user account and log back in, the P:\ drive is not mapped anymore. The drive won't stay mapped once you log off.

Therefore, my assumption is that I will need to run this command as a logon script. I created a text file with the command and named it file.bat. I see under the user properties, there is a Profile Tab with the User Profile settings where it appears that I could add the name of the file.

Since the Server is not a DC, I don't have the typical C:\Windows\sysvol\sysvol\domain.dom\scripts path to place the file.

Where does the file.bat file go in order for the TS Server to recognize the file to run it per user account?

ASKER CERTIFIED SOLUTION
Avatar of jonahzona
jonahzona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ks_admin
ks_admin

Also, if you use the /persistent:yes at the end of that command, it will be there after a logout/login.

ks_admin