DscResource.Common

0.24.5

Common functions used in DSC Resources

Minimum PowerShell version

5.0

Installation Options

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

Install-Module -Name DscResource.Common

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

Install-PSResource -Name DscResource.Common

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

Copyright the DSC Community contributors. All rights reserved.

Package Details

Author(s)

  • DSC Community

Tags

DSC Localization

Functions

Assert-BoundParameter Assert-ElevatedUser Assert-IPAddress Assert-Module Compare-DscParameterState Compare-ResourcePropertyState ConvertFrom-DscResourceInstance ConvertTo-CimInstance ConvertTo-HashTable Find-Certificate Format-Path Get-ComputerName Get-DscProperty Get-EnvironmentVariable Get-FileProductVersion Get-FileVersion Get-LocalizedData Get-LocalizedDataForInvariantCulture Get-PSModulePath Get-RegistryPropertyValue Get-TemporaryFolder Get-UserName New-ArgumentException New-ErrorRecord New-Exception New-InvalidDataException New-InvalidOperationException New-InvalidResultException New-NotImplementedException New-ObjectNotFoundException Remove-CommonParameter Set-DscMachineRebootRequired Set-PSModulePath Test-AccountRequirePassword Test-DscParameterState Test-DscProperty Test-IsNanoServer Test-IsNumericType Test-ModuleExist Test-PendingRestart

Dependencies

This module has no dependencies.

Release Notes

## [0.24.5] - 2025-12-19

### Added

- `Get-FileVersion`
 - New public command to return the version information for a file. This command
   returns the full `System.Diagnostics.FileVersionInfo` object.

### Changed

- Updated build scripts to Sampler 0.119.0-preview0005.
- `Get-FileProductVersion`
 - Changed to use the new `Get-FileVersion` command internally instead of
   directly accessing `Get-Item` and `VersionInfo`.

### Fixed

