I try to list all the users with their PasswordLastSet with this
`get-aduser -filter * -Server FQDN -SearchBase "OU=Test,OU=Test1,DC=domain,DC=local" -properties PasswordLastSet |sort name | ft name, PasswordLastSet`
problem is the PasswordLastSet is almost always blank.
I notice looking around a lot of people do this searches with the DirectorySearcher Class.
Anybody can shed some light on the matter?
I found the trick, I was running the PowerShell with the wrong set of credential.
Now it works.
Sorry for the useless post. I wanted to delete it but I can't find a way.
Indeed I encounter the same problem in Lync 2015, if I run this command from the shell
`Enable-CsUser -Identity 'domain.local\ciccio.p' -RegistrarPool "registar.domain.local" -SipAddressType SamAccountName -SipDomain domain.com
I get an error for insufficient rights, if I enable the same user, from the same server, with the same credential it works fine.
You must be logged in to reply to this topic.