Code Monkey home page Code Monkey logo

Comments (7)

ArieHein avatar ArieHein commented on June 30, 2024

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

from xwindowsupdate.

reicher001 avatar reicher001 commented on June 30, 2024

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?

from xwindowsupdate.

cguitart avatar cguitart commented on June 30, 2024

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!

from xwindowsupdate.

reicher001 avatar reicher001 commented on June 30, 2024

*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.

from xwindowsupdate.

cguitart avatar cguitart commented on June 30, 2024

Great. Thanks

from xwindowsupdate.

FinickyCode avatar FinickyCode commented on June 30, 2024

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.'
    }

from xwindowsupdate.

JoeAtMsft avatar JoeAtMsft commented on June 30, 2024

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
    }
}

from xwindowsupdate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.