Advertisement
Lee_Dailey

find_win7_telemetry_&_w7-to-w10_updates.ps1

Nov 6th, 2015
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #file name = find_win7_telemetry_&_w7-to-w10_updates.ps1
  2. #  finds the following win7 telemetry & w7-to-w10-upgrade updates so you can remove them if you wish.
  3. #
  4.  
  5. #changes
  6. #  2015-11-07, Saturday
  7. #  - added comments
  8. #  - changed
  9. #    - Get-CimInstance -Class "win32_quickfixengineering"
  10. #    to
  11. #    - Get-HotFix
  12. #  2015-12-09, Wednesday
  13. #  - added KB3112343
  14. #  - spelling fixes
  15. #  - changed file name to include w7-to-w10
  16. #  2016-02-06, Saturday
  17. #  - added KB3123862
  18. #  2016-02-10, Wednesday
  19. #  - added KB3135445
  20. #  2016-03-05, Saturday
  21. #  - added KB3138612
  22.  
  23. #win7 telemetry & w7-to-w10 updates list
  24. #  these are not ALL of them, but they are the ones that seem to be referred to most often.
  25. #
  26.  
  27. #KBId = 2952664
  28. #Title = Compatibility update for upgrading Windows 7
  29. #url = https://support.microsoft.com/en-us/kb/2952664
  30.  
  31. #KBId = 2990214
  32. #Title = Update that enables you to upgrade from Windows 7 to a later version of Windows
  33. #url = https://support.microsoft.com/en-us/kb/2990214
  34.  
  35. #KBId = 3021917
  36. #Title = Update to Windows 7 SP1 for performance improvements [includes CEIP telemetry]
  37. #url = https://support.microsoft.com/en-us/kb/3021917
  38.  
  39. #KBId = 3022345
  40. #Title = Update for customer experience and diagnostic telemetry
  41. #url = https://support.microsoft.com/en-us/kb/3022345
  42.  
  43. #KBId = 3035583
  44. #Title = Update installs Get Windows 10 app in Windows 8.1 and Windows 7 SP1
  45. #url = https://support.microsoft.com/en-us/kb/3035583
  46.  
  47. #KBId = 3068708
  48. #Title = Update for customer experience and diagnostic telemetry
  49. #url = https://support.microsoft.com/en-us/kb/3068708
  50.  
  51. #KBId = 3075249
  52. #Title = Update that adds telemetry points to consent.exe in Windows 8.1 and Windows 7
  53. #url = https://support.microsoft.com/en-us/kb/3075249
  54.  
  55. #KBId = 3080149
  56. #Title = Update for customer experience and diagnostic telemetry
  57. #url = https://support.microsoft.com/en-us/kb/3080149
  58.  
  59. #KBId = 3112343
  60. #Title = Windows Update Client for Windows 7 and Windows Server 2008 R2: December 2015
  61. #url = https://support.microsoft.com/en-us/kb/3112343
  62.  
  63. #KBId = 3123862
  64. #Title = Updated capabilities to upgrade Windows 8.1 and Windows 7
  65. #url = https://support.microsoft.com/en-us/kb/3123862
  66.  
  67. #KBId = 3135445
  68. #Title = Windows Update Client for Windows 7 and Windows Server 2008 R2: February 2016
  69. #url = https://support.microsoft.com/en-us/kb/3135445
  70.  
  71. #KBId = 3138612
  72. #Title = Windows Update Client for Windows 7 and Windows Server 2008 R2: March 2016
  73. #url = https://support.microsoft.com/en-us/kb/3138612
  74.  
  75. #end of win7 telemetry updates list
  76. #
  77.  
  78. $Installed_Updates = Get-HotFix
  79.  
  80. $Win7_Telemetry_Updates = "KB2952664","KB2990214","KB3021917","KB3022345","KB3035583","KB3068708",
  81.                           "KB3075249","KB3080149","KB3112343","KB3123862","KB3135445","KB3138612"
  82.  
  83. foreach ($KB_Id in $Win7_Telemetry_Updates)
  84.  {if ($Installed_Updates.hotfixid -eq $KB_Id)
  85.   {write-output "found $KB_Id"}
  86.   else
  87.    {write-output "--------------> $KB_Id NOT found"}
  88.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement