PowerShell Logo Small

Get-WindowsEdition



This is the built-in help made by Microsoft for the command 'Get-WindowsEdition', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets edition information about a Windows image.

SYNTAX


Get-WindowsEdition [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRestart] [-ScratchDirectory <String>] [-SystemDrive <String>] [-Target] [-WindowsDirectory <String>]
-Online [<CommonParameters>]
Get-WindowsEdition [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRestart] [-ScratchDirectory <String>] [-SystemDrive <String>] [-Target] [-WindowsDirectory <String>] -Path
<String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-WindowsEdition cmdlet gets the current editions of the specified Windows image.


The Target parameter gets the target editions available in the specified Windows image.


Use the Online parameter to specify the running operating system on your local computer, or use the Path parameter to specify the location of a mounted Windows image.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=289356
Set-WindowsEdition
Set-WindowsProductKey

REMARKS

<

Examples


Example 1

PS C:\>Get-WindowsEdition –Online



This command displays the name of the current edition of the running Windows operating system.






Example 2

PS C:\>Get-WindowsEdition –Path c:\offline -Target



This command displays the names of the available target editions that the mounted Windows image at c:\offline can be changed to.