Hi,
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
Solved
Export list of VMs OS Types
Best answer by jlackman
jlackman wrote:
You could just do it in Powershell and not even use Nutanix;
This will list all enabled Server Objects by OS and show hostnames too;
This will list all enabled Server Objects by OS and show hostnames too;
code:
Get-ADComputer -Filter {(OperatingSystem -like "*windows*server*") -and (Enabled -eq "True")} -Properties OperatingSystem | sort OperatingSystem | ft DNSHostName, OperatingSystem
Or if you just want to count them but not get a list try this;
code:
$Servers = Get-ADComputer -Filter {(OperatingSystem -like "*windows*server*") -and (Enabled -eq "True")} -Properties OperatingSystem | Sort Name
$servers | group operatingsystem
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.