Script to vmotion/svmotion bulk of VMs at the same to other cluster using a CSV
Hello, I am trying to build a powercli script to vmotion/svmotion bulk of VMs at the same to other cluster using a CSV. I found something but it will start first VM and wait to complete then start the...
View ArticleRetreiving FC adapter detail from all hosts...
Hi all,This is my first post on here so please be gentle with me, I am relatively new to Powershell and PowerCLI for VMWare and have delved into attempting to use 'get-esxcli -vmhost v2' against a list...
View ArticleQuery and Set HA Settings
Hi All, I need to query and possibly set HA settings in particular " Heartbeat Monitoring Sensitivity" (See Screenshot Attached)
View ArticleInvalid Argument error while assigning IP to VM
Hi, I am getting the below error, while deploying VM from a template. Everything works well expect the first part assigning the IP address Please help. Set-OSCustomizationNicMapping : 01-04-2019...
View ArticleWhere is the "Get-USBController" cmdlet? (Same with Remove- and New-)
The command “get-usbdevice”(also “Remove-UsbDevice”) should retrieve the USB devices that could be located on a VM. The problem is that cmdlt only will display those USB devices, if a USB device is...
View ArticleGet-Vm : Value cannot be null
With PowerCli 11, I got Value cannot be null Get-Vm : Value cannot be null.Parameter name: formatAt line:1 char:1+ Get-Vm *+ ~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-VM],...
View ArticleDisk consolidation script -- Need help testing
Recently we encountered an issue where a team member mistakenly did not delete a snapshot following some maintenance on a VM. Long story short, the snapshot ballooned into more than 2TB and took many...
View Articlehelp needed stringing parameters together - powercli.
Hi,I have this string that half works.i am unable to sting together to get the .config and .guest and .guest.net all in one command string. any suggestions. > Get-VM -name "System1" | Sort |...
View ArticlePowerCLI snapshot reports
I'm struggling with two scripts that I would like to combine, but need assistance. Essentially one outputs html (this i need), the other has information that i also need:...
View ArticleInvoke-VMScript. Pass variable in BASH
Hi LUCD, hi all!Small script to change IP in CentoS $IPguest = Read-Host -Prompt 'Enter IP Guest' $script = "sed -i 's:^IPADDR=.*$:IPADDR=$IPguest:g' /etc/sysconfig/network-scripts/ifcfg-ens160"...
View Articleshutdown-vmguest and set cpu and mem
will this work? have not had a chance to test $vms = get-vm -name (get-content vms.txt)foreach ($vm in $vms) {get-VM -name $vm | Shutdown-VMGuest -Confirm:$falseif ($VM.PowerState -eq "PoweredOn") {...
View ArticleScript to automatically remove VM's older than 14 days.
Hi guys, A while back Mr. LucD helped me with a script that automatically deletes any VM that has been powered off longer than 14 days. The script does work as intended but I wanted to see if someone...
View Articleresourcepool does not take two words as inputc
Hi, The resourcepool parameter does not take inputs such as Business Critical, see my simple code below and error. New-VM -Name ibgkbapp01 -Template rhel5u5-64-v7 -Datastore...
View Articlemount an existing NFS datastores to a new host
Hello, I want to perform this without using the "new-datastore" command, I want to perform it as we do from the vSphere webclint, just by rightclicking the datastore and select "Mount ao another host",...
View ArticleInvoke-VMScript - An error occurred while sending the request
Hi, I am writing a script that use invoke-vmscript and Copy-VMGuestFile but they throw an error when I run them again the vcenter server. Here one example: Invoke-VMScript -ScriptText $NetworkSettings...
View ArticleWhat product needs PowerShell cmdlets the most?
Which of these products really needs to have PowerShell cmdlets for automation purposes?
View ArticleError running Invoke-Vmscript - An error occurred while sending the request....
(EDIT: Same issue already reported here: Invoke-VMScript - An error occurred while sending the request ) Hello folks, I used to run Invoke-Vmscript againts our Environment to automate Template...
View ArticleScript to get who created VM Clone copy
Hi All,i found various script on creating VM Clone. But is anyone have script which can give details like who created VM Clone, date, time, user id, Clone Disk size. Thanks in Advance.
View ArticleFetch certification details assigned to client by CA server
Gents,Please help to loop this query to correct group if not relevant in this community. My query is as below.... I have a CA server and multiple clients to whom certification is assigned by this CA...
View Article