Cambiar la contraseña de administrador local de una computadora aleatoria en el directorio activo

I applied these instructions aquí to change local admin passwords in my active directory. It works fine but under only condition, if I run the wmi script on my domain controller.

How can I change all local administrator passwords from a random computer in my active directory? Is it possible to specify some credentials of my domain controller which authenticate the process.

Gracias de antemano.

Edit: I tried to add username and password constructor of DirectoryEntry class but now i'm getting "The specified local group does not exists." exception.

preguntado el 12 de junio de 12 a las 14:06

I don't believe what you want to do is possible. -

When I logged in my computer with domain admin account, the script worked fine again. But i couldn't make that logging in with domain admin account through script. -

0 Respuestas

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.