diff --git a/PSUtilities/ScriptTools.ps1 b/PSUtilities/ScriptTools.ps1 index afaa200..f1304b9 100644 --- a/PSUtilities/ScriptTools.ps1 +++ b/PSUtilities/ScriptTools.ps1 @@ -233,7 +233,7 @@ Function Import-YAMLConfig () { If (Test-CommandExists -Command "ConvertFrom-Yaml") { If (Test-Path -Path $ConfigFile) { Try { - Return (Get-Content -Raw -Path $ConfigFile | ConvertFrom-Json) + Return (Get-Content -Raw -Path $ConfigFile | ConvertFrom-Yaml) } Catch { Write-Output "Error loading config file! Please make sure the correct path was provided, and that it is a properly formatted JSON file" -As Error