Windows Version and Configuration Cheatsheet
1. Hostname
Display the current computer's hostname
hostname
2. Windows Version and configuration
Retrieves detailed information about the operating system version and confifuration
systeminfo
you can filter specific details using findstr
:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
/B → Match at the beginning of the line.
/C → Match a specific string
3. Installed Patches and Updates
list all installed patches and updates:
wmic qfe
get specific update details
wmic qfe get Caption,Descripion,HotFixID,InstalledOn
search for specific updates
wmic qfe get Caption,Descripion,HotFixID,InstalledOn | findstr /C:"KB5000802"
4. OS Architecture
identifies the system archiecture
wmic os get osarchitecture
alternate method
echo '%PROCESSOR_ARCHITECTURE%'
5. Environment Variables
set
using powershell:
Get-ChildItem Env: | ft Key,Value
6. Disk and Drive information
Retrieves information about logical disks and physical drives.
wmic logicdisk
get detailed info
wmic logicdisk get caption,description,providername
Using Powershell
Get-PSDrive | where {$_.Provider -like "Microsoft.Powershell.Core\FileSystem"} | ft Name,Root
7. Detailed OS Configuration
wmic os get /format:list
8. Get Exact OS Version
not found in latest OS
type C:\Windows\System32\eula.txt
Last updated