Advertisement
hollerith

macfee reg keys for Spectre

Mar 7th, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $Computers = Get-Content "C:ServerNames.txt" | Sort
  2.  
  3. $ErrorActionPreference= 'silentlycontinue'
  4.  
  5.  
  6. Start-Transcript -path "C:\temp\AVRegFix\serverlog.txt" -append
  7.  
  8. foreach ($Computer in $Computers){
  9.  
  10. write-output "Working on $Computer"
  11.  
  12. Invoke-Command -computername $Computer -ScriptBlock {
  13.  
  14. New-Item -Name "QualityCompat" -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion" -type Directory
  15.  
  16. New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat" -Name "cadca5fe-87d3-4b96-b7fb-a231484277cc" -Value "0" -PropertyType "DWord"
  17.  
  18.  
  19. }
  20.  
  21. Sleep -Seconds 3
  22.  
  23. }
  24.  
  25. Stop-Transcript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement