/build/static/layout/Breadcrumb_cap_w.png

xcopy fails in kace1000

Win7 x64
Trying to do a simple xcopy of a single file from a network drive to a folder inside program files. The file in question is about 300k in size or so. The problem basically comes down to "permissions". I have tried to copy it to a user desktop and then move it, same issue. If I add myself in with full permissions, I can then move/copy the file. Same if I make a .bat and "run as admin". Funny thing is I have admin rights anyways, xcopy just does not run from kace as admin.

This file copy is nothing new other than before I used altiris 6.9 sp5 and it worked like a charm.

I can't just send it out and have users move it, they are all "Users" and have 0 admin rights. Also, being college students, they can't be bothered with doing something like that. /S

So, I am basically looking for a way to have kace run xcopy as admin, or some other method to copy this file using kace. I have a couple hundred machines to do this to so obviously going to each machine is going to take a long time.

5 Comments   [ + ] Show comments
  • Within kace, are you running the batch file as a user with network access? If you run as a local service account, this has no network access and therefore cannot see the share. Also, are you using the full URL for the file, as you cannot use a drive letter unless it is first mapped for the user. - EdT 10 years ago
  • if you want to copy a file I would use File Sync for this (can be found under Distribution) - Nico_K 10 years ago
  • are these x64 machines - SMal.tmcc 10 years ago
  • yep, network access. If I change the bat to copy the file to a user desktop, it works fine. It is the "run as admin" garbage that is fouling things up.

    Nico, I will look at file sync and see what I see. - jon.schwende 10 years ago
    • it could come down to the client is calling the 32 bit version of xcopy from syswow and that will cause problems.

      see this answer:

      Got it figured out for both 32 bit and 64 bit change the install.bat: %windir%\Sysnative\attrib c:\windows\system32\grouppolicy -h -r -s %windir%\Sysnative\attrib c:\windows\system32\grouppolicy\*.* /s /d -h -r -s %windir%\Sysnative\xcopy Registry.pol c:\Windows\System32\GroupPolicy\Machine\ /q /y %windir%\Sysnative\xcopy gpt.ini c:\Windows\System32\GroupPolicy\ /q /y %windir%\Sysnative\xcopy "loudprint1-PC-printers.vbs" c:\Windows\System32\GroupPolicy\Machine\Scripts\Startup\ /q /y - SMal.tmcc 10 years ago
  • http://www.itninja.com/question/xcopy-not-working-in-kace-script-works-in-command-prompt - SMal.tmcc 10 years ago

Answers (1)

Posted by: jmarotto 10 years ago
Fourth Degree Green Belt
0
Use PsExec to elevate the command.

Comments:
  • You can lose network access with this, specially if you use the wrong account to elevate. - dedenker 10 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