Skip to content

Get-M365DSCResourceDifferences

Description

This function compares two installed versions of Microsoft365DSC and returns resources that were added or removed in the newer version.

Output

This function outputs information as the following type: System.Collections.Hashtable

Parameters

Parameter Required DataType Default Value Allowed Values Description
PreviousVersion True String Specifies the previous (older) module version to compare against.
CurrentVersion False String Specifies the current (newer) module version. If not specified, defaults to the latest installed version.

Examples

-------------------------- EXAMPLE 1 --------------------------

Get-M365DSCNewResources -PreviousVersion '1.24.501.1' -CurrentVersion '1.24.515.1'

-------------------------- EXAMPLE 2 --------------------------

Get-M365DSCNewResources -PreviousVersion '1.24.501.1'