Delete SPNs for the PI AF Application Service
- Last UpdatedAug 04, 2025
- 1 minute read
- PI System
- PI Server 2018
- PI Server
You do not need to delete SPNs related to the PI AF Application Service unless you have changed the account under which the service runs or you have uninstalled the service and the SPNs have not been deleted. For information on determining if SPNs exist for the PI AF Application Service, see View existing SPNs for the PI AF Application Service.
Depending on whether the service is running under the NetworkService account or a domain account, you must use different setspn options to delete the SPNs for the machine or the domain account.
Note: You must run the setspn command from a command prompt.
-
To delete the two SPNs registered for a PI AF Application Service that runs under the NetworkService account, enter these two commands in sequence:
setspn -d AFServer/machine_FQDN machine_name
setspn -d AFServer/machine_name machine_namewhere:
-
machine_FQDN is the fully qualified domain name of the machine on which the PI AF Application Service runs
-
machine_name is the machine on which the PI AF Application Service runs
-
-
To delete the two SPNs registered for a PI AF Application Service that runs under a domain account, enter these two commands in sequence:
setspn -d AFServer/machine_FQDN domain\account_name
setspn -d AFServer/machine_name domain\account_namewhere:
-
machine_FQDN is the fully qualified domain name of the machine on which the PI AF Application Service runs
-
machine_name is the machine on which the PI AF Application Service runs
-
domain\account_name is the domain account under which the PI AF Application Service runs
-