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!

System Variables

Status
Not open for further replies.

shutech

IS-IT--Management
Joined
Nov 20, 2001
Messages
45
Location
US
I am looking for a difinitive list of sytem variables like
%sytemroot%, %username% and others. These can be used in active directory or in a login script or on a command line.

One thing that I would like to do is place some files on a persons desktop by using a login script.

Copy location\filename c:\documents and settings\%username%\desktop /y

my question with this is that the machines were setup with local accounts before they were put on a domain so if a machine had a local acount on it and then was put on the domain under documents and settings you would have two folders if you used the same name the local acccount would have a folder with "username". The domain account would be a folder with "username.domainname". since policy allows for some to have roaming profiles they could go to a machine that they had not had a local account on therefore in that situation their folder structure under documents and settings would be just username without domain name. My question is how does this affect anything that I want to do using the differnt system varriables and the copy example above.

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top