Importing psd1 data file into local variable
suggest changeYou can load a PowerShell data file and walk its nodes without executing it as a script.
Windows PowerShell 5.0 (WMF 5) added Import-PowerShellDataFile for this:
Example:
$data = Import-PowerShellDataFile -path .\MydataFile.psd1
$data.AllNodes
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents