AddPIGroup Class
- Last UpdatedDec 15, 2025
- 3 minute read
Add a new PI Group to a PI Data Archive
The Add-PIGroup cmdlet adds a new PI Group on a PI Data Archive
The connection parameter specifies which connection to a PI Data Archive to use.
NOTE: PI Users and PI Groups have been replaced by PI Identities. PI Identities with PI Mappings (WIS) and PI Trusts should be used to configure PI Data Archive security. See KB00833 for more information.
Inheritance Hierarchy
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellOSICmdletBaseWithConnection
OSIsoft.PowerShellAddPIGroup
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)
Syntax
[CmdletAttribute("Add", "PIGroup", SupportsShouldProcess = true)] public class AddPIGroup : OSICmdletBaseWithConnection
<CmdletAttribute("Add", "PIGroup", SupportsShouldProcess := true)> Public Class AddPIGroup Inherits OSICmdletBaseWithConnection Dim instance As AddPIGroup
[CmdletAttribute(L"Add", L"PIGroup", SupportsShouldProcess = true)] public ref class AddPIGroup : public OSICmdletBaseWithConnection
[<CmdletAttribute("Add", "PIGroup", SupportsShouldProcess = true)>] type AddPIGroup = class inherit OSICmdletBaseWithConnection end
The AddPIGroup type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| AddPIGroup |
Properties
| Name | Description | |
|---|---|---|
| Connection | Connection to a PI Data Archive for which to add the PI Group | |
| Description | Description of the PI Group to add | |
| Name | Name of the PI Group to add |
Examples
Add-PIGroup -Name "PIEngineersGroup" -Description "All Floor Engineers" -Connection $con
Where:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
This example adds a new PI Group "PIEngineersGroup" with a description to the "PISRV1" PI Data Archive.