PowerShell VMWare and SRM

Hi.

We have VMWare with SRM (Site Recovery Manager) to replicate a number of VM’s to a DR remote site. I’ve used PowerShell to manage VMs with the VMware.PowerCLI module. I’ve imported the VMware.VimAutomation.Srm, v13.3 but was surprised that it only exposes 2 commands

PS C:\ps> Get-Module -Name VMware.VimAutomation.Srm

ModuleType Version    Name                                ExportedCommands                                                                                                
---------- -------    ----                                ----------------                                                                                                
Script     13.3.0.... VMware.VimAutomation.Srm            {Connect-SrmServer, Disconnect-SrmServer}

After more research I came across https://github.com/benmeadowcroft/SRM-Cmdlets

I’m surprised that VMware has so little native support for SRM using PS.

Since I’m just getting started with PowerShell and SRM, I welcome any tips, comments or suggestions.

Thank you.

You may want to look into VMWare.Sdk.Srm. I show 214 commands.

1 Like