PowerShell Remote Password Reset
Here is a very simple PowerShell script to remotly reset local user passwords:
$data = import-csv C:\Scripts\ResetAdminPassword.csv
foreach ($row inĀ $data) {
$admin=[adsi](“WinNT://” + $row.Server + “/administrator, user”)
$admin.psbase.invoke(“SetPassword”, $row.Password)
$admin.psbase.CommitChanges()
}
The CSV file is build with as top row the values “Server,Password“

Recent Comments