by Jeroen Lambrichts | Feb 9, 2024
param( [string]$vCenterServer = "vcenter.vcapsie.corp", [string]$outputLocation = "C:\vcapsie" ) # Function to log messages function Write-Log { param( [string]$Message, [string]$Path ) $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"...
by Jeroen Lambrichts | Jan 12, 2024
# PowerShell Script to Check VM Hard Disk Types and Export Results # Fetch all VMs $vms = Get-VM # Initialize variables $totalVMs = $vms.Count $completedVMs = 0 # Create an empty array to store results $results = @() # Process each VM foreach ($vm in $vms) { # Get...