VMware Cloud Community
vmk2014
Expert
Expert

Get List of Proctected VMs in SRM and replicated Datastores mapping

Hello,

  I'm hoping someone can assist me with a PowerCLI script that can pull the List of  Proctected VMs and  replicated Datastores mapping info into a txt or csv file.

I want to get a list that shows each protected VMs, with the datastore(s) it resides on.

thanks

vmk2014

Tags (2)
0 Kudos
4 Replies
m_crocker
Enthusiast
Enthusiast

Someone in the community has written some PowerShell functions which may give you the information that you are seeking.

Check it out...

https://github.com/benmeadowcroft/SRM-Cmdlets

LucD
Leadership
Leadership

You have the Connect-SrmServer cmdlet.

And Ken has written a series of blog posts on how to connect to SRM from within a PowerCLI script.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

vmk2014
Expert
Expert

Hi LucD/M_Crocker,

          I need help to export script results to csv.I have tried to export the output but its throws error.PFA

Thanks

vmk2014

0 Kudos
vmk2014
Expert
Expert

Hi LucD,

  I have gone through Ken blog but I didn't found anything related to Protected VMs  and replicated data store mapping details.

Thanks

vmk20014

0 Kudos