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.
Answers (1)
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