AD’de Toplu Parola Resetleme
Merhaba, Active Directory’de toplu olarak parola sıfırlamak için aşağıdaki ps kodunu kullanabilirsiniz.
# Load user list
$ListOfUsers = Get-Content C:\kullanicilistesi.csv
foreach ($user in $ListOfUsers) {
#Generate a 12-character random password
$Password = -join ((33..126) | Get-Random -Count 15 | ForEach-Object { [char]$_ })
#Convert the password to secure string
$Pass = ConvertTo-SecureString $Password -AsPlainText -Force
#Reset the account password
Set-ADAccountPassword $user -NewPassword $Pass -Reset
#Force user to change password at next logon
#Set-ADUser -Identity $user -ChangePasswordAtLogon $true
#Display userid and password values
Write-Host $user, $Password
}
Post Views: 147
Son Yazılar
Arşivler
Kategoriler
Son yorumlar
- RDS “We can’t sign into your account”, Temp Profil Sorunu ve Çözümü için Mehmet Sait YILMAZ
- RDS “We can’t sign into your account”, Temp Profil Sorunu ve Çözümü için Can Karapınar