PowerShell Logo Small

Add-WsusComputer



This is the built-in help made by Microsoft for the command 'Add-WsusComputer', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Adds a specified client computer, that is already registered to a WSUS server, to a specified target group.

SYNTAX


Add-WsusComputer -Computer <WsusComputer> -TargetGroupName <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-WsusComputer cmdlet adds the specified computer to the specified target group on the local server or a specified server. You can
invoke this command by Piping in the results of the Get-WsusComputer cmdlet. Calling the Get-WsusComputer cmdlet and piping the results into
this cmdlet enables you to leverage the filtering capabilities of the Get-WsusComputer cmdlet in moving the desired computers to the specified
target group. The server used in the Get-WsusComputer cmdlet will also be used in this cmdlet.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=786997
Get-WsusComputer
Get-WsusServer

REMARKS

<

Examples


EXAMPLE 1

PS C:\> Get-WsusServer contoso | Get-WsusComputer -NameIncludes winvm | Add-WsusComputer -TargetGroupName "Windows Virtual Machines"



This example adds all computers with winvm in the name to the target group named Windows Virtual Machines on the server named contoso.