You can install the Commvault PowerShell module, in online or offline mode, using the file downloaded from the Commvault GitHub repository.
Procedure
On a computer that can connect to the CommServe computer, go to the Commvault PowerShell SDK page on the Commvault GitHub repository.
Click the Code button, and then click Download ZIP.
The CVPowershellSDK-master zip file is downloaded.
Extract the CVPowershellSDK-master file.
Launch a PowerShell session.
Note: If you want to install the PowerShell Module for all users, verify that your user account has administrative privileges.
Go to the location where CVPowershellSDK-master file is extracted.
For example, if you extracted file to the Downloads folder, go to C:\Users\<user>\Downloads\CVPowershellSDK-master.
Run the command for the mode that you want to use:
Mode | Command |
---|---|
Online |
|
Offline |
|
The PersistModulePath
switch updates the current user $env:PSModulePath
environment variable to persist access to the Commvault module across PowerShell sessions.
What to Do Next
To run Commvault cmdlets, you must log on to the CommServe host using the Connect-CVServer
cmdlet. For more information, see Connecting to a CommCell Environment with PowerShell.