I'd like to take my tasks on a non-clustered server, and import them as clustered tasks on a new cluster that has been built and tested. Here's what I have tried: cls $xmlFilename="i:\Scripts\ImportScheduledTasks\CleaupMessageLog.xml" $xmlContents = get-content $xmlFilename Register-ClusteredScheduledTask -TaskName "TestXMLTask" -TaskType AnyNode -Xml $xmlContents The XML imports okay into the [...] read more
Im trying to import task with Powershell and getting this error BTW using import in Task Scheduler is working fine CMDLINE: PS C:\windows\system32> Register-ScheduledTask -Xml "C:\Windows\System32\Tasks\Microsoft\Windows\TextServicesFramework\MsCtfMonitor" -TaskName "MsCtfMonitor" Error: Register-ScheduledTask : The task XML is malformed. (1,2)::ERROR: incorrect document syntax At line:1 char:1 * Register-ScheduledTask -Xml "C:\Windows\System32\Tasks\Microsoft\Wind ... * + [...] read more