Login Script in W2k/NT

kw7

Member
Sep 27, 2000
88
0
0
Can anyone tell me how could I set up a login script, so when everyone login, they would always map then same network drive?
Also, does anyone know how could I config the PDC to provide roaming profiles? Thanks
 

Plantanthera

Senior member
Jan 28, 2001
431
0
0

1. Create a share folder for the Roaming User/Group profile.

2. Save the script file to the default location WINNT\SYSTEM32\REPL\IMPORT\SCRIPTS

3. Map network G: drive to a sharefolder NET USE G: \\SERVER1\SHAREDFOLDER

You can also use MS Windows Scripting Host (.WSH) for Win9.x & NT4, or .WSH, Jscript, VB with Win2k to aid with scripting.
 

Plantanthera

Senior member
Jan 28, 2001
431
0
0
:Q

I guess you didn't understand what I meant...hmm, my scripting is a little rusty so you have to read it up for yourself or ask others for help, but here is step by step howto create a Roamming profile:

1. Start > Programs > Administrative Tools > User Manager for Domains (to start User Manager for Domains)

2. Click, on the apropriate user > Profiles (or create the users)

3. In the User Profile Path enter the network share location where the profile should go,
\\servername\share name\user name = e.g G:\winnt\profiles\kw7
%systemroot%/profiles/%username% = e.g G:\winnt\profiles\kw7

4. Then Click OK to finish.

To make the profile mandatory, rename the file ntuser.dat to ntuser.man, located at the base of the profile location.



Logon Script for group:

IF INGROUP "ROAMING"
NET USE G: "\\SERVERNAME\SHAREDFOLDER"
END



or you clould try this for user:

IF "%USERNAME%"
NET USE G: "\\SERVERNAME\SHAREDFOLDER"
END



 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
If you havent already decided on a language, try Kix.

Very simple language specifically made for NT logon scripts.
 

kw7

Member
Sep 27, 2000
88
0
0
This is very useful, I got a lot of help from the KIX website. Actually, I'm a newbie in logon script, at first i think I could just write a text file and ask NT to run it as a script, however it seems there are better ways to control network logon sequesce!
Thanks for the info guys!
 

kw7

Member
Sep 27, 2000
88
0
0
Actually, I got problem when I try to copy files to the NETLOGON share which is on the servers. Do you guys know why? Or how could I copy files to that share?