Error running schtasks.exe
I've setup a script to create a task, but I'm getting an error. I have the script setup as an Online KScript. And have the following line in "On Success" Launch “$(KACE_SYS_DIR)\schtasks.exe” with params “/Create /XML ”\\uncname\folder\task.xml“ /tn ”UAC Whitelist\foldername“”
But it errors with.
Running as SYSTEM ERROR: Access is denied. Launched Process: schtasks.exe Invalid number of parameters
Also I'm attempting to copy a shortcut to the user's desktop %username%\desktop, it says "the operation completed successfully" but the file isn't on the desktop.
I've tested this with a batch file that I run manually on the desktop with elevated access and it works.