Set-WssReportSchedule
Sets the health report schedule.
Parameter Set: EnableDaily
Set-WssReportSchedule -At <DateTimeOffset> -Daily -Enable [ <CommonParameters>]
Parameter Set: Disable
Set-WssReportSchedule -Disable [ <CommonParameters>]
Parameter Set: EnableHourly
Set-WssReportSchedule -Enable -Hourly [ <CommonParameters>]
The Set-WssReportSchedule cmdlet sets the health report schedule. Schedule the report to run daily, hourly, or never.
Specifies the time of day to run the daily health report.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
Indicates that the schedule runs the health report daily.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
Indicates that the automated health report generation is disabled.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
Indicates that the automated health report generation is enabled.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
Indicates that the schedule runs the health report hourly.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
The first command gets the current time and stores the result in the $Time variable.
The second command sets the report schedule to run daily at the time specified by the $Time variable.
PS C:\> $Time = [System.DateTimeOffset]::Now
PS C:\> Set-WssReportSchedule -Enable -Daily -At $Time