EPCode<!.--/>

"Coderen hoeft niet zo moeilijk te zijn!"
Inloggen
Powershell

Powershell - Overview
Windows PowerShell is a command-line shell and scripting language designed especially for system administration.
# Windows version (as in VER command)
[Environment]::OSVersion

# or, using WMI:
Get-CimInstance -Class Win32_OperatingSystem

# Windows edition (requires elevated privileges):
Get-WindowsEdition –Online

# friendly name (as in WinVer command):
$winver = ( Get-ItemProperty -Path "HKLM:SOFTWAREMicrosoftWindows NTCurrentVersion" )
"{0} {1}" -f $winver.ProductName, $winver.DisplayVersion


Zandbak