Importing psd1 data file into local variable

suggest change

You 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents