Checklist - Local Windows Privilege Escalation
Read More here (https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology and Resources/Windows - Privilege Escalation.md#windows-version-and-configuration)
Enumerating System to find out the system version and running processes.
~# systeminfo
~# systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type
~# wmic qfe
~# wmic qfe get Caption,Description,HotFixID,InstalledOn
~# wmic logicaldisk get caption,description,providername
~# wmic qfe get Caption,Description,HotFixID,InstalledOn #Patches
~# wmic os get osarchitecture || echo %PROCESSOR_ARCHITECTURE% #Get system architecture
~# [System.Environment]::OSVersion.Version #Current OS version
~# Get-WmiObject -query 'select * from win32_quickfixengineering' | foreach {$_.hotfixid} #List all patches
~# Get-Hotfix -description "Security update" #List only "Security Update" patches