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