View Scheduled Tasks via VNC

Page 2 of 2 FirstFirst 12

  1. Posts : 11
    Windows 7
    Thread Starter
       #11

    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 Computer


  2. Posts : 10
    Windows 7 x64 RTM
       #12

    adamdaviddoyle said:
    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 Computer


  3. Posts : 11
    Windows 7
    Thread Starter
       #13

    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 Computer


  4. Posts : 1
    win7
       #14

    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.

    adamdaviddoyle said:
    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 Computer


  5. Posts : 1
    Windows 7
       #15

    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).
    Last edited by Graywalker; 30 Jun 2010 at 08:21. Reason: add info
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About 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 08:46.
Find Us