/build/static/layout/Breadcrumb_cap_w.png

Using XCopy via K1000

  1. sys\cmd.exe” mit Parameter “/c ”xcopy \\***SERVER***\mdtbuildlab$\Applications\sap guilogon\sapqe4_ini\saplogon.ini %userprofile%\appdata\roaming\sap\common\ /e /c /y“” starten.

 

what the hell is wrong with this script?

the kace send it but nothing happend....but manually its works perfect..o_O wtf?


0 Comments   [ + ] Show comments

Answers (5)

Answer Summary:
create a online script, upload the file, run as logged in user from the kace dependancy directory
Posted by: SMal.tmcc 12 years ago
Red Belt
6

you are making your life hard.  create a online script, upload the file, run as logged in user from the kace dependancy directory


Comments:
  • thx to you too and the pic ;) - blackbyte 12 years ago
  • running it as anything but the user makes the user type varibles useless
    for a list of varibles see
    http://www.itninja.com/link/environment-variables-in-windows-vista-windows-7-and-windows-8
    http://www.itninja.com/link/list-of-windows-and-dos-command-prompt-environment-variables - SMal.tmcc 12 years ago
Posted by: blackbyte 12 years ago
Blue Belt
1

THANKS AND I LOVE YOU ALL ;)

Posted by: chucksteel 12 years ago
Red Belt
0

What user are you running the script as? By default it will run as system which probably doesn't have access to network resources. 


Comments:
  • runas administrator... -_- - blackbyte 12 years ago
  • XX - gcarpenter 12 years ago
  • Administrator won't have access to the network, most likely. Also, the %userprofile% environment variable will be the administrator profile, which probably isn't where you want the file to go. Try changing the script to an online kscript and setting the run as option to run as the logged in user. - chucksteel 12 years ago
Posted by: gcarpenter 12 years ago
Green Belt
0

I tried this before, but then I just straight gave up. Might work for you.

The current workaround would to pre append the start /wait command in front of the xcopy command.

For example:
xcopy \\printsvr\installs\ABC c:\Drivers\ABC\

Use the following instead:
start /wait xcopy \\printsvr\installs\ABC c:\Drivers\ABC\

http://www.kace.com/support/resources/kb/article/Unable-to-execute-xcopy-command-in-script-using


Comments:
Posted by: cblake 12 years ago
Red Belt
0

Running the script as the user is likely the solution here. We might need more info to be more helpful though, Like what OS are you running this against, what server and agent version, post the XML from your script.

As an alternate option- Any reason you couldn't use file sync?

 
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