ConnectPIDataArchive.WindowsCredential Property
- Last UpdatedDec 15, 2025
- 2 minute read
Windows Credential to use when connecting to a PI Data Archive.
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)
Syntax
[ParameterAttribute(Position = 1, Mandatory = true, ParameterSetName = "MachineNameViaWindowsAccount", HelpMessage = "Windows account")] [ParameterAttribute(Position = 0, Mandatory = true, ParameterSetName = "ConnectionConfigurationViaWindowsAccount", HelpMessage = "Windows account")] [ValidateNotNullOrEmptyAttribute] public NetworkCredential WindowsCredential { get; set; }
<ParameterAttribute(Position := 1, Mandatory := true, ParameterSetName := "MachineNameViaWindowsAccount", HelpMessage := "Windows account")> <ParameterAttribute(Position := 0, Mandatory := true, ParameterSetName := "ConnectionConfigurationViaWindowsAccount", HelpMessage := "Windows account")> <ValidateNotNullOrEmptyAttribute> Public Property WindowsCredential As NetworkCredential Get Set Dim instance As ConnectPIDataArchive Dim value As NetworkCredential value = instance.WindowsCredential instance.WindowsCredential = value
public: [ParameterAttribute(Position = 1, Mandatory = true, ParameterSetName = L"MachineNameViaWindowsAccount", HelpMessage = L"Windows account")] [ParameterAttribute(Position = 0, Mandatory = true, ParameterSetName = L"ConnectionConfigurationViaWindowsAccount", HelpMessage = L"Windows account")] [ValidateNotNullOrEmptyAttribute] property NetworkCredential^ WindowsCredential { NetworkCredential^ get (); void set (NetworkCredential^ value); }
[<ParameterAttribute(Position = 1, Mandatory = true, ParameterSetName = "MachineNameViaWindowsAccount", HelpMessage = "Windows account")>] [<ParameterAttribute(Position = 0, Mandatory = true, ParameterSetName = "ConnectionConfigurationViaWindowsAccount", HelpMessage = "Windows account")>] [<ValidateNotNullOrEmptyAttribute>] member WindowsCredential : NetworkCredential with get, set