1
Referral links
2
Configuration steps
2.1
Install PCNS on DC (perform only 1 time)
Download Microsoft Password Change Notification Service from:
On the DC, extract the downloaded file and run the following
command via command line console (the setup could not run directly by click on
the msi file)
Unblock this msi file
msiexec /I “Password Change
Notification Service.msi” SCHEMAONLY=TRUE
A dialog will display as below, then click Next to install
the service
Or you can run with powershell
- Powershell unattended script :
$MSIPCNSFile = "Password Change Notification Service.msi"
Start-Process $MSIPCNSFile "SCHEMAONLY=TRUE /q /L*v C:\pcnslog.txt" -Wait
A restart DC is need
- In my case I need to add a new Install with
command to complete PCNS
msiexec /I “Password Change
Notification Service.msi”
- Powershell unattended script :
$MSIPCNSFile = "Password Change Notification Service.msi"
Start-Process $MSIPCNSFile "/q /L*v C:\pcnslog.txt" -Wait
A restart DC is need
Unblock this msi file
Or you can run with powershell
- Powershell unattended script :
$MSIPCNSFile = "Password Change Notification Service.msi"
Start-Process $MSIPCNSFile "SCHEMAONLY=TRUE /q /L*v C:\pcnslog.txt" -Wait
- Powershell unattended script :
$MSIPCNSFile = "Password Change Notification Service.msi"
Start-Process $MSIPCNSFile "/q /L*v C:\pcnslog.txt" -Wait
Validate
ServicePrincipalName between Synchronization Service Account and PCNS
Configuration Data
- On the Source Domain Controller, Open an Administrative Command-Prompt by right clicking on the command prompt and selecting Run as Administrator.
- Change directory to %programfiles%\Microsoft Password
Change Notification
cd c:\program files\Microsoft Password Change Notification
- In the command-prompt, type the following and then
press the ENTER keypcnscfg list > pcnscfg.txt
- In the command-prompt, type the following and press the
ENTER key
setspn –L <DOMAIN NAME>\<SYNCHRONIZATION SERVICE ACCOUNT> >
spn.txt
- Review both text files to ensure that the
ServicePrincipalName (SPN) set on the Domain Synchronization Service
Account matches exactly to the Service Principal Name line in the PCNS
Configuration information.
If they do not match, you may need to rebuild the
information, or modify the information to ensure that the SPNs match.
Note: in some case you will receive Error
Password Change Notification Service
received an RPC exception attempting to deliver a notification.
The password change notification
target could not be contacted.
User Action:
The target server may not be running.
Verify that the target server is running.
Additional Details:
PCNS Status is 1722 - The RPC server
is unavailable.
You need rejoin domain(verify delete
DNS as well)
2.2
Configure SPN
Run the following command on DC:
setspn –a PCNSCLIENTNAME/<fqdn of your FIM server>
<domain>\<FIM service account>
Example:
setspn -a PCSNSCLIENTNAME/<fqdnofyourFIM server> <your Service account>
2.3
Add PCNS client
Run the following command on DC:
pcnscfg.exe addtarget /N:PCNSCLIENTNAME
/A:<fqdn of your FIM server> /S:PCSNSCLIENTNAME/<fqdn of your FIM
server> /fi:"”<name of the PCNS Active Directory Group> /f:3
|
Example:
Pcnscfg.exe addtarget /n:
miisdemo /a: fab-dev-01.usergroup.fabrikam.com
/s: PCNSCLNT/fab-dev-01.usergroup.fabrikam.com
/fi:“ Domain Users” /f:3
To verify that PCNS has been
configured properly for the target, run the command “pcnscfg list”
Now we have finished the configuration for change password
notification service, every time a password is change from AD, the FIM server
will get notified and we need to handle that event by configuring the MA at FIM
A restart DC is need