mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-14 14:27:22 +00:00
Fixed link
This commit is contained in:
parent
be6ac5a4be
commit
cc8f21a8ef
@ -249,7 +249,7 @@ changepk.exe /ProductKey %ProductKey%
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
Since [WMIC was deprecated](https://docs.microsoft.com/windows/win32/wmisdk/wmic) in Windows 10, version 21H1, run this PowerShell alternative:
|
Since [WMIC was deprecated](/windows/win32/wmisdk/wmic) in Windows 10, version 21H1, run this PowerShell alternative:
|
||||||
```console
|
```console
|
||||||
$(Get-WmiObject SoftwareLicensingService).OA3xOriginalProductKey | foreach{ if ( $null -ne $_ ) { Write-Host "Installing"$_;.\changepk.exe /Productkey $_ } else { Write-Host "No key present" } }
|
$(Get-WmiObject SoftwareLicensingService).OA3xOriginalProductKey | foreach{ if ( $null -ne $_ ) { Write-Host "Installing"$_;.\changepk.exe /Productkey $_ } else { Write-Host "No key present" } }
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user