Creating a storage system connection and a credential using PowerShell cmdlets

You must create a storage virtual machine (SVM) connection and a credential before using PowerShell cmdlets to back up and restore.

Before you begin

About this task

The information regarding the parameters that can be used with the cmdlet and their descriptions can be obtained by running Get-Help command_name. Alternatively, you can also refer to the Cmdlet Reference Guide.

SnapCenter Software 4.4 Cmdlet Reference Guide


  1. Initiate a PowerShell connection session by using the Open-SmConnection cmdlet.

    This example opens a PowerShell session:

    PS C:\> Open-SmStorageConnection
  2. Create a new connection to the storage system by using the Add-SmStorageConnection cmdlet.

    This example creates a new storage system connection:

    PS C:\> Add-SmStorageConnection -SVM test_vs1 -Protocol Https 
    -Timeout 60
  3. Create a new Run As account by using the Add-Credential cmdlet.

    This example creates a new Run As account named ExchangeAdmin with Windows credentials:

    PS C:> Add-SmCredential -Name ExchangeAdmin -AuthMode Windows 
    -Credential sddev\administrator