Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers 2

up vote 6 down vote accepted

psexec /s [command]

share|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
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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