Share via


IComputerTargetGroup.AddComputerTarget Method (IComputerTarget)

 

Applies To: Windows Server Update Services

Adds a client computer to the target group.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

void AddComputerTarget(
    IComputerTarget target
)
void AddComputerTarget(
    IComputerTarget^ target
)
abstract AddComputerTarget : 
        target:IComputerTarget -> unit
Sub AddComputerTarget (
    target As IComputerTarget
)

Parameters

Exceptions

Exception

Condition

ArgumentNullException

target cannot be null.

Remarks

The client computer is added to this group. If the client is currently not explicitly assigned to a group, the client is moved from the Unassigned Computers group to this group.

This operation requires WSUS Administrator privileges.

See Also

IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace

Return to top