Remove-SCUpdateServer

Removes a WSUS server from VMM.

Syntax

Remove-SCUpdateServer [-UpdateServer] <UpdateServer> [-Confirm] -Credential <VMMCredential>
 [-JobVariable <String>] [-PROTipID <Guid>] [-RunAsynchronously] [-VMMServer <ServerConnection>] [-WhatIf]
 [<CommonParameters>]

Description

The Remove-SCUpdateServer cmdlet removes a Microsoft Windows Server Update Services (WSUS) computer from Virtual Machine Manager (VMM). Removing WSUS integration disables the update management feature in VMM.

Examples

Example 1: Remove an update server

PS C:\> $Credential = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> $UpdateServer = Get-SCUpdateServer -ComputerName "WSUSComputer01"
PS C:\> Remove-SCUpdateServer -UpdateServer $UpdateServer -Credential $Credential

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

The second command gets the update server object named WSUSComputer01, and then stores the object in the $UpdateServer variable.

The last command removes the update server stored in $UpdateServer.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
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
-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
-UpdateServer

Specifies a VMM update server from which this cmdlet removes the update server.

Type:UpdateServer
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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

Outputs

UpdateServer

This cmdlet returns an **UpdateServer** object.