/build/static/layout/Breadcrumb_cap_w.png

Receiving an error 1 when running a script using k1000 appliance

Running an online shell script as the logged on user to copy a shortcut from a network location. The script actually more of just a command reads as such: if not exist %userprofile%\desktop\logon.lnk copy \\server09v\netlogon\logon.lnk %userprofile\desktop\logon.lnk . The command works fine is I do it locally or even use a tool like psexec to run a command prompt remotely but I am trying to set this up to create this shortcut associated to labels that can be more dynamic then setting up OUs in active directory. Was looking through to see if there was an easier way to do this through a kscript but with being new to the kace appliances I did not find one.

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
problem a typo at the destination of %userprofile%\desktop missing the end %
Posted by: davidcoomes 12 years ago
Orange Belt
3
Think I figured out my problem a typo at the destination of %userprofile%\desktop missing the end % but if I am wrong please give me any ideas

Comments:
  • you are correct you need to replace the missing % - RandomITPro 12 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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