Display operating system configuration for a local or remote machine.
:: Display system configuration for the local machine:
systeminfo
:: Display system configuration in a specified output format:
systeminfo /fo <table|list|csv>
:: Display system configuration for a remote machine:
systeminfo /s <remote_name> /u <username> /p <password>
:: Display detailed usage information:
systeminfo /?
:: ---
:: To show the current OS Name and Version only:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"