This cmdlet is part of the Vexasoft Cmdlet Library. You can download it now or click here to find out more.

Get-MaintenanceSchedule

Synopsis

Gets the automatic maintenance schedule of a local or remote computer running Windows 8 or higher.

Syntax

  • Get-MaintenanceSchedule [-ComputerName] [-Credential]

Description

The Get-MaintenanceSchedule cmdlet is used to retrieve the automatic maintenance configuration in Windows 8 or higher. This cmdlet replaces the Get-WindowsUpdateAgent cmdlet for computers running Windows 8.

Parameters

  • ComputerName The computer on which to halt the process.
  • Credential The credentials under which to halt the process.

Inputs

Get-MaintenanceSchedule accepts pipeline input only for the ComputerName parameter and requires that the input object contain a property named either Computer, CN or ComputerName.

Outputs

MaintenanceSchedule returns a Vexasoft.MaintenanceSchedule object.

Notes

There are no notes associated with this cmdlet.

Example 1

This command will retrieve the automatic maintenance schedule on the local computer:

C:\PS>Get-MaintenanceSchedule

Example 2

This command will retrieve the automatic maintenance schedule on remote computers PC01 and PC02:

C:\PS>Get-MaintenanceSchedule -ComputerName PC01, PC02