Share via


CleanupScope Constructor (Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)

 

Applies To: Windows Server Update Services

Initializes a new instance of the CleanupScope class with the given set of superseded, expired, obsolete, and compressed updates, obsolete computers, and unneeded content files to be removed.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public CleanupScope(
    bool supersededUpdates,
    bool expiredUpdates,
    bool obsoleteUpdates,
    bool compressUpdates,
    bool obsoleteComputers,
    bool unneededContentFiles
)
public:
CleanupScope(
    bool supersededUpdates,
    bool expiredUpdates,
    bool obsoleteUpdates,
    bool compressUpdates,
    bool obsoleteComputers,
    bool unneededContentFiles
)
new : 
        supersededUpdates:bool *
        expiredUpdates:bool *
        obsoleteUpdates:bool *
        compressUpdates:bool *
        obsoleteComputers:bool *
        unneededContentFiles:bool -> CleanupScope
Public Sub New (
    supersededUpdates As Boolean,
    expiredUpdates As Boolean,
    obsoleteUpdates As Boolean,
    compressUpdates As Boolean,
    obsoleteComputers As Boolean,
    unneededContentFiles As Boolean
)

Parameters

  • supersededUpdates
    Type: System.Boolean

    Number of updates each of which is:

    • superseded by an approved update

    • not deployed

    • and no clients need it for 3 months (configurable)

  • expiredUpdates
    Type: System.Boolean

    Number of expired unapproved updates.

  • obsoleteUpdates
    Type: System.Boolean

    Number of updates each of which is:

    • expired, explicitly-deployable software/driver, or

    • expired category/detectoid

    And

    • not deployed > 3 months and

    • ReceivedFromCreateService > 3 months (This value is configurable.)

    And,

    • not referenced as a bundle or prerequisite of another update
  • compressUpdates
    Type: System.Boolean

    Number of old revisions of updates that meet the following criteria:

    • never been deployed

    • have been undeployed for at least 3 months and ReceivedFromCreateServer > 3 months (configurable)

    • and not referenced as a bundle or prerequisite of other updates.

  • obsoleteComputers
    Type: System.Boolean

    Number of computers who haven't contacted the server for over a month.

  • unneededContentFiles
    Type: System.Boolean

    Number of unneeded content or binaries with the following criteria:

    • Any orphan content

    • Any file marked as NotNeeded and not requested by Down Stream Server (DSS)

    • Any file referenced by an expired update, not referenced by any other active update and not requested by DSS

See Also

CleanupScope Overload
CleanupScope Class
Microsoft.UpdateServices.Administration Namespace

Return to top