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

Logon Script

Status
Not open for further replies.

Ablecken

Programmer
Joined
Jun 5, 2001
Messages
130
Location
US
Is there any way to get the username of the logging in person for use in the batch file. like mapping a drive to there home directory by there username?

thanx

Able
 
If the machine the script is running on is a NT\2000, you can use something like "net use p: \\servername\sharename\%username%". Otherwise it would be best to use something like kixstart. It provides a lot more scripting power.

BTW. You can reference any environment variable by putting the % signs around the environment variable. You can view the available environment variables by typing "set" at a command prompt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top