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

PI Powershell

ConnectAFServer Properties

  • Last UpdatedDec 15, 2025
  • 2 minute read
ConnectAFServer Properties

The ConnectAFServer type exposes the following members.

Properties

  NameDescription
Public property
AccessToken

Access token to use when connecting to the AF Server

Public property
AFConnectionPreference

Defines the connection preference when connecting to an AF Server which is in an HA Collective. If not specified, PreferPrimary is the default.

Public property
AFServer

AFServer object representing the AF Server to connect to

Public property
ClientCredential

Client id and secret to get access token to use when connecting to the AF Server

Public property
PromptForAccessToken

Browser popup to authorize getting access token to use when connecting to the AF Server

Public property
WindowsCredential

Windows credential to use when connecting to the AF Server

See Also

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