PowerCLI script to get Server utilization report in JPEG format from Webclient
PowerCLI script for fetching utilization report from wbclient JPEG format specific date to date.CPU : Usage%Disk: highest LatencyMemory : ActiveNetwork: Data recieve rate
View ArticleSyntax for multiple DNS servers and Suffixes?
Does anyone know the correct syntax for having multiple DNS servers and search suffixes in the New-OSCustomizationSpec command? Here is what I'm trying: $VMspec = New-OSCustomizationSpec -FullName...
View Articleneed to check if a local account is available on each esxi host
trying to check what kind of local accounts are on the local esxi server $cred = get-credential$vmHOSTS = get-datacenter XXX | get-vmhostforeach ($vmhost in $vmHOSTS) {connect-viserver $vmhost -cred...
View ArticleHow to use the System.module.parameter.set for Fnic drivers?
Hello all, I am working on a small part of a script to adjust a host's fnic driver setting on esxi, and I've searched all over the internet, and I've come to multiple solutions, but they appear to not...
View ArticleScript to update vmware tools then vm hardware version then reboot
Does anyone have a script that would update all vm's vmware tools then their h/w verision and then reboot them?I would like to do this for all our vm's on our cluster not sure if there's an option but...
View Articlescript_structure_powercli
Hi Luc , can you please check following script .this is to get some security info from esxi and network switches .this works fine except the orange line .can you please modify orange line to use join...
View ArticleNew-vm command for cluster admin user throws error: FullyQualifiedErrorId :...
For only one user cluster_admin. I am getting this error. It passes for all the rest users. Can anyone please help me out. Please note I am able to create vm via ui. the version of powercli i am using...
View ArticleCan any one help to find out NAA status of ESXi hosts in cluster
Can any one help to find out NAA status of ESXi hosts in cluster
View ArticleScripts to migrate to a new vcenter
Hello All We have a situation, where a client wants to migrate from a Windows 6.0 vCenter to VCSA 6.7.In this instance, they do not want to use the native migration method, which works well.Instead,...
View Articlec# APIs with PowerCLI 11?
We have some legacy components still running on ESXi 5.5 and we're looking to upgrade to 6.7. The legacy components hook into vCenter and automate VM deployments and install/config. It's not something...
View Articleinvoke-vmscript an error occured while sending the request
The error is mentioning that i may be related to the vmware tools being too low, which I need to check, if it is should I just downgrade my powercli version if I can't restart these Here is the basic...
View ArticleChange ESXi "Root" password
I've found this script on github for changing root password: https://github.com/sammcgeown/Change-HostPasswords/blob/master/Change-HostPasswords.ps1 But I think it's a bit complex, I just need a...
View ArticleNeed a script to pull the DRS rules, Vms on the rule, and if the rule is...
Need a script to pull the DRS rules, Vms on the rule, and if the rule is disabled then need an automatic email to be sent. Can you please help . LucD
View ArticleFind my VM page from Multiple vCenter
Hi All,i see script available to get VM inventory from multiple vCenters. but do we have any script which can fetch VM inventory and display the details on webpage. Like in webpage search column if i...
View ArticleRemove-SCSIController?
http://blogs.vmware.com/vipowershell/2010/12/support-for-virtual-machine-scsi-controllers-in-powercli-411.html Referenceing the above, there is no cmdlet similar to the subject line; however, i have a...
View Articlepowershell_core
Hi Luc, just installed powershell core 6.2.0 on one of the test machine i can see both old and core coexist and now iam planning to install powercli11.can you tell me if core gives any enhancement to...
View ArticleStop New-hardDisk task/command if task taking more time or hung
I want to a add a new disk to server using powercli. I can able add a disk to server using the below command. New-HardDisk -VM $VM -CapacityGB $Disksize -Datastore $Datastore -StorageFormat...
View ArticleHelp Needed to upgrade Power CLI Version...
Dear Team, I need ur help to upgrade my powercli API, following are the details powercli installed (ver 5.0.0.3501)OS : win2k3mostly all ESX ver is 4.1.0 260247vcenter version:4.1.0 (258902) and 345043...
View ArticleUnmount datastores if unused and dettach them based on NAA
Hello, I dont know if it has already been done. I would like to get some help on a script that unmounts all empty/unused datastores and dettaches them if already unmounted or in maintenance.I would...
View ArticleHardware version 14 will not run Get-VIEvent
Hi I'm running Vcenter 6.7 and I'm running some powerCLI version 11.2.0.12780525 on powershell 5.1. When I run Get-VIEvent -Entity Servername it works if the server has a hardware version of 10 but if...
View Article