|
On Error Resume Next
Set objNetwork = CreateObject("Wscript.Network") strComputer = objNetwork.ComputerName
strPassword = ""
Set colAccounts = GetObject("WinNT://" & strComputer) colAccounts.Filter = Array("user")
For Each objUser In colAccounts objUser.ChangePassword strPassword, strPassword If Err = 0 or Err = -2147023569 Then Wscript.Echo objUser.Name & " is using a blank password." End If Err.Clear Next
Proposer un script
|
Notre avis :

Votre avis :

Réactions : 0
Votants : 10
Visites : 7108
|