/build/static/layout/Breadcrumb_cap_w.png

Replace Windows 7 Start Menu Shortcuts

Hello.  I have been trying to use our KACE 1000 to create a script to change two start menu shortcuts that are corrupt.  I've hit a dead end as I cannot find a way via KACE to make this work.  I've created a batch file that if run as Administrator, it does work and replaces the short cuts.  However, running the batch file in KACE both with the builtin batch file tool and a manual batch don't work.  The command prompt on the client system just hangs.  I did set the run as permission with our network administrator credentials.

Any suggestions would be really appreciated.

Thank you.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: SMal.tmcc 11 years ago
Red Belt
3

you should be able to create a script (run as system) to xcopy the files.  Upload the links as dependencies and use xcopy to move them from the kace directory to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\whereever

launch a program 

directory  $(KACE_SYS_DIR)
file xcopy.exe
parameters $(KACE_DEPENDENCY_DIR)\*.lnk C:\ProgramData\Microsoft\Windows\Start Menu\Programs\whereever /q /y


Comments:
  • I tried to upload the two shortcuts and KACE, instead of taking the shortcuts themselves, converts it to the path of the shortcuts. So KACE wants to look directly at the exe.
    Is there a way around this? - ryanreb 11 years ago
  • zip the two files up and upload that zip as dependency
    for verify look for the files, if they exist delete them, then use "unzip a file" instead. If they are in 2 different spots you may have to do 2 unzips. - SMal.tmcc 11 years ago
    • use $(KACE_DEPENDENCY_DIR) for the directory, your file.zip for the file and target where you want to place the shortcut(s) - SMal.tmcc 11 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