Skip to content

Instantly share code, notes, and snippets.

View ferdinandosimonetti's full-sized avatar

Ferdinando Simonetti ferdinandosimonetti

View GitHub Profile
@ferdinandosimonetti
ferdinandosimonetti / get-ovfenv.py
Created November 3, 2023 06:35 — forked from lrivallain/get-ovfenv.py
This script retrieves informations from guestInfo.ovfEnv and print the OVF properties. In second time, it use OVF properties to reset the root password.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This script retrieves information from guestInfo.ovfEnv and
print the OVF properties.
In second time, it use OVF properties to reset the root password.
"""
import subprocess
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52