API Reference
Command
Export-BGInfoConfiguration
Exports a BGInfo configuration to JSON.
Remarks
Writes a JSON file compatible with Invoke-BGInfo and the CLI.
Examples
EXAMPLE 1
Export-BGInfoConfiguration -InputObject 'Value'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Export-BGInfoConfiguration [-Force] -InputObject <BgInfoConfiguration> [-PassThru] -Path <String> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Force SwitchParameter
- Overwrite the output file if it exists.
- InputObject BgInfoConfiguration
- Configuration object to export.
- PassThru SwitchParameter
- Return the output path.
- Path String
- Output path for the JSON configuration file.
Outputs
System.String