Help with Netlogon scripts
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Help with Netlogon scripts

 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming
Author Message
Viper62



Joined: 06 Jun 2005
Posts: 29

Posted: Mon Nov 28, 2005 3:16 pm    Post subject: Help with Netlogon scripts Reply with quote

The goal Im trying to accomplish is to be able to update endusers database frontends via a copy command in the netlogon script. Here is what I currently have but I have tried variations to this:

net use z: "\\sqlserver\reps database" /yes
copy \\sqlserver\reps database\Reps SQL Database.adp c:\Documents and Settings\%username%\My Documents\ /y

Can anyone point out where I may have gone wrong and or help me to finish this up. Programming is not my strongest point. Thanx...


Mike
Back to top
View user's profile Send private message
lu_tung



Joined: 17 Nov 2005
Posts: 12

Posted: Sat Dec 03, 2005 11:38 pm    Post subject: Reply with quote

try this:

net use z: \\sqlserver\reps database
copy z:\reps sql database.adp c:\documents and settings\%username%\my documents

-you shouldn't need quotes around the mapped drive path
-you should use the mapping you made
-the "yes" is used with the /persistent:yes.....you shouldn't need this unless you don't plan on running this at every logon.
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB