Environmental variable available for login scripts

  • Section(s): Logon
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rated 4.5 out of 5 based on 2 votes.
%COMPUTERNAME% PC Name
%HOMEDRIVE% User's local drive letter
%HOMEPATH% Path to user's home directory
%HOMESHARE% Share used to house user's home area
%LOGONSERVER% Machine that authenicates user logon
%OS% Operating System (ie Windows_NT)
%PROCESSOR% CPU
%USERDOMAIN% Domain containing user's account
%USERNAME% Domain containing user's account

About Wayne Maples

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Help Desk solution?