Quantcast
Channel: Windows 7 Miscellaneous forum
Viewing all articles
Browse latest Browse all 11372

schtask interactive command problem

$
0
0
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.cmd

This 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




Viewing all articles
Browse latest Browse all 11372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>