System
PC's Name
C:\> hostnameDisplay environment variables:
C:\> setPS C:\> Get-ChildItem Env: | ft Key,ValueGetting System Version
PS C:\> Get-WmiObject -Class win32_OperatingSystem | select Version,BuildNumberGather system info
C:\> systeminfoPS C:\> Get-WmiObject -Class Win32_OperatingSystem | select SystemDirectory,BuildNumber,SerialNumber,Version | ftChecking OS Build Info
PS C:\> [environment]::OSVersion.VersionChecking UAC
# 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 ConsentPromptBehaviorAdminCheck Computer Description Field
Last updated