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

PI Powershell

ConnectAFServer.WindowsCredential Property

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

Windows credential to use when connecting to the AF Server

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[ParameterAttribute(Position = 0, Mandatory = false, HelpMessage = "Network Windows Credential")]
[AliasAttribute(new string[] { ... })]
[ValidateNotNullOrEmptyAttribute]
public PSCredential WindowsCredential { get; set; }
<ParameterAttribute(Position := 0, Mandatory := false, HelpMessage := "Network Windows Credential")>
<AliasAttribute(New String() { ... })>
<ValidateNotNullOrEmptyAttribute>
Public Property WindowsCredential As PSCredential
	Get
	Set

Dim instance As ConnectAFServer
Dim value As PSCredential

value = instance.WindowsCredential

instance.WindowsCredential = value
public:
[ParameterAttribute(Position = 0, Mandatory = false, HelpMessage = L"Network Windows Credential")]
[AliasAttribute(__gc new array<String^>^ { ... })]
[ValidateNotNullOrEmptyAttribute]
property PSCredential^ WindowsCredential {
	PSCredential^ get ();
	void set (PSCredential^ value);
}
[<ParameterAttribute(Position = 0, Mandatory = false, HelpMessage = "Network Windows Credential")>]
[<AliasAttribute(new string[] { ... })>]
[<ValidateNotNullOrEmptyAttribute>]
member WindowsCredential : PSCredential with get, set

Property Value

Type: PSCredential

See Also

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