schtask interactive command problem
Hi,I am having a problem creating an interactive task that runs as either the system account or a specified domain account.The task will run, but it will not show interactively for the currently logged on user.On Windows XP, I can use a command such as this:at 23:30 /interactive /every:M,T,W,Th,F,Sa,Su c:\batch\overnight.cmdThis will install our interactive nightly shutdown task that allows the user to pause, cancel or continue a shutdown. I do not use schtask as it won't run the command interactively.If I run this on Windows 7 I get:Warning: Due to security enhancements, this task will run at the time expected but not interactively.So,I try to use schtask instead like this:schtasks /create /TN "Nightly Shutdown Task" /tr "C:\Batch\Overnight.cmd" /sc daily /st 23:30:00 /RU CTSYNZ\PCTasks /RP sksaTCP /s %COMPUTERNAME%This creates the task, but it still will not run interactively unless I am actually logged on as the user specified by /RU.I have tried the local system account with no luck and all manner of combinations but I just can not get a task to run on Windows 7 interactively as another user.Can anyone suggest how to do this? Is it even possible or is this another feature we have lost?Thanks,Rob
October 20th, 2009 1:45am

Run only when user is logged on.
Free Windows Admin Tool Kit Click here and download it now
October 20th, 2009 8:43pm

Thanks, Derosnec. I'll take a look but it looks like this is something lost since Vista and Windows 7 so I'll have to get creative :-)Edit - This was a reply to Derosnec that has now been removed.
October 22nd, 2009 11:32pm

I have found the same problem. I keep getting the message "access is denied". I run the same SHCTASKS commands on WXP. I am trying to switch from WXP to W7 and I'm having lots of difficulties completing remote tasks with administrative privileges. These are tasks I do every day and using two computers would be very difficult since I go between tasks in Standard User and Elevated User constantly.What's the purpose of these remote administration commands if MS is going to disallow them?
Free Windows Admin Tool Kit Click here and download it now
November 24th, 2009 6:26pm

This didn't allow me to run SCHTASKS. But how productive can someone be switching between contexts like this?
November 24th, 2009 6:26pm

What's the purpose of these remote administration commands if MS is going to disallow them? I am finding more and more that these "security enhancements" are making Windows more and more difficult to use and administer, especially when there is absolutely no alternative method or over-ride. Basically, with each version of Windows becoming more "secure" we lose more and more functionality. User conversation running Windows 7:User: "I'm running so-and-so in Windows 7 and it comes up with this error. How do I make this work?"Me: "I'm sorry, but that can't be done in Windows 7 now."User: "But, you're IT, you have to make this work for me!"Me: "I'm sorry, but due to "security enhancements" this really can't be done anymore."User: "But, that's crazy, you told me Windows 7 was going to be a huge improvement over XP - I want XP back!".Me: "OK, re-imaging your PC now back to XP..."And so on...
Free Windows Admin Tool Kit Click here and download it now
November 28th, 2009 4:02am

Well said, Rob.And by implication, Windows is becoming less a system for getting work done and more for entertainment.Why else limit functionality that actually prevents usage of the system as needed by intelligent users, justbecause it's possiblesome idiotmight download malware?I had hopes that maybe Windows Enterprise Edition might try to be the "serious" operating system we need, but (though I don't have a copy of that version) I'm not hearing that it is anything but a repackaging of the same stuff so far. I'd love to be corrected on this...Microsoft, it's time to stop this push toward making Windowsan entertainment-only operating system for the masses. Do you not see that if people can't do serious things with it then people will stop doing things with it?-Noel
November 28th, 2009 6:15am

Thank you. Unfortunately, all of Windows 7 editions are exactly the same as far as the core OS goes, and Enterprise is "exactly" the same as Ultimate except for it's licensing model and the first is aimed at corporates and the latter is aimed at home users with too much money and who probably won't even use bitlocker or the choice of 35 languauges...However, going back to my original question and the output from schtasks.exe:Warning: Due to security enhancements, this task will run at the time expected but not interactively.Microsoft, ok, this is a "security enhancement" but as the domain administrator, as the person who can re-image a user's PC with DOS 6.22 if I really wanted to, I should be able to turn this off. I accept your reasons for doing it, and I aknowledge the risk *, but, if I setup a specific domain account that I want (need) to be able to do this, you should not stop me!I have a feeling this only crept into Windows because of pressure from the US Military or some similar agency and now you try to sell it to us all as a "security enhancement" when actually it should be called a "functionality loss".* which is very, very minimal as I can still run a non-interactive task which could do anything as another user.
Free Windows Admin Tool Kit Click here and download it now
November 29th, 2009 10:09pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics