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

wrinting login scripts in Windows NT 4.0

Status
Not open for further replies.

p150772

IS-IT--Management
Joined
Feb 4, 2000
Messages
1
Location
IN
few examples of login scripts in Windows NT 4.0
 
generally the line is:<br>
net use driveletter: \\servername\sharename<br>
<br>
also net use lpt1: \\servername\printername<br>
<br>
run them one after the other in a file called script.bat or whatever, stick it in the netlogon folder of the domain controller/s and specify that name in the login script of the user profile.<br>
<br>
Also check out net use /? for syntax.
 
If your clients are also NT you have the full power of the Windows batch language at you command. If all depends on what you want to do with a logon script? Do you have a specific procedure in mind? <br>
<br>
If you want a LOT of useful tips go to <A HREF=" TARGET="_new"> If you want a very in depth reference buy &quot;Windows NT Shell Scripting&quot; by Tim Hill. <p> Jeff<br><a href=mailto: masterracker@hotmail.com> masterracker@hotmail.com</a><br><a href= > </a><br>
 
You could also use WSH from the Resource Kit. Windows Script Host give you much more functionality than simply a batch or cmd file can. It uses VBScript of JavaScript natively, but will also work with shell scripting such as Perl.
 
There is also a third party called scriptlogic which is used for more complex login scripts like traveling sales who visit multiple sites. <br>
<br>
The website is <A HREF=" TARGET="_new"> <p> <br><a href=mailto: oneworld@goes.com> oneworld@goes.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top