- This topic has 8 replies, 7 voices, and was last updated June 14, 2017 by Dan G.
PowerShell – Getting Started
Wally BOctober 21, 2016 03:17:15 PM
I’ve found several posts/articles/blogs about running your first PowerShell CmdLets, etc. However, I can’t find how you actually install those CmdLets. If I run “add-pssnapin Zerto.PS.Commands”, PowerShell gives an error that “No snap-ins have been registered for Windows PowerShell version 4”. I see the DLL of the same name in the Zerto installation folder, but I can’t figure out how to actually add the Snapin correctly.
Secondarily, how do I get the CmdLets on another machine other than the ZVM?
Thanks!Joshua SOctober 25, 2016 02:50:15 PM
Did you download and install the Zerto PS CMDlets from the software download section in MyZerto? I’d also recommend checking out the documentation section and reading the “Automating Zerto Virtual Replication with PowerShell and REST APIs Whitepaper v2.0.pdf” which removes the need to use the PS CMDlets for 95% of use cases. Any further questions let me know. Thanks,
JoshuaGene TJanuary 18, 2017 10:50:55 PM
@Wally – Hopefully you got the cmdlets installed and are up and running. If you are still working on this, I also went as far as creating a profile so the snapIn loads when I start PowerShell:
<!–?xml version=”1.0″ encoding=”UTF-8″?–>By following the procedures outlined in the Technet document, How to Create a Windows PowerShell Profile, I effectively won’t need to run the “Add-PSSnapIn Zerto.PS.Commands” each time I open the PowerShell CLI.When the procedure gets to the point where you edit the “Microsoft.PowerShell_profile.ps1” in notepad, I added the following (one entry per line as seen below):<span style=”font-family: ‘Andale Mono’;”><b>Add-PSSnapIn Zerto.PS.Commands</b></span><span style=”font-family: ‘Andale Mono’;”><b>Set-ExecutionPolicy RemoteSigned</b></span><span style=”font-family: ‘Andale Mono’;”><b>. $profile</b></span>IT Professional with focus on VMware Virtualization and BCDR solutions.Gene TJanuary 18, 2017 10:53:05 PM
Sorry, to correct the above (I can’t edit my posts here for some reason with Chrome).
What I added to the profile was:
.$profileIT Professional with focus on VMware Virtualization and BCDR solutions.Miguel VJanuary 31, 2017 08:58:22 PM
I have yet to come across ANY “downloads section” in MyZerto. The only ‘menu’ choices are Home, Forums, Knowledge Base, Technical Documentation and Training. Can someone please provide the actual link that takes a person to a download for the PowerShell cmdlets? I keep getting lost in the various pages where I thought downloads might be, only to get further lost in the weeds.Harry SFebruary 4, 2017 09:02:00 PM
Hi Miguel V,
At the top of the myZerto page (this page) you should see some navigation tabs that will bring you where you need to go.
Under the “Technical Documentation” tab, you will find the Automation Whitepaper here (“White Paper – Automating Zerto Virtual Replication with PowerShell & REST APIs”).
Also, if you see (you mentioned you don’t see it? I’m checking into this separately) a “Support & Downloads” tab, this is where you’ll find the download for the “Zerto Virtual Replication Cmdlets.”
Gene (thanks!) provided some guidance above on installing them. I was going to provide more, but I don’t believe that’s even what you need/are asking.
I hope this helps you to move forward!
~HarryFollow me: www.twitter.com/HarrySiii