--- title: "Disable-VBRCloudGateway" description: "This cmdlet disables a selected cloud gateway. Disabling a gateway temporarily suspends all operations on it. Run the Enable-VBRCloudGateway cmdlet to enable a disabled cloud gateway." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/disable-vbrcloudgateway.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam Cloud Connect > Veeam Cloud Connect Cloud Gateways > Disable-VBRCloudGateway" dateModified: "2026-08-19" --- # Disable-VBRCloudGateway ## Short Description Disables cloud gateways. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License Requires a cloud provider license. ## Syntax ``` Disable-VBRCloudGateway -CloudGateway [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet disables a selected cloud gateway. Disabling a gateway temporarily suspends all operations on it. Run the [`Enable-VBRCloudGateway`](enable-vbrcloudgateway.md) cmdlet to enable a disabled cloud gateway. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

CloudGateway

Specifies the array of cloud gateways you want to disable.

Accepts the VBRCloudGateway[] object. To get this object, run the Get-VBRCloudGateway cmdlet.

VBRCloudGateway[]

True

Named

True (ByPropertyName, ByValue)

Confirm

Defines that the cmdlet will display a prompt that asks if you want to continue running the command.

Note: Microsoft PowerShell enables the Confirm parameter for this cmdlet by default. To disable this option, set the parameter value to $false. That is, Confirm:$false.

SwitchParameter

False

Named

False

WhatIf

Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object [`VBRCloudGateway`](vbrcloudgateway.md) ## Examples ::: example ### Example 1. Disabling Cloud Gateway [Using Variable] This example shows how to disable the selected cloud gateway. ``` $cloudgateway = Get-VBRCloudGateway -Name "Cloud gateway" Disable-VBRCloudGateway -CloudGateway $cloudgateway ``` Perform the following steps: 1. Run the [`Get-VBRCloudGateway`](get-vbrcloudgateway.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$cloudgateway` variable. 2. Run the `Disable-VBRCloudGateway` cmdlet. Set the `$cloudgateway` variable as the `CloudGateway` parameter value. ::: ::: example ### Example 2. Disabling Cloud Gateway [Using Pipeline] This example shows how to disable the selected cloud gateway. ``` Get-VBRCloudGateway -Name "Cloud gateway" | Disable-VBRCloudGateway ``` Perform the following steps: 1. Run the [`Get-VBRCloudGateway`](get-vbrcloudgateway.md) cmdlet. Specify the `Name` parameter value. 2. Pipe the cmdlet output to the `Disable-VBRCloudGateway` cmdlet. ::: ## Related Commands [`Get-VBRCloudGateway`](get-vbrcloudgateway.md)