PowerShell Logo Small

Set-WindowsProductKey



This is the built-in help made by Microsoft for the command 'Set-WindowsProductKey', 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

Sets the product key for the Windows image.

SYNTAX


Set-WindowsProductKey [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>] [-SystemDrive <String>] [-WindowsDirectory <String>] -Path <String> -ProductKey
<String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-WindowsProductKey cmdlet sets the product key for the current Windows Edition in the specified image.



<

RELATED LINKS

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

REMARKS

<

Examples


Example 1

PS C:\>Set-WindowsProductKey –Path c:\offline –ProductKey 12345-12345-12345-12345-12345



This command sets the product key on the Windows image that is mounted to c:\offline.