- New-*Exception
 - Use `ThrowTerminatingError` instead of `throw`. Fixes [#177](https://github.com/dsccommunity/DscResource.Common/issues/177).
- Compare-DscParameterState
 - Fixed a bug comparing single-valued arrays in the desired state when
   TurnOffTypeChecking is used [#184](https://github.com/dsccommunity/DscResource.Common/issues/184).
- Fix typo in `Clear-ZeroedEnumPropertyValue` help text. Fixes [#181](https://github.com/dsccommunity/DscResource.Common/issues/181).

FileList

Version History

Version Downloads Last updated
0.24.5 (current version) 25 12/19/2025
0.24.5-previ... 5 12/19/2025
0.24.5-previ... 6 11/25/2025
0.24.5-previ... 17 10/13/2025
0.24.5-previ... 28 9/24/2025
0.24.4 9,146 8/29/2025
0.24.4-previ... 4 8/29/2025
0.24.3 97 8/28/2025
0.24.3-previ... 4 8/28/2025
0.24.2 62 8/27/2025
0.24.2-previ... 4 8/27/2025
0.24.2-previ... 4 8/27/2025
0.24.2-previ... 4 8/27/2025
0.24.2-previ... 4 8/27/2025
0.24.1 6 8/27/2025
0.24.1-previ... 4 8/27/2025
0.24.1-previ... 4 8/27/2025
0.24.0 15 8/26/2025
0.24.0-previ... 5 8/26/2025
0.24.0-previ... 5 8/26/2025
0.24.0-previ... 31 7/23/2025
0.24.0-previ... 5 6/2/2025
0.23.0 3,638 5/2/2025
0.23.0-previ... 4 5/2/2025
0.22.0 203 4/25/2025
0.22.0-previ... 4 4/25/2025
0.22.0-previ... 4 4/23/2025
0.21.0 884 3/16/2025
0.21.0-previ... 4 3/16/2025
0.20.1 188 3/10/2025
0.20.1-previ... 4 3/10/2025
0.20.0 47 3/9/2025
0.20.0-previ... 4 3/9/2025
0.19.1 564 2/8/2025
0.19.1-previ... 4 2/8/2025
0.19.1-previ... 10 11/17/2024
0.19.0 1,318 10/15/2024
0.19.0-previ... 4 10/15/2024
0.18.0 204 9/30/2024
0.18.0-previ... 4 9/30/2024
0.18.0-previ... 4 9/30/2024
0.17.3-previ... 6 8/28/2024
0.17.2 1,385 7/20/2024
0.17.2-previ... 6 7/20/2024
0.17.1 1,636 4/23/2024
0.17.1-previ... 6 4/23/2024
0.17.1-previ... 82 2/13/2024
0.17.1-previ... 117 1/27/2024
0.17.0 1,007 1/23/2024
0.17.0-previ... 8 1/23/2024
0.17.0-previ... 8 1/23/2024
0.17.0-previ... 8 1/23/2024
0.17.0-previ... 8 1/23/2024
0.17.0-previ... 8 1/21/2024
0.17.0-previ... 8 1/21/2024
0.16.1-previ... 8 1/21/2024
0.16.1-previ... 15 1/20/2024
0.16.0 6,564 4/10/2023
0.16.0-previ... 9 4/9/2023
0.15.0 96 4/6/2023
0.15.0-previ... 9 4/6/2023
0.14.0 1,675 12/31/2022
0.14.0-previ... 9 12/31/2022
0.14.0-previ... 9 12/30/2022
0.13.1 176 12/18/2022
0.13.1-previ... 9 12/18/2022
0.13.0 25 12/17/2022
0.13.0-previ... 9 12/17/2022
0.13.0-previ... 9 12/11/2022
0.12.0 166 12/10/2022
0.12.0-previ... 9 12/10/2022
0.11.1 1,304 8/18/2022
0.11.1-previ... 14 8/18/2022
0.11.0 439 8/1/2022
0.11.0-previ... 14 8/1/2022
0.11.0-previ... 101 9/10/2021
0.10.3 3,157 6/26/2021
0.10.3-previ... 21 5/24/2021
0.10.2 1,231 3/24/2021
0.10.2-previ... 19 3/24/2021
0.10.2-previ... 21 1/18/2021
0.10.1 1,304 12/25/2020
0.10.1-previ... 20 12/25/2020
0.10.0 452 11/18/2020
0.10.0-previ... 17 11/16/2020
0.10.0-previ... 16 11/13/2020
0.9.3 660 7/25/2020
0.9.3-previe... 17 7/25/2020
0.9.2 68 7/22/2020
0.9.2-previe... 15 7/22/2020
0.9.2-previe... 15 7/22/2020
0.9.2-previe... 17 7/18/2020
0.9.1 152 7/8/2020
0.9.1-previe... 15 7/8/2020
0.9.0 1,220 5/18/2020
0.9.0-previe... 15 5/18/2020
0.8.0 206 5/11/2020
0.8.0-previe... 17 5/10/2020
0.7.1 366 5/2/2020
0.7.1-previe... 16 5/2/2020
0.7.0 18 5/2/2020
0.7.0-previe... 17 5/2/2020
0.7.0-previe... 20 5/1/2020
0.6.0 157 4/23/2020
0.6.0-previe... 22 4/23/2020
0.5.0 197 4/18/2020
0.5.0-previe... 22 4/18/2020
0.4.1-previe... 22 4/18/2020
0.4.0 271 3/9/2020
0.4.0-previe... 18 3/9/2020
0.3.0 103 2/15/2020
0.3.0-previe... 18 2/15/2020
0.3.0-previe... 21 2/14/2020
0.3.0-previe... 18 1/19/2020
0.2.0 956 1/9/2020
0.2.0-previe... 19 1/9/2020
0.1.1 112 11/27/2019
0.1.1-previe... 18 11/27/2019
Show more