重置AD用户密码
$cc = import-csv D:\Powershell\Tauba.csv foreach ($c in $cc) { $c.username $pwd = $c.password get-aduser $c.username | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "$pwd" -Force) }
$cc = import-csv D:\Powershell\Tauba.csv foreach ($c in $cc) { $c.username $pwd = $c.password get-aduser $c.username | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "$pwd" -Force) }