Skip to content

Instantly share code, notes, and snippets.

@rchaganti
Last active May 10, 2016 14:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rchaganti/253ec4940c2d6440b618d5d6973f906a to your computer and use it in GitHub Desktop.
Save rchaganti/253ec4940c2d6440b618d5d6973f906a to your computer and use it in GitHub Desktop.
function Get-ConfigurationDataAsObject
{
[CmdletBinding()]
Param (
[Parameter(Mandatory)]
[Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()]
[hashtable] $ConfigurationData
)
return $ConfigurationData
}
Get-COnfigurationDataAsObject -ConfigurationData .\myData.psd1
Get-COnfigurationDataAsObject -ConfigurationData $myHashTable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment