我正在尝试按照http://technet.microsoft.com/en-us/library/gg697165.aspx,但我的 powershell 脚本不断抛出异常。它指的是 FileNotFoundException...但我不知道它找不到哪个文件。
有人有这方面的实际经验吗?
C:\Program Files\Windows Server\Bin>powershell .\ConfigureRDP.ps1
Exception calling "RunTasks" with "2" argument(s): "IWorkerConfig.dll"
At C:\Program Files\Windows Server\Bin\ConfigureRDP.ps1:3 char:1
+ $scheduler.RunTasks("ConfigureRDPTaskList", "ConfigureRDPTaskStatus.xml") | out- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FileNotFoundException
The configuration is complete. Check file " " for result.
C:\Program Files\Windows Server\Bin>