Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: View Scheduled Tasks via VNC

24 Jul 2009   #11
adamdaviddoyle

Windows 7
 
 

This is what i'm doing now in the mean time.

I wrote a batch file that utilizes psexec.exe (pstools) and the schtasks dos command

c:\psexec.exe \\%1 schtasks /query /fo table
pause

I saved this as a .bat file and then hit "Start" - "Run" - c:\view_schedtasks.bat PCNAME

This leaves a dos window up that basically looks exactly like what i'm used to seeing through the UNC path.

EXAMPLE OUTPUT:

C:\>c:\psexec.exe \\a24462 schtasks /query /fo table
PsExec v1.85 - Execute processes remotely
Copyright (C) 2001-2007 Mark Russinovich
Sysinternals - www.sysinternals.com

TaskName Next Run Time Status
==================================== ======================== ===============
Backup 03:00:00, 7/25/2009
defrag 21:00:00, 7/27/2009
GPUPdate At logon time Could not start
uncompress 11:00:00, 7/25/2009
schtasks exited on a24462 with error code 0.
C:\>pause
Press any key to continue . . .


My System SpecsSystem Spec
.
24 Jul 2009   #12
Max7

Windows 7 x64 RTM
 
 

Quote   Quote: Originally Posted by adamdaviddoyle View Post
I am running windows 7 RC in our corporate environment. We hope to start deploying in october. One issue I have is the ability to view the Scheduled Tasks for an XP machine via UNC path seems to be gone, I can't find any information about re-enabling this. Anyone have any insight?
I think by default, all remote management connections to Vista and 7 are disabled. You can re-enabled it in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

On the right-hand side, add a new 32-bit DWORD value named LocalAccountTokenFilterPolicy and set the value to 1.

This will also re-enable the system shares like c$

Max
My System SpecsSystem Spec
24 Jul 2009   #13
adamdaviddoyle

Windows 7
 
 

This allows for the reverse of what i'm looking to do, XP Machines can see Scheduled Tasks on my Windows 7 PC.

I want my Windows 7 PC to be able to see Windows XP Scheduled Tasks via UNC
My System SpecsSystem Spec
.

14 Dec 2009   #14
bloodnite

win7
 
 

This worked like a champ.. This appears how you need to schedule tasks from windows 7 to windows XP. Even if I ran the batch file under my domain admin account it would say access denied.

For example:
schtasks /create /s pcname /tn "update" /tr c:\update.bat /ru system /sc once /sd 12/14/2009 /st 10:30:00

Gave Access denied.

When I added psexec.exe \\pcname to the beginning of it... it was then able to schedule the task fine.

Final example of what worked for me to schedule a task from Windows 7 to a Windows XP box:

psexec.exe \\pcname schtasks /create /s pcname /tn "update" /tr c:\update.bat /ru system /sc once /sd 12/14/2009 /st 10:30:00

Thanks for pointing me in the right direction.

Quote   Quote: Originally Posted by adamdaviddoyle View Post
This is what i'm doing now in the mean time.

I wrote a batch file that utilizes psexec.exe (pstools) and the schtasks dos command

c:\psexec.exe \\%1 schtasks /query /fo table
pause

I saved this as a .bat file and then hit "Start" - "Run" - c:\view_schedtasks.bat PCNAME

This leaves a dos window up that basically looks exactly like what i'm used to seeing through the UNC path.

EXAMPLE OUTPUT:

C:\>c:\psexec.exe \\a24462 schtasks /query /fo table
PsExec v1.85 - Execute processes remotely
Copyright (C) 2001-2007 Mark Russinovich
Sysinternals - www.sysinternals.com

TaskName Next Run Time Status
==================================== ======================== ===============
Backup 03:00:00, 7/25/2009
defrag 21:00:00, 7/27/2009
GPUPdate At logon time Could not start
uncompress 11:00:00, 7/25/2009
schtasks exited on a24462 with error code 0.
C:\>pause
Press any key to continue . . .
My System SpecsSystem Spec
30 Jun 2010   #15
Graywalker

Windows 7
 
 

The Syntax is different for XP and Win7/Vista.

For Windows 7, you need to use :
schtasks /CREATE /RU username /RP password /SC Once /TN taskname /TR "commandline" /ST 08:00 /Z /V1'

The above syntax will schedule tasks to XP systems, windows 2000, etc. Note that the Win7 doesn't use the seconds in the time.

running from XP, you need to use :

schtasks /CREATE /RU username /RP password /SC Once /TN taskname /TR "commandline" /ST 08:00:00

very subtle differences, but apparently significant.

The reason psexec.exe works is that it runs the command on the endpoint, basically scheduling the task from the computer itself (so the above script could drop the /s pcname part after schtasks).
My System SpecsSystem Spec
Reply

 View Scheduled Tasks via VNC




Thread Tools




Similar help and support threads
Thread Forum
Win7 Scheduled Tasks
Starting to Deploy Win7Pro and found Task Scheduler different from XP. We run a command that powers systems off at a specific time. The command will shut the system down when no user is logged in and gives a logged in user a pop up cancel window to abort if they're working. I cannot seem...
General Discussion
Services vs Scheduled Tasks
Hello, First of all i want to say hello to everyone as this is my first post here! Good to meet everyone. Secondly I was wondering about the differences between Services and Tasks. From what I have heard, read about services in windows 7 it seems that they run in an isolates session (I think...
General Discussion
Report of scheduled tasks?
Does anyone know of a way to get a human-readable report or tablular printout of all scheduled tasks with triggers/actions/conditions/settings? It would help me to understand better what's going on and to optimize things. TIA
General Discussion
Scheduled Tasks
Good Morning everyone. I hope everyone's Thanksgiving was pleasant and safe. I am trying to create a task to run Wtvwatcher at a specific time. Unfortunately it is not working. I have searched several forums and blogs and I still cannot do it correctly. When the scheduler asks for a program I...
General Discussion
Scheduled Tasks in Win7
Hi, how can I access and disable scheduled tasks in Windows 7 Ultimate? Thanks.
Performance & Maintenance
Changing scheduled tasks
I am attempting to adjust settings in the Task Scheduler to have a Restore Point created daily. I am using the approach as defined here. However, I have no "New", "Edit", or "Delete" tabs at the bottom of the Triggers page. I have full admin rights on my account (I think) Thanks in...
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:10.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App