IComputerTargetGroup.RemoveComputerTarget Method (IComputerTarget)
Applies To: Windows Server Update Services
Removes a client computer from the target group.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
void RemoveComputerTarget(
IComputerTarget target
)
void RemoveComputerTarget(
IComputerTarget^ target
)
abstract RemoveComputerTarget :
target:IComputerTarget -> unit
Sub RemoveComputerTarget (
target As IComputerTarget
)
Parameters
target
Type: Microsoft.UpdateServices.Administration.IComputerTargetAn IComputerTarget of the client computer to be removed from the group. The client is moved to the Unassigned Computers group.
Exceptions
Exception
Condition
target cannot be null.
Cannot delete the target group. For example, you cannot delete the All Computers or Unassigned Computers target group.
The target group or computer has been deleted.
See Also
IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace
Return to top