Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Unable to change password in AD

$
0
0

Hello,

I am trying to change the password for an existing user in AD through the script below. However, I am getting an error "Server Unwilling to process request".

The script is running on a Windows 2003 domain controller. What am I doing wrong?

$userAD = [ADSI]"LDAP://localhost:389/CN=Test User,cn=Users,DC=iamdev,dc=local"
$userAd.psbase.invoke("SetPassword","passwd123")

thanks


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>