PS C:\> Get-ChildItem Env: | ft Key,Value
PS C:\> Get-WmiObject -Class win32_OperatingSystem | select Version,BuildNumber
PS C:\> Get-WmiObject -Class Win32_OperatingSystem | select SystemDirectory,BuildNumber,SerialNumber,Version | ft
PS C:\> [environment]::OSVersion.Version
# If it's enabled
C:\> REG QUERY HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ /v EnableLUA
# Checking UAC Prompt Level
C:\> REG QUERY HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ /v ConsentPromptBehaviorAdmin
PS C:\> Get-WmiObject -Class Win32_OperatingSystem | select Description