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 %
problem a typo at the destination of %userprofile%\desktop missing the end %
Please log in to answer
Posted by:
davidcoomes
12 years ago
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