DscBuildHelpers

0.4.0-preview0001

Build Helpers for DSC Resources and Configurations

Minimum PowerShell version

5.0

This is a prerelease version of DscBuildHelpers.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name DscBuildHelpers -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name DscBuildHelpers -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2022 Gael Colas. All rights reserved.

Package Details

Author(s)

  • Gael Colas

Tags

DesiredStateConfiguration DSC BuildHelpers DSCResource

Functions

Clear-CachedDscResource Compress-DscResourceModule Find-ModuleToPublish Get-DscFailedResource Get-DscResourceFromModuleInFolder Get-DscResourceWmiClass Get-DscSplattedResource Get-ModuleFromFolder Initialize-DscResourceMetaInfo Publish-DscConfiguration Publish-DscResourceModule Push-DscConfiguration Push-DscModuleToNode Remove-DscResourceWmiClass Test-DscResourceFromModuleInFolderIsValid

Dependencies

Release Notes

## [0.4.0-preview0001] - 2026-03-07

### Changed

- Enabled all tests in 'Get-DscSplattedResource.Integration.Tests.ps1'.
- Improved module import handling and getting the module info from 'Get-Module' if
 already imported.
- Updated build scripts to Sampler 0.119.0-preview0005 for fixing issues with debugging.
- Improved 'SupportsShouldProcess' handling in 'Clear-CachedDscResource.ps1'.
- Added 'SupportsShouldProcess' to 'Remove-DscResourceWmiClass'.

### Added

- Added support for complex data types in MOF-based and class-based resources by
 rewriting 'Get-DscSplattedResource' and adding these functions:
 - 'Get-CimType'.
 - 'Get-DynamicTypeObject'.
 - 'Get-PropertiesData'.
 - 'Write-CimProperty'.
 - 'Write-CimPropertyValue'.
 - 'Get-DscResourceProperty'.
 - 'Initialize-DscResourceMetaInfo'.
- Add integration tests for Get-DscResourceProperty function.
 - Add latest versions of' NetworkingDsc', 'ComputerManagementDsc', and 'Microsoft365DSC'
   to 'RequiredModules.psd1' for 'Get-DscResourceProperty' integration tests.
- Added integration test for 'Initialize-DscResourceMetaInfo' and added 'SharePointDsc'.
- Added tests covering the test DSC resource in 'tests\Integration\Assets\DscResources'.
- Added support for hashtable parameters in class-based resources.
- Added test case 'ClassBasedResource1-3' with integer hashtable values and an
 integration test that verifies PS5 rejects and PS7 accepts 'System.Int32' values
 in class-based resource hashtable properties.

### Fixed

- Fixed null reference check for array type in 'Get-DscResourceProperty' function.
 An error was thrown that the property 'IsArray' could not be found.
- Fixed a bug in 'Initialize-DscResourceMetaInfo' when importing for example
 'SharePointDsc', which returns 2 objects.
- Fixed 'ClassBasedResource1' test data so hashtable values are strings instead of
 integers, preventing PS5's DSC engine from throwing 'System.ArgumentException'
 for 'System.Int32' values in class-based resource hashtable properties.
- Fixed PS5 test discovery failure caused by empty entries in 'PSModulePath'. PS5's
 default 'PSModulePath' ends with a trailing semicolon which creates an empty path
 entry that crashes 'Get-DscResource'.
- Fixed '$requiredModulesPath' not being visible inside Pester's scope on PS5. In
 PS5, InvokeBuild script-scope variables are not resolved across module session
 state boundaries into Pester's scope.

FileList

Version History

Version Downloads Last updated
0.4.0-previe... (current version) 461 3/7/2026
0.3.0 7,597 2/3/2026
0.3.0-previe... 2,516 11/18/2025
0.3.0-previe... 1,531 1/18/2025
0.3.0-previe... 549 12/31/2024
0.3.0-previe... 205 11/21/2024
0.2.4-previe... 36 11/13/2024
0.2.3 53,672 11/9/2024
0.2.3-previe... 4 11/9/2024
0.2.3-previe... 317 8/30/2024
0.2.3-previe... 7 8/30/2024
0.2.3-previe... 2,230 7/1/2024
0.2.2 12,472 4/18/2024
0.2.2-previe... 434 4/3/2024
0.2.2-previe... 2,053 1/13/2024
0.2.1 27,992 4/16/2022
0.2.0 78 4/14/2022
0.0.42 4,067 10/2/2020
0.0.40 13,796 4/12/2019
0.0.36 1,430 11/20/2018
0.0.35 31 11/20/2018
0.0.34 630 9/21/2018
0.0.31 1,414 4/4/2018
0.0.2 22 4/4/2018
0.0.1 25 4/4/2018
Show more