Export (0) Print
Expand All

Get-WsusClassification

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Get-WsusClassification

Get the list of all Windows Server Update Services (WSUS) classifications currently available in the system.

Syntax

Parameter Set: Default
Get-WsusClassification [-UpdateServer <IUpdateServer> ] [ <CommonParameters>]




Detailed Description

The Get-WsusClassification cmdlet gets the list of all Windows Server Update Services (WSUS) classifications. This list can be filtered using the Where-Object cmdlet with the results piped into the Set-WsusClassification cmdlet.

Parameters

-UpdateServer<IUpdateServer>

Specifies the object that contains the WSUS server. This value is obtained by calling the Get-WsusServer cmdlet and piping the resulting IUpdateServer object into this cmdlet.


Aliases

Server

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.UpdateServices.Commands.IUpdateServer

    IUpdateServer


Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

EXAMPLE 1

This example gets all classifications and prints them to the screen.


PS C:\> Get-WsusServer | Get-WsusClassification
Title                                                       ID 
-----                                                       -- 
Applications                                                5c9376ab-8ce6-464a-b136-22113dd69801 
Critical Updates                                            e6cf1350-c01b-414d-a61f-263d14d133b4 
Definition Updates                                          e0789628-ce08-4437-be74-2495b842f43b 
Drivers                                                     ebfc1fc5-71a4-4f7b-9aca-3b9a503104a0 
Feature Packs                                               b54e7d24-7add-428f-8b75-90a396fa584f 
Security Updates                                            0fa1201d-4330-4fa8-8ae9-b877473b6441 
Service Packs                                               68c5b0a3-d1a6-4553-ae49-01d3a7827828 
Tools                                                       b4832bd8-e735-4761-8daf-37f882276dab 
Update Rollups                                              28bc880e-0592-4cbf-8f95-c79b17911d5f 
Updates                                                     cd5ffd1e-e932-4e3a-bf74-18bf0b1bbd83 

EXAMPLE 2

This example gets the classification with a title of Drivers.


PS C:\> Get-WsusServer | Get-WsusClassification | Where-Object –FilterScript {$_.Classification.Title -Eq "Drivers"}
Title                                                       ID 
-----                                                       -- 
Drivers                                                     ebfc1fc5-71a4-4f7b-9aca-3b9a503104a0 

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft