Get-Wsus
Dynamic
Category
Syntax
Get-WsusDynamicCategory
[-UpdateServer <IUpdateServer>]
[-DynamicCategoryTypeFilter <DynamicCategoryType>]
[-First <Int64>]
[-Skip <Int64>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Get-WsusDynamicCategory
[-UpdateServer <IUpdateServer>]
-DynamicCategoryType <DynamicCategoryType>
-Name <String>
[-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.
Required Parameters
Specifies the type of the dynamic category. The acceptable values for this parameter are:
- ComputerModel
- Device
- Application
Type: | DynamicCategoryType |
Aliases: | Type |
Parameter Sets: | ComputerModel, Device, Application, Any |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the name of the dynamic category to get.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Optional Parameters
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the type of the dynamic categories that this cmdlet gets. The possible values are the same as those of the DynamicCategoryType parameter.
Type: | DynamicCategoryType |
Aliases: | TypeFilter |
Parameter Sets: | ComputerModel, Device, Application, Any |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | Int64 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | Int64 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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.
Type: | IUpdateServer |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByValue) |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
IUpdateServer
Outputs
IDynamicCategory