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

Script Loggin

Status
Not open for further replies.

eagles1

Technical User
May 14, 2002
40
CA
Hi i'm new in sys admin and my vp ask me to do script loging to force the users on the domain to kept off of favorite network, can somebody help me. I know we put the script in the gpo in windows parameters. But on my course we didn't see how to script. If you can show me an example of it.
I have some users under WIN98 and some w2k.
thanks for helping me
 
Windows 2000 scripting can be done:
1. Through batch files if you are just mapping drives.
At the CMD prompt type "net use" for the parameters.
2. Through VB scripting.
3. Through Local Policy Settings

However, to KEEP PEOPLE OFF FAVORITE NETWORK, just do NOT make them users on that network.

Glenn
"Getting older sucks"





 
I use to have login scripts on a w2k environment like that:

(login.bat)
@echo off
rem connect to shares for all
net use k: \\server\share
rem personal shares
call %username%.bat

(user1.bat)
net use m: \\server\management$
net use s: \\server\sales

SteelBurner
 
Does anyone know if there is an equivilent of the Windows 2000 environemnt variables in WIN98? I have ceated logon scripts using the %username% variable to map user's home directory's, which works fine on W2K clients, but not on WIN98 clients!!

Any advice would be greatly appreciated =)



Thanks
 
Hi nutty4567,
the environment variables work fine on NT, W2K and XP but not on Win9x.
 
"Does anyone know if there is an equivilent of the Windows 2000 environemnt variables in WIN98?"

You can set the same environment variables in Win9x as in Windows 2000 using winset.exe, a utility you can find on your Win9x CD (location may vary depending on version, but search the CD for "winset.exe"), and the KixTart scripting language ( KixTart provides functions which duplicate the W2K environment variables, which can then be used to set those variables under Win9x with winset.

Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top