Wie können wir helfen?

CreateScheduleTask for ConfigManager HealthEvaluation

Du bist hier:
< Alle Themen

# Create a ConfigManager Client Health Evaluation Taskplaner.

# will be run once

#$TaskStartTime = [datetime]::Now.AddDays(1)

$TaskStartTime = [datetime]::Now.AddMinutes(10)

$Trigger= New-ScheduledTaskTrigger -At $TaskStartTime -Once

$User= „NT AUTHORITY\SYSTEM“

#

# Now schedule task…

#

$Action= New-ScheduledTaskAction -Execute „Powershell.exe“ -Argument {Start-Process -FilePath „C:\Windows\CCM\CcmEval.exe“}

Register-ScheduledTask -TaskName „StartConfigMgrHealtEvaluation-Once“ -Trigger $Trigger -User $User -Action $Action -RunLevel Highest –Force

Inhaltsverzeichnis