I want to execute some commands with SYSTEM privileges on Windows Server 2008. I have Administrator privileges, of course. On the good old version of Windows without all the UAC BS this was as simple as:

at 15:48 /interactive cmd

And after a minute a command prompt would pop up, running as NT AUTHORITY\SYSTEM. But if I do this on Windows 2008 it tells me:

Warning: Due to security enhancements, this task will run at the time expected but not interactively. Use schtasks.exe utility if interactive task is required ('schtasks /?' for details).

I checked schtasks and it looks like that only gives you the ability to run a task interactively as the logged on user, which is not what I want. Of course, I could code and install a service that runs as SYSTEM, but what a hassle! Could anyone suggest an easier way?

I'm so sick of these hoops Microsoft is making me jump through just to do what I want to do on my system.

link|improve this question

53% accept rate
feedback

2 Answers

up vote 5 down vote accepted

psexec /s [command]

link|improve this answer
2  
To get psexec: (1) download PSTools from sysinternals.com (which will redirect into MS), (2) extract contents of ZIP into folder in PATH (or add the folder you use to the PATH). – Richard Jun 25 '09 at 9:32
feedback

If you just want to run a command prompt (or any app) as SYSTEM then use psexec as vu1tur suggests. As for running scheduled tasks interactively, this is surely a matter of opinion, but I've always thought that Windows should not allow scheduled tasks to run interactively as it's such a big security risk. Microsoft have changed the behaviour in W2k8, and I'm on their side this time.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.