Understanding DSC File Set Properties

The DscFileSet class has several properties. These are shown in the following table.

Property name

Description

IsSealed

True if the file set is sealed.

CreationTime

Time when the file set was created (not the time it was sealed, if it is sealed.)

In addition to these properties, the DscFileSet class has set and get methods for the lease end time of the file set. These are the GetLeaseEndtime and SetLeaseEndTime methods. The lease end time specifies a clock time. After the lease end time is reached, the DSC service automatically deletes a file set and all of its associated DSC files, unless those files are also associated with other file sets. The default lease time is None, which means that the file set is never removed.

The lease time can be specified as an argument to the DscService class’s CreateFileSet method.

Note

Intermediate results are managed by the system, and are unaffected by the DSC lease time.