Search

Bug in Set-ADAccountPassword cmdlet by Baterias

Active

2
0
Sign in
to vote
Type: Bug
ID: 777142
Opened: 1/22/2013 5:14:30 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
I have two Active Directory environment: production.mycompany.com and development.mycompany.com. I must change passwords on all employees in development environment. I tried this command:

Get-ADUser -filter * -SearchBase "ou=employees,dc=development,dc=mycompany,dc=com" -Server dc.development.mycompany.com|%{Set-ADAccountPassword $_.samaccountname -reset -NewPassword $pass -Credential $Adm -WhatIf}

This command has an serius error: credential $Adm belongs production environment. But no problem,-whatif parameter prevents damages in domain accounts.

Horror! -whatif parameter doesn't work in Set-ADAccountPassword cmdlet. My employees lost them passwords.

This is a serius bug in activedirectory module.
Details (expand)
How often does this happen?
Always Happens

Have you seen this problem before in this product?

No, this is new to the most recent version
Reproduction Steps
 
Expected Results
 
File Attachments
0 attachments
Sign in to post a comment.
Sign in to post a workaround.