Click Save to get the text file at your convenient location. For ex., If you write the name of the text file windowsbackupproductkey then its full name will be windowsbackupproductkey.ps1. Step 3 – Provide a preferable name to the file and write extension. $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) If($OSInfo -match "Microsoft Windows 8" -or $OSInfo -match "Microsoft Windows 10") $OSInfo = (Get-WmiObject "Win32_OperatingSystem" | select Caption).Caption $ProductID = (Get-itemproperty -Path "HKLM:Software\Microsoft\Windows NT\CurrentVersion" -Name "ProductId").ProductId $ProductName = (Get-itemproperty -Path "HKLM:Software\Microsoft\Windows NT\CurrentVersion" -Name "ProductName").ProductName $Object = $wmi.GetBinaryValue($hklm,$regPath,$DigitalID) $wmi = "\\$Target\root\default:stdRegProv" $regPath = "Software\Microsoft\Windows NT\CurrentVersion" Step 2– Once the notepad appears on the computer’s screen, copy the below bundle of scripts and paste into it – #Main function Step 1 – Press the shortcuts combination Win R, write notepad in the given space, and then click Enter. Backup Product Key of Windows 10, 8.1 and 8
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |