VMware Cloud Community
Tutti21
Contributor
Contributor
Jump to solution

export and import permission between 2 vcenter

Hello,

because a update killed our vcetner vmware suggested we build a new one.

I have already importet the roles + permission to that role

how can I Export and Import the permission of a of all roles on all objects e.g datacenters and folders.

will be nice if there is an easy way.

by tutti

Reply
0 Kudos
23 Replies
LucD
Leadership
Leadership
Jump to solution

Ah, ok, didn't notice that (it's not my code).

The 2nd issue is most probably a result of the 1st problem.


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

Reply
0 Kudos
Tutti21
Contributor
Contributor
Jump to solution

yeah there are not really any scripts for that out there as I tried to google for vcenter with multible datacenter and only a copy of path + permissions on folders. the rest all worked just not that. For a Powershell noob

Other scripts that do the whole migration, I tried it to just copy the things I needed but didnt work because they probably needed the whole code to run.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

I'll see if I can come up with something, but it might take some time.


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

Reply
0 Kudos
Tutti21
Contributor
Contributor
Jump to solution

I don't think my colleagues find it that interesting to do that again because we migrated some ESX Hosts and the snaphot was 1 h old and we need to do that again and because of our faulty vcenter we have not that much time. So I think we just do the job without script

Reply
0 Kudos