示例#1
0
 // ChangePassword()
 // desc: Method calls PowerShellComponent command ChangePassword, changes user password with password given
 // params: Dictionary<string, string> attributes - Dictionary object, contains attributes to change user password
 // method: public
 // return: bool
 public static bool ChangePassword(string identity, string password)
 {
     bool Results;
     PowerShellComponent.ManagementCommands objManange = new PowerShellComponent.ManagementCommands();
     Results                                           = objManange.ChangePassword(identity, password);
     objManange                                        = null;
     return Results;
 }