• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

WINNT4 and win95 scripting

Breaker78

Senior member
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





 
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.
 
Back
Top