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

PI Powershell

ConnectPIDataArchive.WindowsCredential Property

  • Last UpdatedDec 15, 2025
  • 2 minute read
ConnectPIDataArchive.WindowsCredential Property

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

Property Value

Type: NetworkCredential

See Also

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