Advertisement
kjacobsen

EMET v2 1

Jul 8th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Code Snippet from aperturescience.su
  2. $emetpath = "C:\Program Files\EMET"
  3.  
  4. #test if 64bit
  5. if (Test-Path "C:\Program Files (x86)\EMET")
  6. {
  7.     $emetpath = "C:\Program Files (x86)\EMET"
  8. }
  9.  
  10. cd $emetpath
  11.    
  12. .\EMET_Conf.exe --delete_all
  13.  
  14. # system security
  15. .\emet_conf.exe --system --force DEP=ApplicationOptOut SEHOP=ApplicationOptOut ASLR=ApplicationOptIN
  16.  
  17. # media centre
  18. .\emet_conf.exe --set C:\Windows\ehome\ehshell.exe
  19.  
  20. configure-apps "c:\windows\system32" "C:\Program Files"
  21.  
  22. #run for extra 64bit install locations
  23. if (Test-Path "C:\Program Files (x86)\EMET")
  24. {
  25.     configure-apps "c:\windows\syswow64" "C:\Program Files (x86)"
  26. }
  27. # Code Snippet from aperturescience.su
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement