是否有办法查看/导出虚拟机的操作系统类型?
我们试图找出每个版本有多少Windows服务器(2016年,2012年)。
谢谢
问候
最佳答案jlackman
You could just do it in Powershell and not even use Nutanix;
\r\n
\r\nThis will list all enabled Server Objects by OS and show hostnames too;
\r\n
\r\n
\r\n
\r\nThis will list all enabled Server Objects by OS and show hostnames too;
\r\n
\r\n
code:<\/b>
Get-ADComputer -Filter {(OperatingSystem -like \"*windows*server*\") -and (Enabled -eq \"True\")} -Properties OperatingSystem | sort OperatingSystem | ft DNSHostName, OperatingSystem
<\/pre><\/div><\/content-quote>
\r\n
\r\n
\r\n
\r\nOr if you just want to count them but not get a list try this;
\r\ncode:<\/b>查看原始$Servers = Get-ADComputer -Filter {(OperatingSystem -like \"*windows*server*\") -and (Enabled -eq \"True\")} -Properties OperatingSystem | Sort Name
$servers | group operatingsystem
<\/pre><\/div>","className":"post__content__best_answer"}">