Edit

Share via


Get-WsusDynamicCategory

Gets dynamic categories on a WSUS server.

Syntax

Filter (Default)

Get-WsusDynamicCategory
    [-UpdateServer <IUpdateServer>]
    [-DynamicCategoryTypeFilter <DynamicCategoryType>]
    [-First <Int64>]
    [-Skip <Int64>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ByName

Get-WsusDynamicCategory
    -DynamicCategoryType <DynamicCategoryType>
    -Name <String>
    [-UpdateServer <IUpdateServer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Get-WsusDynamicCategory cmdlet gets dynamic categories on a Windows Server Update Services (WSUS) server.

Examples

Example 1: Get all dynamic categories for specified servers

PS C:\> Get-WsusServer | Get-WsusDynamicCategory
Name                                     Type                                     Status
----                                     ----                                     ------
5d6a452a-55ba-4e11-adac-85e180bda3d6     ComputerModel                            True
PCI/Device07                             Device                                   True

This command gets all dynamic categories from the current update server by using the Get-WsusServer cmdlet. The command passes the server to the current cmdlet by using the pipeline operator. The current cmdlet gets the available dynamic categories for the update server.

Example 2: Get a named dynamic category

PS C:\> Get-WsusDynamicCategory -DynamicCategoryType Device -Name "PCI/Device07"
Name                                     Type                                     Status
----                                     ----                                     ------
PCI/Device07                             Device                                   True

This command gets the dynamic category named PCI/Device07 that is a Device type.

Example 3: Get dynamic categories by type

PS C:\> Get-WsusDynamicCategory -DynamicCategoryTypeFilter ComputerModel
Name                                     Type                                     Status
----                                     ----                                     ------
5d6a452a-55ba-4e11-adac-85e180bda3d6     ComputerModel                            True

This command gets dynamic categories of the type ComputerModel that are currently available on the local server.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DynamicCategoryType

Specifies the type of the dynamic category. The acceptable values for this parameter are:

  • ComputerModel
  • Device
  • Application

Parameter properties

Type:DynamicCategoryType
Default value:None
Accepted values:ComputerModel, Device, Application, Any
Supports wildcards:False
DontShow:False
Aliases:Type

Parameter sets

ByName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DynamicCategoryTypeFilter

Specifies the type of the dynamic categories that this cmdlet gets. The possible values are the same as those of the DynamicCategoryType parameter.

Parameter properties

Type:DynamicCategoryType
Default value:None
Accepted values:ComputerModel, Device, Application, Any
Supports wildcards:False
DontShow:False
Aliases:TypeFilter

Parameter sets

Filter
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-First

Specifies the number of dynamic categories to return from the beginning of the results.

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Filter
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the dynamic category to get.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Skip

Specifies the number of dynamic categories to skip from the beginning of the results.

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Filter
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UpdateServer

Specifies a WSUS server. This cmdlet gets dynamic categories on the server that this parameter specifies. To obtain a server, use the Get-WsusServer cmdlet. If you do not specify a value for this parameter, the cmdlet gets dynamic category from the local server.

Parameter properties

Type:IUpdateServer
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.UpdateServices.Administration.IUpdateServer

Outputs

Object