Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Hashtable |
DSC resource to initialize and configure WSUS Server. |
|||
Hashtable |
DSC resource to manage WSUS Cleanup task. |
|||
Hashtable |
DSC resource to manage WSUS Approval Rules. |
Parameter | Attribute | DataType | Description | Allowed Values | ||
---|---|---|---|---|---|---|
Ensure |
Key |
String |
An enumerated value that describes if WSUS is configured. |
|
||
SetupCredential |
PSCredential |
Credential to be used to perform the initial configuration. |
||||
SQLServer |
String |
SQL Server for the WSUS database, omit for Windows Internal Database. |
||||
ContentDir |
String |
Folder for WSUS update files. |
||||
UpdateImprovementProgram |
Boolean |
Join the Microsoft Update Improvement Program. |
|
|||
UpstreamServerName |
String |
Upstream WSUS server, omit for Microsoft Update. |
||||
UpstreamServerPort |
UInt16 |
Port of upstream WSUS server. |
||||
UpstreamServerSSL |
Boolean |
Use SSL with upstream WSUS server. |
|
|||
UpstreamServerReplica |
Boolean |
Replica of upstream WSUS server. |
|
|||
ProxyServerName |
String |
Proxy server to use when synchronizing, omit for no proxy. |
||||
ProxyServerPort |
UInt16 |
Proxy server port. |
||||
ProxyServerCredential |
PSCredential |
Proxy server credential, omit for anonymous. |
||||
ProxyServerBasicAuthentication |
Boolean |
Allow proxy server basic authentication. |
|
|||
Languages |
String |
Update languages, '*' for all. |
||||
Products |
String |
Update products, '*' for all. |
||||
Classifications |
String |
Update classifications |
|
|||
SynchronizeAutomatically |
Boolean |
Synchronize automatically. |
|
|||
SynchronizeAutomaticallyTimeOfDay |
String |
First synchronization. |
||||
SynchronizationsPerDay |
UInt16 |
Synchronizations per day. |
||||
Synchronize |
Boolean |
Begin initial synchronization. |
|
|||
ClientTargetingMode |
String |
An enumerated value that describes if how the Target Groups are populated. |
|
|||
ForceRebootBefore |
Booelan |
Force a reboot before setup of update services server.
|
|
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Ensure |
Key |
String |
An enumerated value that describes if the WSUS cleanup task exists. |
|
DeclineSupersededUpdates |
Boolean |
Decline updates that have not been approved fo 30 days or more, are not currently needed by any clients, and are superseded by an approved update. |
|
|
DeclineExpiredUpdates |
Boolean |
Decline updates that aren’t approved and have been expired by Microsoft. |
|
|
CleanupObsoleteUpdates |
Boolean |
Delete updates that are expired and have not been approved for 30 days or more, and delete older update revisions that have not been approved for 30 days or more. |
|
|
CompressUpdates |
Boolean |
Compress updates. |
|
|
CleanupObsoleteComputers |
Boolean |
Delete computers that have not contacted the server in 30 days or more. |
|
|
CleanupUnneededContentFiles |
Boolean |
Delete update files that aren’t needed by updates or downstream servers. |
|
|
CleanupLocalPublishedContentFiles |
Boolean |
Cleanup local published content files. |
|
|
TimeOfDay |
String |
Time of day to start cleanup. |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name |
Key |
String |
Name of the approval rule. |
|
Ensure |
String |
An enumerated value that describes if the ApprovalRule is available |
|
|
Classifications |
String[] |
Classifications in the approval rule. |
||
Products |
String[] |
Products in the approval rule. |
||
ComputerGroups |
String[] |
Computer groups the approval rule applies to. |
||
Enabled |
Boolean |
Whether the approval rule is enabled. |
|
|
Synchronize |
Boolean |
Synchronize after creating or updating the approval rule. |
|
|
RunRuleNow |
Boolean |
Run the approval rule after it has been created. |
|
Classification | ID |
---|---|
Applications |
5C9376AB-8CE6-464A-B136-22113DD69801 |
Connectors |
434DE588-ED14-48F5-8EED-A15E09A991F6 |
Critical Updates |
E6CF1350-C01B-414D-A61F-263D14D133B4 |
Definition Updates |
E0789628-CE08-4437-BE74-2495B842F43B |
Developer Kits |
E140075D-8433-45C3-AD87-E72345B36078 |
Feature Packs |
B54E7D24-7ADD-428F-8B75-90A396FA584F |
Guidance |
9511D615-35B2-47BB-927F-F73D8E9260BB |
Security Updates |
0FA1201D-4330-4FA8-8AE9-B877473B6441 |
Service Packs |
68C5B0A3-D1A6-4553-AE49-01D3A7827828 |
Tools |
B4832BD8-E735-4761-8DAF-37F882276DAB |
Update Rollups |
28BC880E-0592-4CBF-8F95-C79B17911D5F |
Updates |
CD5FFD1E-E932-4E3A-BF74-18BF0B1BBD83 |
UpdateServices:
Server:
Ensure: Present
SQLServer: localhost\SQLExpress
ContentDir: C:\WSUS-Packages
UpdateImprovementProgram: false
Languages: '*'
Products: '*'
Classifications: '*'
SynchronizeAutomatically: false
SynchronizeAutomaticallyTimeOfDay: '15:30:00'
SynchronizationsPerDay: 24
Synchronize: true
ClientTargetingMode: Client
ForceRebootBefore: true
Cleanup:
Ensure: Present
DeclineSupersededUpdates: false
DeclineExpiredUpdates: false
CleanupObsoleteUpdates: true
CompressUpdates: true
CleanupObsoleteComputers: true
CleanupUnneededContentFiles: true
CleanupLocalPublishedContentFiles: true
TimeOfDay: 4
ApprovaleRules:
- Ensure: Present
Name: Definition Updates
Classifications:
- 'E0789628-CE08-4437-BE74-2495B842F43B'
Enabled: true
RunRuleNow: true
- Ensure: Present
Name: Critical Updates
Classifications:
- 'E6CF1350-C01B-414D-A61F-263D14D133B4'
Enabled: true
RunRuleNow: true