< Back

Import-PSFPowerShellDataFile

Sun Jan 19, 2020 6:41 pm

NAME Import-PSFPowerShellDataFile



SYNOPSIS

A wrapper command around Import-PowerShellDataFile





SYNTAX

Import-PSFPowerShellDataFile [-Path <String[]>] [<CommonParameters>]



Import-PSFPowerShellDataFile [-LiteralPath <String[]>] [<CommonParameters>]





DESCRIPTION

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.





PARAMETERS

-Path <String[]>

The path from which to load the data file.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LiteralPath <String[]>

The path from which to load the data file.

In opposite to the Path parameter, input here will not be interpreted.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Import-PSFPowerShellDataFile -Path .\\data.psd1



Safely loads the data stored in data.psd1











RELATED LINKS