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

Having troubles with this powershell script:

$
0
0

Import-Module ActiveDirectory

Get-ADUser -Filter * -SearchScope Subtree -SearchBase "OU=Users,DC=Domain,DC=Local" 
| Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "Pa$$word" -Force)

Start-Sleep -s 30  

Any suggestions?

I am running SBS2008 and the person uses a default password for all users 


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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