Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmdlet Copy-VNOSCustomizationSpec to support copy OSCS to different vCenter #2

Open
mtboren opened this issue Feb 12, 2018 · 1 comment

Comments

@mtboren
Copy link
Member

mtboren commented Feb 12, 2018

Rather than someone having to GUI -> export -> GUI -> import to copy an OSCS from one vCenter to another, how about a function that will do this? Expected usage would be like:

Get-OSCustomizationSpec -Name myOSCS -Server mySourceVC | Copy-VNOSCustomizationSpec -DestinationVCenter myDestVC
@mtboren
Copy link
Member Author

mtboren commented Feb 12, 2018

Would boil down to a core of:

$viewCustSpecMgr_targetvc.CreateCustomizationSpec($viewCustSpecMgr_targetvc.XmlToCustomizationSpecItem($viewCustSpecMgr_sourcevc.CustomizationSpecItemToXml($oSourceOscs.ExtensionData)))

Then, user might just need to set the Admin password in that new OSCS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant