Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Allow users to change their PW

$
0
0

Hello,

I'd like to create a PS script that will allow our users to change their passwords.  We don't want to use the 'change pw on next logon' because of other requirements that are enforced.  We'd also like to deploy the script using SCCM.

I have the script created and it works on laptops that have RSAT installed (all laptops run Windows 7 in a 2008 R2 domain).  Besides installing RSAT on all laptops is there a way for a script such as this to run?

The gist of the script runs:

Set-ADAccountPassword -Identity $user -Reset -NewPassword (ConvertTo-SecureString -AsPlainText $pw -Force) -Credential $cred -server 'xxx.xxx.xxx'

The $cred points to an account with domain admin rights plus SCCM pushes the program (I converted the .ps1 to .exe using PowerShell Studio) with admin rights.

Any help would be most greatful.  Also, we'd rather not use a 3rd party product.

Kurt


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images