Windows XP を使用しています。現在、PC
動作が遅くなる問題が発生しています。そのため、非常に頻繁に、ディレクトリからいくつかの一時ファイルを削除する必要がありましたC:\WINDOWS\Temp
。スクリプトで自動的に実行する方法はありますか?
エラー
マシンからスクリプトを実行しようとすると、次のエラーが表示されます。
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\rakshiar>D:\WIPData\cleanup.ps1
C:\Documents and Settings\rakshiar>powershell.exe D:\WIPData\cleanup.ps1
File D:\WIPData\cleanup.ps1 cannot be loaded because the execution of scripts i
s disabled on this system. Please see "get-help about_signing" for more details
.
At line:1 char:23
+ D:\WIPData\cleanup.ps1 <<<<
+ CategoryInfo : NotSpecified: (:) [], PSSecurityException
+ FullyQualifiedErrorId : RuntimeException
C:\Documents and Settings\rakshiar>
ありがとう