내가 다음 명령을 사용하여 schtasks.exe
을 사용하여 다른 PowerShell 스크립트를 예약하려고 인식되지 않는 반환파워 쉘의 예약 작업 오류 성공
$Command = cmd /c "$Env:WinDir/system32/schtasks.exe /create /s $ComputerName /tn $TaskName /tr $TaskRun /sc $Schedule /d $Days /st $StartTime /RU system"
Invoke-Expression $Command
이 일정 원격 서버에서 작업을하지만 오류가 발생합니다 :
"The term 'SUCCESS:' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
정확한 시간에 작업을 예약했지만이 오류가 발생합니다.
누구든지이 오류를 해결하는 방법을 알고 있습니까?
Erwin에게 감사의 말씀을 전하고 쉽게 읽을 수있게 해주셔서 감사합니다. – user984201