A wrapper command around Import-PowerShellDataFile
Import-PSFPowerShellDataFile [-Path <String>] [<CommonParameters>]
Import-PSFPowerShellDataFile [-LiteralPath <String>] [<CommonParameters>]
A wrapper command around Import-PowerShellDataFile This enables use of the command on PowerShell 3+ as well as during JEA endpoints.
Note: The protective value of Import-PowerShellDataFile is only offered when run on PS5+. This is merely meant to provide compatibility in the scenarios, where the original command would fail! If you care about PowerShell security, update to the latest version (in which case this command is still as secure as the default command, as that is what will actually be run.
Import-PSFPowerShellDataFile -Path .\data.psd1
Safely loads the data stored in data.psd1
The path from which to load the data file.
Type: String Parameter Sets: ByPath Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False
The path from which to load the data file. In opposite to the Path parameter, input here will not be interpreted.
Type: String Parameter Sets: ByLiteralPath Aliases: PSPath Required: False Position: Named Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.