Find Windows Server version from command line To find windows server version from command line, run gwmi win32_operatingsystem | % caption