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

CREATE DEFAULT USER FOLDERS AT FIRST LOGON

Status
Not open for further replies.

ITSTOAST

Technical User
Mar 3, 2005
71
GB
Hi is it possible to set up a default set of folders for the user at first logon.
I have a set of folders that I wish to populate the "My Documents" (redirected) of each user (and lock these against changes) is it possible via a script?

Only the good die young, me I'm here forever :)
 
easiest way would be to create a shortcut you paste into each users folder, the on the destination set the permissions to read only
 
Hi thanks for the thought, I need all the users to have a set of these folders in their own home folder.

Only the good die young, me I'm here forever :)
 
Create a login script to run and do the following.
dont put the "" in the script

IF NOT EXIST "location" COPY "folder"

Ex. IF NOT EXSIST C:\TESTFOLDER COPY L:\USERTEMPLATE\TESTFOLDER

If you want to test for files within the folder use the same script.

 
location? I understand to be where to place folder, copy?
and L:\?

Only the good die young, me I'm here forever :)
 
The first part istesting to see if the folder exsist, if it does not exsist the second part copys from a source folder.

You want to place a specific folder in each users folder. So your script would look something like this.

IF NOT EXSIST C:\Documents and setting\%USERNAME%\My Document\DESIREDFOLDER COPY L:\USERTEMPLATE\TESTFOLDER

This will check to see if the desiredfolder is in the my documents folder of each user, if not it will copy it from a different location to thier My Documents folder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top