Running PowerShell with Zerto Cmdlets
To run the Zerto cmdlets you must first run the installation package supplied by Zerto.
Note: | You must have both Microsoft .NET Framework 4.7.2 and Windows PowerShell installed. |
To install the Zerto cmdlets:
1. | Make sure that Windows PowerShell is closed. |
2. | Run the installation file. |
After installing the Zerto cmdlets, either add the cmdlets each time you open the Windows PowerShell, or create a Windows PowerShell profile. The following procedure describes how to add the Zerto cmdlets for every Windows PowerShell session.
To add the Zerto cmdlets to the current session:
• | Open Windows PowerShell with the following arguments: |
-NoExit -Command Add-PSSnapIn Zerto.PS.Commands
The Add-PSSnapin cmdlet adds registered Windows PowerShell snap-ins to the current session.
To add the Zerto cmdlets to every session, in the Properties dialog for a PowerShell shortcut specify a Target value similar to the following:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command Add-PSSnapIn Zerto.PS.Commands
Note: | You can create a Windows PowerShell profile, as described in the Windows PowerShell Help, to add the snap-in to all future Windows PowerShell sessions. |
Each Zerto cmdlet includes help, accessed by entering the Windows PowerShell get-help command:
get-help <cmdlet-name>