Then, you have to click “Save” and save the file at any location of your choice.
Now, you have to name the file followed by the extension “.ps1”. $KeyOutput = $Keypart2.Insert($Keypart2.IndexOf($Keypart1)+$Keypart1.length,”N”) $Keypart2 = $KeyOutput.Substring(1,$KeyOutput.length-1) }while($i -ge 0)$Keypart1 = $KeyOutput.SubString(1,$last) $KeyOutput = $Chars.SubString($Cur,1) + $KeyOutput $result = $Host.UI.PromptForChoice($caption,$message,$choices,0)
$no = New-Object .ChoiceDescription “&No”,”” $yes = New-Object .ChoiceDescription “&Yes”,”” Write-Warning “Failed to get Windows 8 product key,Some error occured.” Write-Warning “Please run this script on Windows 8.”