Add-SCUpdateServer

Adds a WSUS server to VMM.

Syntax

Add-SCUpdateServer [-ComputerName] <String> -Credential <VMMCredential> [-DisableUpdateServerConfiguration]
 [-JobVariable <String>] [-PROTipID <Guid>] [-RunAsynchronously] [-StartUpdateServerSync] -TCPPort <UInt32>
 [-UseSSLConnection] [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Add-SCUpdateServer cmdlet adds a Microsoft Windows Server Update Services (WSUS) server to Virtual Machine Manager (VMM). Adding a WSUS server integrates VMM and WSUS setup and enables the update management feature.

Examples

Example 1: Add an update server

PS C:\> $Credential = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> Add-SCUpdateServer -ComputerName "WSUSComputer01" -TCPPort 80 -Credential $Credential

The first command gets the Run As account named RunAsAccount01, and then stores that object in the $Credential variable.

The second command adds update server WSUSComputer01 to VMM. The command enable update servicing functionality. This command specifies $Credential Run As account credentials for Add-SCUpdateServer.

Parameters

-ComputerName

Specifies the name of a computer. The acceptable values for this parameter are:

- Fully qualified domain name (FQDN)

  • IPv4 or IPv6 address
  • NetBIOS name

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Specifies a credential object that contains the user name and password of an account that has permission to perform this action.

Type:VMMCredential
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableUpdateServerConfiguration

Indicates that this cmdlet disables update server configuration.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies a variable in which job progress is tracked and stored.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StartUpdateServerSync

Indicates that this cmdlet starts update server synchronization.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TCPPort

Specifies a numeric value that represents a TCP port.

Type:UInt32
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseSSLConnection

Indicates that the update server uses a Secure Sockets Layer (SSL) connection.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies the VMM server to which this cmdlet adds an update server.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

UpdateServer

This cmdlet returns an **UpdateServer** object.