This PowerShell script enables the powering on or off of a vSAN cluster, and is supported by PowerCLI 13.1. It supports both vc not on vSAN and vc on vSAN cases. The cmdlets Start-VsanCluster and Stop-VsanCluster were newly added to PowerCLI 13.1 and provide the same functionality. This script...
snippet.ps1
Set NTP Source Servers for VMware ESXi via PowerCLI - ESXi 6.7u3 and 7.0u3 .SYNOPSIS Set NTP Source Servers for VMware ESXi .DESCRIPTION Example is using Google NTP source IP. This is not for production use. .EXAMPLE Set-EsxiNtpSource -vcenter 'vcenter.fqdn.com' Set-EsxiNtpSource -vcenter...
This script works at VC level, where it will iterate through all the Datacenters and clusters in the VC and disable SLP service on all the available hosts. Script will ensure Firewall Exception RuleSet for CIM SLP is disabled and SLP Service Policy is updated to make sure changed are persistent...
This powercli script works at the datacenter level. This takes datacenter name as the input and does a compliance check against that datacenter in a VC. What the script does: 1. Connects to the VC server 2. Creates a patch baseline with the bulletinID provided 3. Gets the Datacenter inventory...
vum_test_per_dc.ps1
This script works at VC level, where it will iterate through all the Datacenters in that VC and provide the compliance report. What the script does: 1. Connects to the VC server 2. Creates a patch baseline with the bulletinID provided 3. Gets all the Datacenter inventory object attaches the...
vum_test_per_vc.ps1
. HCX Migration Scripts These are the migration scripts that I produced with Bilal Ahmed , to automate the HCX migrations and failback capabilities. Blog Posts These blog posts describe the usage of the scripts https://vmusketeers...
PowerCLI-master.zip
Returns information on Horizon Instant Clone pool VMs, including space consumed, and hierarchy of Parent, Replica, Template, Snapshot, and Master. Identifies VMs that are potentially orphaned/abandoned by Horizon. Returns information on Horizon Instant Clone pool VMs, including space...
Prints the full path of the VM folders and resource pools for all VMs. It also prints the vCenter / DC name for multi-vCneter or multi-DC environments. #MIT #vSphere #powercli #PowerShell #VMwarePowerCLI
get_vm_path.ps1
<# . NOTES Author: Mark McGill, VMware Last Edit: 11-23-2020 Version 1.1 . SYNOPSIS Unprotect Instant Clone VMs in order to delete those that are abandoned by Horizon . DESCRIPTION Uses vCenter API to enable methods needed to unprotect Instant Clone...
This script is used to create a new roles on your vCenter server for App Volumes 2.x, 3.x and 4.x The newly created role will be filled with the needed permissions for App Volumes The permissions are based on the documentation found here: https://docs.vmware.com/en/VMware-App-Volumes/4...