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

Really simple login script

Status
Not open for further replies.

robatwork

IS-IT--Management
Joined
May 15, 2003
Messages
107
Location
GB
Hi,
I have never used login scripts before, but I want a way to simply copy a database file (foo.mde) from a location on the server onto each user's PC, every time they login.

I want it copied to a folder c:\db (that may not exist initially)

Can anybody advise me the best way to do this? Our domain controller is a W2K server...

many thanks
Rob
 
If not exist c:\db md c:\db
Copy /y "\\server\share\path\to\foo.mde" "c:\db
 
Save the above script as a plain text file with the extention of ".bat", place this in your NETLOGON share on your domain controller, then go into every user account and point them to this log-in script, or use global policy.

Good luck.
 
Thanks for the assist - I was in a rush and should have included that information!

Though you can select multiple user accounts at once and change the properties for the group to make this the logon script for all (you need to do this in each OU).
 
Thanks - got most of the way there myself but didn't try to OU thing - would have been easier for sure#
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top