New-VM in 11.2 requires a portgroup
PowerCLI 11.2 appears to require a portgroup for New-VM: PS C:\> New-VM -Name testvm -ResourcePool testpool -Datastore testdsNew-VM : 4/2/2019 8:19:17 AM New-VM Value cannot be null.Parameter name:...
View ArticleMove-VM bug
I have two datacenters and am running PowerCLI 11.2.0 and vSphere 6.7u1. When I try moving a VM to a different folder in the same datacenter, this happens: try { Move-VM -VM $vm -InventoryLocation...
View ArticleGet list of plugins and versions installed from vCenter?
Hi all, Does anyone know how to use PowerCLI to get a list of plugins installed in vCenter, their versions and any other information associated with those plugins? I found Get-vCenterPlugin, per...
View ArticleExport CSV - Multiple VMs hard disks information
AllI started a powercli below to extract harddisk information and generate a csv file.The problem here is that information being exported is only for one vm, and not all vms included in GetVMList.txt...
View ArticleUnable to get folder, datastore, templates,vm hosts details
Hi, I am unable to get the folder, datastore, templates,vm hosts details from my datacenter level. I am just seeing datacenter name rest all are blank Please help get-datacenter | select...
View ArticlePowerCli 11.2.0 and Microsoft System Center Orchestrator CU 5 problem
Hello,We have some workflows work on Microsoft System Center Orchestrator CU 5. We face some trouble when we upgrade Vitrual Center to 6.7 U1 While we try to access from powershell to Virtual Center...
View Articleget-ovfconfigurationa and multiple networkmappings
Hi all, I am trying to import multiple OVA's in to a VMC on AWS environment. These OVA.s sometimes have multiple vNIC's connected. with the get-ovfconfigueration cmdlet I can see all the old...
View Articlecopy-vmguestfile when sourcevm is linux and user auth comes from AD.
Hi all, quickquestion, has onyone seen an issue with copy-vmguestfile to get file from linux vm, to local disk(windows), when the guestcredential is a user on active directory ?Copy-VMGuestFile...
View ArticlevSAN health checks
Hello, has anyone tried to get some reports on vsan health using powerci ? Couldn't find anythng in google. I am just looking for a hint on how to hook into this monitor->Vsan tab using powercli. I...
View ArticleHost user add, custom UID&GID and role assignment
Hello community, I have this committment Enviroment : Multiple vcenters from 4.1 to 6.5 Requests: Create 2 new host usersGive them a custom UID and GIDAssign them the Administrator roleShell access...
View ArticleSnapshots - Schedule task for list of VM's using VMWare PowerCLI
I would like to add a schedule task for taking snapshots at certain dates and times from a list of VM's . I only know how to do this individually. VM's would use $vmName and Date and time would use...
View ArticleExport All Alarms and definitions from VCenter.
I found the following article which helps but its not exactly what I am looking for. Script to export Alarms from VCenter to analyze. I am looking to export all alarms and definitions to csv, not just...
View ArticleVSphere: How to create a vm with IDE disks using powercli
I'm looking for a powercli script to create a VM with multiple IDE disks. It seams the "new-VM creates disks in SCSI mode... Thanks.
View ArticleIdentifying Type of LUN Usage
Is there any PowerCLI script available to identify whether a LUN being utilized as a Datastore \ RDM (or) left unassigned ? Preferred inputs would be naa.id of LUN, host name & vCenter name ..
View Articleget the Management Controller IP Address(Idrac and Ilo)
Is there any way that we can directly query the BaseBoard Management Controller directly from Powercli and get the Management Controller IP Address in vcenter with multiple host?
View Articleshutdown VMs and patch esxi host
I got a standalone esxi host to patch and need to manually shutdown the VMs, patch the host via update manager, wait for the host to patch, reboot then power on the vms back on $vms = get-datacenter...
View ArticleHardware sensors
Hellp How I get "management controller ip interface" in hardware status > sensors with powercli? tks.
View ArticleUnable to validate and add new harddisk
Hi, I am unable to validate and add new harddisk from below script. I want to validate, if the value is greater than 0 then add the hardisk else skip this step. $vmlist = Import-CSV ".\vmdeploy1.csv"...
View Articlecommand works on windows, but fails on linux powercli (version issue)
I try to create a VM from a Linux Powercli and get a error. Same Powercli version on a Windows OS works.If the user has Admin rights it works on Linux too.I also tried it with the newest Powercli...
View Articleget-drsrule returns nothing
Hi, Is anyone else getting a blank result from get-drsrule when using vCenter v6U2 and powercli 6.3R1? I've tried on a couple of vCenters with this config and from a couple of different clients and I...
View Article