Advertisement
adamchilcott

enableOptional.vbs

Oct 13th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set ServiceManager = CreateObject("Microsoft.Update.ServiceManager")
  2. ServiceManager.ClientApplicationID = "My App"
  3.  
  4. 'add the Microsoft Update Service, GUID
  5. Set NewUpdateService = ServiceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")
  6.  
  7. ' START NOTES
  8.  
  9. ' Reference:
  10. ' <https://docs.microsoft.com/en-gb/windows/desktop/Wua_Sdk/opt-in-to-microsoft-update>
  11. ' <https://blogs.technet.microsoft.com/danbuche/2010/01/06/enabling-and-disabling-microsoft-update-in-windows-7-via-script/>
  12.  
  13. ' END NOTES
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement