WINNT4 and win95 scripting

Breaker78

Senior member
Oct 9, 1999
293
0
0
Ok, I did a search on this board about this and this is what i found.

http://forums.anandtech.com/arcmess..._key=y&keyword1=login&keyword2=script

What I have is an NT 4.0 Server as a PDC, and NT 4 Workstation, Windows 2000, and win95 clients.

We have NO login script right now. Well, all we have is a time sync in a login.bat. Users have been mapping there drives and hopefully, windows has just been remembering the settings and mapping them each time they log on.

After doing some reading this is what i came up with:

****start of script****
\\ENG\NETLOGON\PUTINENV L
\\ENG\NETLOGON\WINSET USERNAME=%USERNAME%
\\ENG\NETLOGON\WINSET GROUP=%GROUP%


net use H: \\ENG\USERS\%USERNAME%

IF INGROUP "SALES"
NET USE G: "\\ENG\SALES"
END

IF INGROUP "CONST"
NET USE G: "\\ENG\CONST"
END

IF INGROUP "ENG"
NET USE G: "\\ENG\ENG"
END

IF INGROUP "Managers"
NET USE G: "\\ENG\Managers"
END

NET USE P: "\\ENG\PUBLIC"
****end of script****

Will this work with all of my clients?

What we are doing is moving all of the shares from one server to another. So what I also want to add into the script is something that says, "if H: exist, disconnect, etc"?

Does anyone know how to do this? Or a good reference on windows login scripting?

Thanks





 

MiniMe69

Senior member
Oct 12, 2000
290
0
0
that will only work if you are using local group names that are the same as the log on script. if your users are authenticated by the NT PDC server and each department is seperated by local groups then you can use that structure. if everyone uses the same shares on the server, you can use net use. else if you have a few users, you can have scripts for each user. this is done by using the domain manager and creating scripts for each user and saving it in the NETLOGON directory.

best thing to do is buy a book. or research some info...try www.is-it-true.org or searching for NT logon scripts.