Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Environmental Variables and Shared Drives

Status
Not open for further replies.

gazzanewpy

Instructor
Oct 21, 2002
127
GB
Okay, I can set up a default user and copy the profile across for printers, etc. However, when I connect shared drives and set environmental variables these seems to disappear. Now, I know XP had a problem with this but the laptops are fully updated so that should not be a problem. The laptops are not always used on the network (completely roaming) and so I wondered if their being removed would lose the drives but it happens even if they are hard-wired (rather than wireless) and logged on, logged off, logged on. SO, how do I set the Environmental Variables for all users and how do I force mapped drives to appear whenever on the network?

ALl help gratefully received...
 
Both tasks should be done by creating a logon script.

Environmental variables require a tool called setx.exe:
NET USE is the command line tool you use in a batch file to ensure the mappings you want exist. For example:

net use d: \\server_name\share_name /Persistant:Yes

Though if on a user workstation the MAP feature is used and 'reconnect at login' checked in each instance, the mapping would persist.
 
Thanks for this. We have been using mapping and reconnect at login but it still gets lost. I did think of a login script in the startup menu but wondered if something would work without the need of a dedicated batch file.

Probably not or at least not as reliably.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top