1

I've been using PSshutdown remotely on our Windows XP machines for our weekly reboots because of its ability to reboot with the ability to abort the operation. I use ShTasks to create the weekly task.

The Problem is on Windows 7 the task is created but never executes because of UAC even when I run the batch using an administrator command line, or with the elevate privileges switch.

I saw another user "Bob" created a program called idleshutdown.exe which does something similar. Not sure how his program gets around UAC.

1 Answers1

2

Solved the problem.

Used the -h switch with PSExec when Creating the task with SHTasks, and use the /RL Highest flag with PSShutdown. The task now runs with highest privileges.

Now the only issue is the interactive services notification in windows 7. Also, Windows XP doesn't like the /RL Highest, so I had to modify the script to identify the operating system and only use the /RL Highest switch on Windows 7.