VMware Cloud Community
nickmanderson
Contributor
Contributor
Jump to solution

Replicating Folders/Permissions

I'm currently getting ready to upgrade our infrastructure from vCenter 2.5 and ESX 3.5 to vCenter 4 and ESX 4 (vSphere). One of the things I've been thinking about lately is all the folders we have and all the permissions we have applied to those folders and to various objects within vCenter. I'm doing a fresh install of vCenter and we'll be moving to a new database so we'll lose all of the folders and permissions.

How are some ways people are replicating folders/permissions after a fresh install of vCenter on a new database? Powershell scripts? Something else?

Any help would be appreciated. Thanks.

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

Here is a PowerCLI script to export/import roles/permissions: http://www.virtu-al.net/2009/06/15/vsphere-permissions-export-import-part-1/

I'm not sure if there is a script out there to capture the folder structure and re-create, but here is a vSphere SDK for Perl script that might give you some ideas:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
2 Replies
Texiwill
Leadership
Leadership
Jump to solution

Hello,

Moved to vCenter Server Forum.

I think you will need to query the old db and import the folders/etc. into the new server. I had the same issue but just upgraded the db. This way I did not have to start from scratch.


Best regards,
Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009

Virtualization Practice Analyst[/url]
Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security'[/url]
Also available 'VMWare ESX Server in the Enterprise'[/url]
[url=http://www.astroarch.com/wiki/index.php/Blog_Roll]SearchVMware Pro[/url]|Blue Gears[/url]|Top Virtualization Security Links[/url]|
[url=http://www.astroarch.com/wiki/index.php/Virtualization_Security_Round_Table_Podcast]Virtualization Security Round Table Podcast[/url]

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

Here is a PowerCLI script to export/import roles/permissions: http://www.virtu-al.net/2009/06/15/vsphere-permissions-export-import-part-1/

I'm not sure if there is a script out there to capture the folder structure and re-create, but here is a vSphere SDK for Perl script that might give you some ideas:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos