Examples/Sample_UpdateServicesClientDSC.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
configuration Sample_WindowsUpdateClient {
    Import-DscResource -ModuleName UpdateServicesClientDSC
    Node localhost {
        UpdateServicesClientDSC UpdateSettings {
            Ensure = 'Present'
            AutomaticUpdateEnabled = $true
            AutomaticUpdateOption = 'AutoDownloadAndNotifyForInstall'
            UpdateServer = 'https://wsus01.dscdomain.local:8530'
            UpdateTargetGroup = 'test'
        }
    }
}
Sample_WindowsUpdateClient -OutputPath C:\temp