Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

AddTrustedProvider Class

  • Last UpdatedDec 15, 2025
  • 2 minute read
AddTrustedProvider Class

Add a Trusted Provider in the PISystem

The Add-AFTrustedProvider cmdlet allows you to add the specified trusted provider subject name to the list of trusted providers in the PISystem.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellAddTrustedProvider

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[CmdletAttribute("Add", "AFTrustedProvider", SupportsShouldProcess = true)]
public class AddTrustedProvider : OSICmdletBase
<CmdletAttribute("Add", "AFTrustedProvider", SupportsShouldProcess := true)>
Public Class AddTrustedProvider
	Inherits OSICmdletBase

Dim instance As AddTrustedProvider
[CmdletAttribute(L"Add", L"AFTrustedProvider", SupportsShouldProcess = true)]
public ref class AddTrustedProvider : public OSICmdletBase
[<CmdletAttribute("Add", "AFTrustedProvider", SupportsShouldProcess = true)>]
type AddTrustedProvider =  
    class
        inherit OSICmdletBase
    end

The AddTrustedProvider type exposes the following members.

Constructors

  NameDescription
Public method
AddTrustedProvider

Properties

  NameDescription
Public property
AFServer

Instance of the AFServer

Public property
ProviderName

Name of the Trusted Provider to add

Examples

$afServer | Add-AFTrustedProvider -ProviderName "SampleProviderName"

Where:

$afServer = Get-AFServer -Name "AFServerMachineName"

Adds the "SampleProviderName" provider as a trusted provider in PISystem specified by the AFServer

See Also

TitleResults for “How to create a CRG?”Also Available in