ansible-vsphere-gos-validation
ansible-vsphere-gos-validation copied to clipboard
[Windows] Fix OS in-place upgrade issues from Windows Server 2012 R2 and Windows Server 2016
In Windows Server 2016 guest OS, get Windows Server 2025 image info as below:
TASK [Execute PowerShell command] **********************************************
task path: /home/worker/workspace/Ansible_Windows_Server_LTSC_Upgrade2016_MAIN_NVME_E1000E_EFI/ansible-vsphere-gos-validation/windows/utils/win_execute_cmd.yml:23
changed: [localhost -> test_vm] => {
"changed": true,
"cmd": "Get-WindowsImage -ImagePath D:\\sources\\install.wim",
"delta": "0:00:21.125000",
"end": "2024-05-10 09:50:20.468477",
"rc": 0,
"start": "2024-05-10 09:49:59.343477",
"stderr": "",
"stderr_lines": [],
....
"stdout_lines": [
"",
"",
"ImageIndex : 1",
"ImageName : Windows Server 2025 SERVERSTANDARDCORE",
"ImageDescription : Windows Server 2025 SERVERSTANDARDCORE",
"ImageSize : 8,953,831,686 bytes",
"",
"ImageIndex : 2",
"ImageName : Windows Server 2025 SERVERSTANDARD",
"ImageDescription : Windows Server 2025 SERVERSTANDARD",
"ImageSize : 18,945,747,354 bytes",
"",
"ImageIndex : 3",
"ImageName : Windows Server 2025 SERVERDATACENTERCORE",
"ImageDescription : Windows Server 2025 SERVERDATACENTERCORE",
"ImageSize : 8,949,864,520 bytes",
"",
"ImageIndex : 4",
"ImageName : Windows Server 2025 SERVERDATACENTER",
"ImageDescription : Windows Server 2025 SERVERDATACENTER",
"ImageSize : 18,946,223,263 bytes",
"",
"",
""
]
How about Windows Server 2012 R2? What's the image info got from it?
How about Windows Server 2012 R2? What's the image info got from it?
It's the same as Windows Server 2016.