Jump to content
Sign in to follow this  
bconant

Script Copy File function from %logonserver%

Recommended Posts

When I try to use the copy file function from %logonserver%\netlogon\Filename  it always fails because it doesn't expand the variable out to the actual logonserver.    When I do an echo %logonserver% from the Automate Command line it doesn't parse either.  When I run the command line as admin it does function properly and echos \\servername.

I tried to use the "copy file as admin" function, but it still fails to use the logonserver Variable properly.  Any ideas on how to get this taken care of?

Share this post


Link to post
Share on other sites

Is %userdomain% available? \\domainname\netlogon should work just as well as \\specificdc\netlogon

A possible option to force the variable to be processed is to just use a command line copy with Shell As Admin. The shell will definitely expand the variable if the File Copy As Admin function doesn’t. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...