Challenge : To have a clean inventory of host to switch mapping, we had to gather the lldp information of all the ESXi hosts. It would be easier if the hosts are a few/ in a single digit. We had to find an easy and automated script which can generate the output. Pre-requisites : 1) Requires power-cli to be installed. 2) Install-Module -Name VMware.PowerCLI -Scope CurrentUser Powershell script : 1) To ignore ssl certificate error Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$true 2) Script to connect to vCenter and provide valid credentials, and the script will provide the output in a csv format to the provided location, which can be customized. # Array of vCenter Server names or IP addresses $vCenterServers = @("192.168.1.62") # Add all your vCenter Servers here # Output file path $OutputPath = "C:\Users\asyed\Documents\ESXi_LLDP_Report1.csv" # Change this to your desired output path # --- Script Start --- Write-Host "Con...
Requirement: To convert a windows activation from Windows 2019 STD to Windows 2019 DC Issue: Unable to convert using dism command What has been done: After reviewing the logs and few online documentation, found a procedure to first forcefully convert the license to GVLK. GVLK: Microsoft Generic Volume License Key Procedure followed: Running the following commands from the powershell CLI 1) dism /online /Get-CurrentEdition 2) dism /online /Get-TargetEditions 3) DISM /online /Set-Edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula reboot Once the VM is back online 4) DISM /online /Set-Edition:ServerDatacenter /ProductKey:own-key /AcceptEula This will convert the windows edition from STD to DC