Share via


Add-SCUpdateServer

Adds a WSUS server to VMM.

Syntax

Default (Default)

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Credential

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

Parameter properties

Type:VMMCredential
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisableUpdateServerConfiguration

Indicates that this cmdlet disables update server configuration.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StartUpdateServerSync

Indicates that this cmdlet starts update server synchronization.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TCPPort

Specifies a numeric value that represents a TCP port.

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UseSSLConnection

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

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

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

UpdateServer

This cmdlet returns an UpdateServer object.