Posts

Showing posts from November, 2019

Basic PowerCLI Scripting for VMware vSphere

https://www.nakivo.com/blog/basic-powercli-scripting-vmware-vsphere/

!!!PowerCLI Invalid server certificate

https://www.ivobeerens.nl/2018/07/18/quick-tip-powercli-invalid-server-certificate-error/ Set -PowerCLIConfiguration   -InvalidCertificateAction   Ignore  -Confirm : $false

VMware PowerCLI – install/upgrade/uninstall

https://www.cragdoo.co.uk/2017/11/08/vmware_powercli/ Install-Module   -Name   VMware . PowerCLI Update-Module   -Name   VMware . PowerCLI Uninstall-Module   -Name   VMware . PowerCLI

5 Ways to Change Hostname of your ESXi host

https://www.vladan.fr/5-ways-to-change-hostname-of-your-esxi-host/ https://kb.vmware.com/s/article/1010821

How To Install VMware PowerCLI Module using Powershell

https://thesysadminchannel.com/install-vmware-powercli-module-powershell/

Get a List of Windows PowerShell Modules

https://www.faqforge.com/powershell/get-list-windows-powershell-modules-can-imported/

Script to convert 100+ servers from Thick to Thin Format or whatever format you want.

LucDCorrect Answer by LucD on May 28, 2015 5:19 AM Try like this, it will only select VMs that have at least 1 Thick vdisk. Connect-viserver vcenter.domain.tld $sourcedatastore = “SOURCEDATASTORE“ $destinationdatastore = “DESTINATIONDATASTORE“ $vms = Get-VM -Datastore $sourcedatastore | where{(Get-HardDisk -VM $_ ).StorageFormat -contains 'Thick'} foreach($vm in $vms){   Move-VM -VM (Get-VM -Name $vm) -Datastore $destinationdatastore -DiskStorageFormat thin }

How to Update PowerShell to latest supported on OS

https://docs.microsoft.com/en-us/powershell/module/powershellget/update-module?view=powershell-6 At a PS Prompt type Update-Module. This will download and update all of PowerShell and all other existing packages.