- This topic has 8 replies, 7 voices, and was last updated June 14, 2017 by
Dan G.
PowerShell – Getting Started
You must be logged in to create new topics.
Click here to login
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!
Hey Wally,
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,
Joshua
@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″?–>
Sorry, to correct the above (I can’t edit my posts here for some reason with Chrome).
What I added to the profile was:
Add-PSSnapIn Zerto.PS.Commands
Set-ExecutionPolicy RemoteSigned
.$profile
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.
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!
~Harry