< Back

Edit-PANConfig

Sat Jan 18, 2020 6:24 pm

NAME Edit-PANConfig



SYNOPSIS

This will edit configuration based on the xml and path provided





SYNTAX

Edit-PANConfig [-XPath] <String> [-Data] <String> [-SkipCertificateCheck] [[-Tag] <String>] [[-Path] <String>]

[[-Addresses] <String[]>] [[-Key] <String>] [<CommonParameters>]





DESCRIPTION

This will edit configuration based on the xml and path provided





PARAMETERS

-XPath <String>

This is location from which to get the config



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Data <String>

This is location from which to get the config



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SkipCertificateCheck [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Tag <String>

This is the shortname to use to reference auth information and addresses



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Path <String>

Path to the file that has the tag data



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Addresses <String[]>

This is a set of addresses to run the command on, The firewalls must have the same master key for this to work



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Key <String>

This is a key to just use



Required? false

Position? 6

Default value

Accept pipeline input? false

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



NOTES





Author: Steve Borba https://github.com/sjborbajr/PAN-Power

Last Edit: 2019-09-25

Version 1.0.6 - added Edit config and commit and cert check skip



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



PS C:\\>The example below disables a rule called "Certbot to RPi"



PS C:\\> Edit-PANConfig -Data '<disabled>yes</disabled>' -XPath

"/config/devices/entry/vsys/entry/rulebase/security/rules/entry[@name='Certbot to RPi']"











RELATED LINKS