Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Please add support for using WSUS #28

Open
alanrothschild opened this issue Sep 23, 2016 · 7 comments
Open

Feature Request: Please add support for using WSUS #28

alanrothschild opened this issue Sep 23, 2016 · 7 comments
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@alanrothschild
Copy link

We want to use xWindowsUpdate and WSUS to patch our servers because:

  1. The servers have no internet connectivity
  2. WSUS provides necessary patch management features including reporting
@kwirkykat kwirkykat added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Sep 23, 2016
@ArieHein
Copy link

ArieHein commented Oct 8, 2016

Can you elaborate a bit more what the issue you're having with using xWindowsUpate to achieve those points ?

@reicher001
Copy link

I am not sure if this is a feature request or just confusion of current functionality. Looking through the examples/docs I am under the impression that setting a machine to use a local WSUS server as the source of patching is not currently available.

Is that correct?

@cguitart
Copy link

cguitart commented Aug 8, 2017

Hi,

Is there any new information regarding this request? We would also be interesed in using this resource for configuring our VMs to use a local WSUS server.

Thanks!

@reicher001
Copy link

*This is not an endorsement and I have not used the following resource.

I found this resource that might do what you need. https://pwrshell.net/powershell-desired-state-configuration-resources-for-wsus/

That is what we will look at when we get back to working on this for our setup.

@cguitart
Copy link

cguitart commented Aug 9, 2017

Great. Thanks

@FinickyCode
Copy link

I've not used this resource, but suspect this will be a blocker for me too.

@ArieHein, I suspect what the others may be referencing, based on a quick look at the code, may be this:

    if($Source -eq 'WSUS')
    {
        throw 'The WSUS service option is not implemented.'
    }

@JoeAtMsft
Copy link

We are using the xWindowsUpdateAgent resource to manage clients installing updates via WSUS. To get around the terminating error that FinickyCode pasted above, we modified the resource as shown below. To make this completely work, we use a Registry resource to set the needed registry values under "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" (see "https://docs.microsoft.com/en-us/windows/deployment/update/waas-wu-settings for the specifics")

Here's the change needed for Test-TargetResourceProperties:

if($Source -eq 'WSUS')
{
    $key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate'
    $notImplemented = 'The WSUS service option is not implemented.'

    #Check to see if the WSUS source was configured via registry or GPO
    if((Get-ItemProperty -Path "$key\AU" -ErrorAction SilentlyContinue).UseWUServer -eq 1)
    {
		
        $wsusServer = (Get-ItemProperty -Path $key -ErrorAction SilentlyContinue).WUServer
        $wsusReporting = (Get-ItemProperty -Path $key -ErrorAction SilentlyContinue).WUStatusServer
		
        if((($wsusServer -like "http*") -and ($wsusReporting -like "http*")) -eq $false)
        {
	        throw $notImplemented
        }

    }
    else
    {
        throw $notImplemented
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

7 participants