windows server 2016 powershell version code example Example: PowerShell command list software windows server 2016 Get-WmiObject -Class Win32_Product