タスクスケジューラでExportしたタスクがImport出来ないとき

 

エクスポートして削除しておいたタスクを書き戻すためにインポートしようとした時に、

次のエラーが報告されました:タスクXMLに、書式設定が正しくない値または範囲外の値が含まれています。

や、

タスクスケジューラサービスが利用できません。タスクスケジューラはサービスへの再接続を試行します。

という表示が出て書き戻しが出来ない事があります。

この場合は、schtasksコマンドで回避下さい。

schtasks /create /tn “書き戻したいタスク名” /xml インポートするxmlファイル名
※タスク名:xmlファイル中の<URI>~</URI>に挟まれている値

例えば、C:\Users\hoge\Desktop 上の “Microsoft Compatibility Appraiser.xml” を書き戻す場合は、管理者権限のコマンドプロンプトにて、

C:
cd \Users\hoge\Desktop
schtasks /create /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /xml "Microsoft Compatibility Appraiser.xml"

となります。

 

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny