AddPIFirewall Class
- Last UpdatedDec 15, 2025
- 3 minute read
Add an entry in the PI Firewall Table
The Add-PIFirewall cmdlet adds an entry in the PI Firewall table
The connection parameter specifies which connection to a PI Data Archive to use.
Inheritance Hierarchy
SystemObject
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellAddPIFirewall
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellAddPIFirewall
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)
Syntax
[CmdletAttribute("Add", "PIFirewall", SupportsShouldProcess = true)] public class AddPIFirewall : OSICmdletBase
<CmdletAttribute("Add", "PIFirewall", SupportsShouldProcess := true)> Public Class AddPIFirewall Inherits OSICmdletBase Dim instance As AddPIFirewall
[CmdletAttribute(L"Add", L"PIFirewall", SupportsShouldProcess = true)] public ref class AddPIFirewall : public OSICmdletBase
[<CmdletAttribute("Add", "PIFirewall", SupportsShouldProcess = true)>] type AddPIFirewall = class inherit OSICmdletBase end
The AddPIFirewall type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| AddPIFirewall |
Properties
| Name | Description | |
|---|---|---|
| Connection | Connection to a PI Data Archive for which to add the PI Firewall entry | |
| Hostmask | Hostmask of the PI Firewall entry to add | |
| Value | Value of the PI Firewall entry to add. Valid values are: "Allow" : "Disallow" |
Examples
Add-PIFirewall -Hostmask "192.168.0.56" -Value Disallow -Connection $conWhere:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Adds an entry in the PI Firewall table disallowing connections from IP Address 192.168.0.56 on the "PISRV1" PI Data Archive server.