PowerShell PowerShell Get-WmiObject -query "select caption from win32_operatingsystem" | select -expand caption | select-string -Pattern 'Windows 10' -Quiet 1 Get-WmiObject -query "select caption from win32_operatingsystem" | select -expand caption | select-string -Pattern 'Windows 10' -Quiet