Run the PI AF Application Service under a domain account
- Last UpdatedOct 02, 2024
- 2 minute read
- PI System
- PI Server 2024 R2
- PI Server
If you are upgrading older versions of PI AF, you may need to remove the privileges for the NetworkService account on the SQL server, as described in Remove NetworkService account access to the PI AF SQL Server database.
For security reasons, we recommend that you change the PI AF Application Service to run under a domain account when the PI AF Application Service and PI AF SQL Server database are running on different machines. This provides you with the most secure method for protecting your PI AF and SQL servers.
-
Identify the domain account that you want to use for the PI AF Application Service.
-
Add a domain user to AFServers local user group.
The PI AF Application Service gets the required access to the PI AF SQL Server database through this local group on the SQL Server database computer.
-
Open the Services administrative tool on the PI AF server computer.
-
Right-click the PI AF Application Service and select Properties.
-
Click the Log On tab and change the account to a domain account, using the format, or click the Browse button to search for and select the domain account to use.
-
Enter the account's Password twice, and click OK.
-
Right-click the PI AF Application Service and select Restart.
A message appears indicating the service is being stopped, and then started. The service is now running under the new account.
-
For upgrades, you may need to remove the previous account’s access to the PIFD database, if it no longer requires access. If the previous account that had access was NetworkService, it can be removed, as described in Remove NetworkService account access to the PI AF SQL Server database.
-
Reconfigure the properties on the PI AF server to reference the new PI AF Application Service account:
-
In PI System Explorer, select File > Connections.
-
Right-click the PI AF server in the list and click Disconnect, if it is available.
-
Right-click the PI AF server in the list and click Properties.
-
For UPN authentication, type the name of the account under which the PI AF Application Service runs. For example: . For SPN authentication, which is the preferred option for Kerberos authentication, leave the account field blank.
-
Click Connect.
If PI System Explorer cannot make connection to the PI AF server, see Cannot connect to PI AF server.
-
Click OK.
-
-
Click Close.