What Microsoft Giveth, Microsoft taketh away.

Welcome Forums General PowerShell Q&A What Microsoft Giveth, Microsoft taketh away.

Viewing 2 reply threads
  • Author
    Posts
    • #231688
      Participant
      Topics: 14
      Replies: 70
      Points: 38
      Rank: Member

      The poorly documented but much used WindowsUpdateProvider module that has been around since 1703 is not in 2004 (20h1)

      If you had a dependency on Start-WUScan or Install-WUUpdates it’s time to update your code.

    • #231706
      Participant
      Topics: 12
      Replies: 525
      Points: 1,233
      Helping Hand
      Rank: Community Hero

      You can use PSWindowsUpdate as in:

      #region First Time
      [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # PowerShellGallery dropped Ssl3 and Tls as of 1 April 2020
      Set-PSRepository -Name PSGallery -InstallationPolicy Trusted 
      Remove-Module PSWindowsUpdate -Force -EA 0 
      Install-Module PSWindowsUpdate -Force 
      Import-Module PSWindowsUpdate 
      Get-Module PSWindowsUpdate 
      Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d -Confirm:$false 
      Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot 
      Enable-WURemoting -LocalAccountTokenFilterPolicy:$true -WinRMPublic:$true 
      #endregion
      
      #region Repeat
      Install-WindowsUpdate -AcceptAll -Install -AutoReboot -MicrosoftUpdate -Confirm:$false 
      Get-WUHistory | select -First 10 | FT -a 
      Get-WUInstallerStatus 
      #endregion
      
      • This reply was modified 1 month, 1 week ago by Sam Boutros.
    • #231724
      Participant
      Topics: 14
      Replies: 70
      Points: 38
      Rank: Member

      I’m aware of that module.. however I have to use a private repo and all code must be signed by a trusted signer.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.