Add-WsusDynamicCategory
適用対象: Windows 10, Windows Server Technical Preview
Add-WsusDynamicCategory
Adds a dynamic category to a WSUS server.
構文
Parameter Set: ByName
Add-WsusDynamicCategory -DynamicCategoryType <DynamicCategoryType> {ComputerModel | Device | Application | Any} -Name <String> [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [-UpdateServer <IUpdateServer> ] [ <CommonParameters>]
Parameter Set: ByObject
Add-WsusDynamicCategory -InputObject <IDynamicCategory> [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [-UpdateServer <IUpdateServer> ] [ <CommonParameters>]
詳細説明
The Add-WsusDynamicCategory cmdlet adds a dynamic category to a Windows Server Update Services (WSUS) server.
In order to transfer dynamic categories from one update server to another, pass the results of the Get-WsusDynamicCategory cmdlet to the current cmdlet by using the pipeline operator.
パラメーター
-DynamicCategoryType<DynamicCategoryType>
Specifies the type of the dynamic category to add. このパラメーターに指定できる値は、次のとおりです。
-- ComputerModel
-- Device
-- Application
Aliases |
Type |
必須/オプション |
true |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-InformationAction<ActionPreference>
Specifies how this cmdlet responds to an information event. このパラメーターに指定できる値は、次のとおりです。
-- Continue
-- Ignore
-- Inquire
-- SilentlyContinue
-- Stop
-- Suspend
Aliases |
infa |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-InformationVariable<String>
Specifies an information variable.
Aliases |
iv |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-InputObject<IDynamicCategory>
Specifies the dynamic category object that this cmdlet adds to the server. To obtain a dynamic category, use the Get-WsusDynamicCategory cmdlet.
Aliases |
none |
必須/オプション |
true |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
true (ByValue) |
ワイルドカード文字の受け入れ |
false |
-Name<String>
Specifies the name of the dynamic category to add.
Aliases |
none |
必須/オプション |
true |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-UpdateServer<IUpdateServer>
Specifies the WSUS server to which this cmdlet adds the dynamic category. To obtain a server, use the Get-WsusServer cmdlet. If you do not specify a value for this parameter, the cmdlet adds the dynamic category to the local server.
Aliases |
none |
必須/オプション |
false |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
<CommonParameters>
このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- IDynamicCategory
出力
出力型は、コマンドレットが出力するオブジェクトの型です。
- IDynamicCategory
使用例
Example 1: Add a dynamic category to the local WSUS server
This command adds a dynamic category named PCI/Device07 the local update server. The command specifies that they type is Device.
PS C:\> Add-WsusDynamicCategory -DynamicCategoryType Device -Name "PCI/Device07"