Add-SCUpdateServer

Adds a WSUS server to VMM.

Syntax

Add-SCUpdateServer
   [-VMMServer <ServerConnection>]
   [-ComputerName] <String>
   -TCPPort <UInt32>
   -Credential <VMMCredential>
   [-UseSSLConnection]
   [-StartUpdateServerSync]
   [-DisableUpdateServerConfiguration]
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [<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
Position:0
Default value:None
Required:True
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
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DisableUpdateServerConfiguration

Indicates that this cmdlet disables update server configuration.

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

-JobVariable

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

Type:String
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StartUpdateServerSync

Indicates that this cmdlet starts update server synchronization.

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

-TCPPort

Specifies a numeric value that represents a TCP port.

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

-UseSSLConnection

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

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

-VMMServer

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

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

Outputs

UpdateServer

This cmdlet returns an UpdateServer object.