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 perform data protection operations.

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

Procedure

  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 -Storage test_vs1 -Protocol Https 
    -Timeout 60
    
  3. Create a new credential by using the Add-SmCredential cmdlet.

    This example creates a new credential named FinanceAdmin with Windows credentials:

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