Set-WsusDynamicCategory
적용 대상: Windows 10, Windows Server Technical Preview
Set-WsusDynamicCategory
Sets the synchronization status of a dynamic category.
구문
Parameter Set: ByName
Set-WsusDynamicCategory -DynamicCategoryType <DynamicCategoryType> {ComputerModel | Device | Application | Any} -Name <String> -Status <WsusDynamicCategoryStatus> [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [-UpdateServer <IUpdateServer> ] [ <CommonParameters>]
Parameter Set: ByObject
Set-WsusDynamicCategory -InputObject <IDynamicCategory> [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [-Status <WsusDynamicCategoryStatus> ] [-UpdateServer <IUpdateServer> ] [ <CommonParameters>]
자세한 설명
The Set-WsusDynamicCategory cmdlet sets the synchronization status of a dynamic category in a specified Windows Server Update Services (WSUS) server.
매개 변수
-DynamicCategoryType<DynamicCategoryType>
Specifies the type of the dynamic category that this cmdlet modifies. 이 매개 변수에 허용되는 값은 다음과 같습니다.
-- ComputerModel
-- Device
-- Application
별칭 |
Type |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-InformationAction<ActionPreference>
Specifies how this cmdlet responds to an information event. 이 매개 변수에 허용되는 값은 다음과 같습니다.
-- Continue
-- Ignore
-- Inquire
-- SilentlyContinue
-- Stop
-- Suspend
별칭 |
infa |
필수 여부 |
false |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-InformationVariable<String>
Specifies an information variable.
별칭 |
iv |
필수 여부 |
false |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-InputObject<IDynamicCategory>
Specifies a dynamic category object. This cmdlet modifies the synchronization settings for the dynamic category that this parameter specifies. To obtain a dynamic category, use the Get-WsusDynamicCategory cmdlet.
별칭 |
none |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
true (ByValue) |
와일드카드 문자 허용 여부 |
false |
-Name<String>
Specifies the name of the dynamic category to modify.
별칭 |
none |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Status<WsusDynamicCategoryStatus>
Specifies the update synchronization status for the dynamic category. 이 매개 변수에 허용되는 값은 다음과 같습니다.
-- Blocked. No updates are being synchronized for this dynamic category.
-- SyncUpdates. Updates are being synchronized for this dynamic category.
별칭 |
none |
필수 여부 |
true |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-UpdateServer<IUpdateServer>
Specifies a WSUS server. This cmdlet modifies a dynamic category 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 modifies dynamic categories on the local server.
별칭 |
none |
필수 여부 |
false |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)
입력
입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.
- IDynamicCategory
출력
출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.
- None
예
Example 1: Set the synchronization status of a dynamic category
This command gets a dynamic category from the local server by using the Get-WsusDynamicCategory cmdlet. The command passes the dynamic category to the current cmdlet by using the pipeline operator. The current cmdlet sets the synchronization status to Blocked. This value means that no updates are synchronized for this dynamic category.
PS C:\> Get-WsusDynamicCategory -DynamicCategoryType Device -Name "PCI/Device07" | Set-WsusDynamicCategory -Status Blocked