Is there a way to see/export the OS type of the VMs?
We are trying to find out how many Windows servers we have of each version (2016, 2012).
Thanks
Regards
Best answer by jlackman
View originalBest answer by jlackman
View originalGet-ADComputer -Filter {(OperatingSystem -like "*windows*server*") -and (Enabled -eq "True")} -Properties OperatingSystem | sort OperatingSystem | ft DNSHostName, OperatingSystem
Get-ADComputer -Filter {(OperatingSystem -like "*windows*server*") -and (Enabled -eq "True")} -Properties OperatingSystem | sort OperatingSystem | ft DNSHostName, OperatingSystem
$Servers = Get-ADComputer -Filter {(OperatingSystem -like "*windows*server*") -and (Enabled -eq "True")} -Properties OperatingSystem | Sort Name
$servers | group operatingsystem
CVM$ nutanix_guest_tools_cli query_vm_tools_entity "d180a45e-7a45-4542-b17f-e4ac21ac55b7"
guest_os_type: kWindows
guest_os_release: "Windows7Professional"
is_windows_server_os: false
guest_os_version: "6.1.7601"
CVM$ arithmos_cli master_get_entities entity_type=vm | grep -A 1 "vm_name\|ngt.guest_os"
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.