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 | Feb 2, 2024
function Generate-ComplexPassword { param( [Parameter(Mandatory=$true)] [int]$Length ) # Define character sets $lowercase = "abcdefghijklmnopqrstuvwxyz" $uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" $numbers = "0123456789" $specialChars =...
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...