Category Archives: PowerCLI

Creating All-Flash Diskgroups on DL380 Gen 9 using PowerCLI

In a previous post, I discussed how the Web Client makes it difficult to create hybrid diskgroups grouped by array controller. I provided a PowerCLI script to automate diskgroup creation for this case. With All-Flash, the same issues around array controller grouping exists. A new issue that I encountered is that the “new-vsandiskgroup” cmdlet that… Read More »

Site Recovery Manger 6.1 addfoldermapping API and matching folders across sites

Update March 22, 2017: Added ” | Where-Object { $_.Type -eq “Folder”}” to primaryfolder.extensiondata.childentity (and the subfolder one) to filter the childentities to just folders. SRM added a feature in which you map folder inventories across vCenters by assuming the folders had the same name and same structure. I already had one method for replicating folder… Read More »

SQL Statements to resolve “VM Renamed Using PowerCLI Reverts to Original Name After vCenter Restart”

This is a follow-up to my last blog post. In the KB, VMware states that the issue is resolved in vCenter 6.0u2 but that if you still see the issue you will need to look at the database tables. My user informed today that the issue re-occurred after vCenter was patched over the weekend. I… Read More »

New-tagcategory Cannot find a service registration for vCenter service with host name XXXX

I have been trying to test creating some new tag categories after my recent vCenter upgrades. I hit two snags: 1) In PowerCLI I was getting an error about connecting to inventory service on local host (localhost:10089/invsvc I believe). This was remedied by upgrading PowerCLI to 6.x (I went to 6.3R1) 2) Next error w… Read More »