ConnectPIDataArchive.AuthenticationMethod Property
- Last UpdatedDec 15, 2025
- 2 minute read
PI authentication method to use when connecting to a PI Data Archive. Valid options are:
"Windows" or "Trust"
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)
Syntax
[ParameterAttribute(Position = 1, Mandatory = false, ParameterSetName = "MachineName", HelpMessage = "Authentication method")] [ParameterAttribute(Position = 2, Mandatory = false, ParameterSetName = "MachineNameViaWindowsAccount", HelpMessage = "Authentication method")] [ParameterAttribute(Position = 3, Mandatory = false, ParameterSetName = "MachineNameViaPIUser", HelpMessage = "Authentication method")] [ValidateNotNullOrEmptyAttribute] public PISecurityMode[] AuthenticationMethod { get; set; }
<ParameterAttribute(Position := 1, Mandatory := false, ParameterSetName := "MachineName", HelpMessage := "Authentication method")> <ParameterAttribute(Position := 2, Mandatory := false, ParameterSetName := "MachineNameViaWindowsAccount", HelpMessage := "Authentication method")> <ParameterAttribute(Position := 3, Mandatory := false, ParameterSetName := "MachineNameViaPIUser", HelpMessage := "Authentication method")> <ValidateNotNullOrEmptyAttribute> Public Property AuthenticationMethod As PISecurityMode() Get Set Dim instance As ConnectPIDataArchive Dim value As PISecurityMode() value = instance.AuthenticationMethod instance.AuthenticationMethod = value
public: [ParameterAttribute(Position = 1, Mandatory = false, ParameterSetName = L"MachineName", HelpMessage = L"Authentication method")] [ParameterAttribute(Position = 2, Mandatory = false, ParameterSetName = L"MachineNameViaWindowsAccount", HelpMessage = L"Authentication method")] [ParameterAttribute(Position = 3, Mandatory = false, ParameterSetName = L"MachineNameViaPIUser", HelpMessage = L"Authentication method")] [ValidateNotNullOrEmptyAttribute] property array<PISecurityMode>^ AuthenticationMethod { array<PISecurityMode>^ get (); void set (array<PISecurityMode>^ value); }
[<ParameterAttribute(Position = 1, Mandatory = false, ParameterSetName = "MachineName", HelpMessage = "Authentication method")>] [<ParameterAttribute(Position = 2, Mandatory = false, ParameterSetName = "MachineNameViaWindowsAccount", HelpMessage = "Authentication method")>] [<ParameterAttribute(Position = 3, Mandatory = false, ParameterSetName = "MachineNameViaPIUser", HelpMessage = "Authentication method")>] [<ValidateNotNullOrEmptyAttribute>] member AuthenticationMethod : PISecurityMode[] with get, set