Advertisement
LazerPanther

win7 activation fix - 1/8/19 update

Jan 9th, 2019
1,481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $win7list =  get-content "c:\scripts\win7list.txt"
  2.  
  3. foreach ($computer in $win7list)
  4. {
  5. if (Test-Connection -Quiet $computer -BufferSize 16 -Count 1)
  6.     {
  7.  
  8.     Write-Host "Connecting to $computer"
  9.     Invoke-Command -ComputerName $computer -ScriptBlock {(wusa.exe /uninstall /KB:971033 /quiet /norestart),(stop-service sppsvc),
  10.     (Remove-Item "$env:windir\system32\7B296FB0-376B-497e-B012-9C450E1B7327-5P-0.C7483456-A289-439d-8115-601632D005A0" -Force),
  11.     (Remove-Item "$env:windir\system32\7B296FB0-376B-497e-B012-9C450E1B7327-5P-1.C7483456-A289-439d-8115-601632D005A0" -Force),
  12.     (Remove-Item "$env:windir\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat" -Force),
  13.     (Remove-Item "$env:windir\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\cache\cache.dat" -Force),
  14.     (Start-Service sppsvc), (slmgr //B /ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH),(slmgr //B /ato) }
  15.     }
  16. else{
  17.     write-host "$computer is offline." -ForegroundColor Magenta
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement