Importing psd1 data file into local variable

suggest change

Sometimes it can be useful to test your Powershell data files and iterate through the nodes and servers.

Powershell 5 (WMF5) added this neat little feature for doing this called Import-PowerShellDataFile .

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:


Desired state configuration:
* Importing psd1 data file into local variable

Table Of Contents
1 Loops
19 XML
22 Strings
25 Aliases
32 Desired state configuration
47 MongoDB
65 AWS S3