PowerShell script exchange
Post Reply
Posts: 53
Liked: 11 times
Joined: Sep 09, 2010 9:45 am
Full Name: Anders Lorensen

Enterprise Manager roles / Powershell

Post by Anders » Sep 21, 2015 11:49 am

Hi Experts

As far as I can see, there is no way to do powershell scripting to the enterprise manager.

We'd really like to be able to script roles to it. We have about 750 VM's, and 750 AD Groups that give administrator access to them.
So we need for each AD Group, make a role giving the Group access to a specific VM as a restore operator.
(EM cannot do this automaticly with Linux VM's, so the build-in feature giving access to Windows machines is not enough in our case.)

Alot of manual Work...


VP, Product Management
Posts: 5476
Liked: 2294 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Enterprise Manager roles / Powershell

Post by tsightler » Sep 21, 2015 1:30 pm

I believe you can perform all of this via the REST API, which you could access from Powershell via Invoke-RestMethod. To this point I've not done this myself as I've used the REST API mostly via VMware Orchastrator (Javascript), and a little from PHP, but at first glance it seems fairly straightforward.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests