The Windows findstr command is a bit like grep on *NIX systems. # Use findstr to filter the output of systeminfo (or another # command): # systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"