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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripts for logging into 2003 domain

Status
Not open for further replies.

kdeans

IS-IT--Management
Apr 3, 2000
129
0
0
CA
The following line will work for NT/2000/XP to map a user's S: to a directory bearing the same name as their logon ID.

@net use S: \\servername\sharename\data\users\%username%

I run into two problems when I attempt to accomplish the same thing with a win98 computer (we still have 40 or so). I can branch the script based on operating system but I can't find the right syntax to get the same mapping for a user logging on to win98.

First, I cannot map beyond the share name. The example above lets non-win98 users map a few levels down the tree from the actual share.

Secondly, I am unable to use a variable tospecify the user ID as the directory name or share that I want to map to. I am unable to find a list of variables that win98 will recognize. These are not home directories.

Does anyone have any ideas?
 
In Win9x it is not possible map subdirectory of share and there is no workaround.

To use %USERNAME% variable in Win9x logonscript you can use utility PUTINENV. PUTINENV copies all the LanManager user variables (including %USERNAME%) to a DOS client.
You can find it here
or

PUTINENV only copies these variables to the local DOS session's environment; you will need to copy the variables to the global Windows environment with WINSET, it's on Win98 CD in \TOOLS\RESKIT\SCRIPTING.

Copy PUTINENV.EXE and WINSET.EXE to the domain controller's NETLOGON share, then add these lines to the login script:

\\SERVERNAME\netlogon\putinenv L
\\SERVERNAME\netlogon\winset username=%username%
net use S: \\SERVERNAME\%username%


===
Karlis
ECDL; MCSA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top