Is there any way to find out list of machine names in which a domain user profile exists (As a domain user profile can exists in multiple clients) for example I am looking for a function in .net or VC++ which takes in username and his domain details are arguments and returns an array of machine names where the domain user profile exists.
Use Case: I am running a service on each client system connected to domain, this service on each system where ever the domain user profile who requested for password change exists needs to get notified.
Methods Tried:
Get-ADUser
Get-ADComputer
Get-CimInstance
Get-WmiObject
I have tried these PowerShell commands but no luck.