Examples/Resources/xWindowsUpdateAgent/1-SetWuaScheduledFromWu.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<#
    .EXAMPLE
    Sets the Windows Update Agent to use the Windows Update service and sets
    the notifications to scheduled install. Does not install updates during
    the configuration.
#>


Configuration Example
{
    Import-DscResource -ModuleName xWindowsUpdate
    
    xWindowsUpdateAgent MuSecurityImportant
    {
        IsSingleInstance = 'Yes'
        UpdateNow        = $false
        Source           = 'WindowsUpdate'
        Notifications    = 'ScheduledInstallation'
    }
}