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.
Answer Summary:
problem a typo at the destination of %userprofile%\desktop missing the end %
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

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
Answered 03/21/2012 by: davidcoomes
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share