自从升级到 Windows 7 后,我再也无法看到通过 UNC 路径(即:\\mymachinename)访问的远程计算机上的计划任务。有什么想法吗?
答案1
另一种方法是在 Windows 7 机器上打开任务计划程序,然后右键单击“本地任务计划程序”,并选择连接到另一台计算机。
答案2
您应该能够使用 Powershell 进行验证:
<#
.SYNOPSIS
Script that return informations about scheduled tasks on a computer
.DESCRIPTION
This script uses the Schedule.Service COM-object to query the local or a remote computer in order to gather a
formatted list including the Author, UserId and description of the task. This information is parsed from the
XML attributed to provide a more human readable format
.PARAMETER Computername
The computer that will be queried by this script, local administrative permissions are required to query this
information
.NOTES
Name: Get-ScheduledTask.ps1
Author: Jaap Brasser
DateCreated: 2012-05-23
DateUpdated: 2012-07-22
Site: http://www.jaapbrasser.com
Version: 1.2
.LINK
http://www.jaapbrasser.com
.EXAMPLE
.\Get-ScheduledTask.ps1 -Computername mycomputer1
Description
-----------
This command query mycomputer1 and display a formatted list of all scheduled tasks on that computer
.EXAMPLE
.\Get-ScheduledTask.ps1
Description
-----------
This command query localhost and display a formatted list of all scheduled tasks on the local computer
#>