How to reset local admin user password in


dear members,

want reset local admin account(not administrator built-in), let have user adminlocal , member in administrator group. question, how reset user via gpo in domain, because have more 5000 workstation in environment. , how generate summary of workstation password reset.

i've tried link,

http://community.spiceworks.com/how_to/show/1966-how-to-change-local-user-or-admin-passwords-on-remote-computers

using pstools sysinternal microsoft, while execute 1 pc on domain sample using script, showing access denied

in forum can me resolve problem?.


dear,

you can use powershell this.

i've found script in script center can this.

http://gallery.technet.microsoft.com/scriptcenter/66a5b38f-cdf1-4126-aa0c-be65e16dd650/view/discussions#content

set-password -computer 'server' -user 'administratorlocal' 

you can create loop in powershell check servers you've posted in .txt file example.


$strcomputers = get-content c:\servers.txt foreach ($strcomputer in $strcomputers)  { $admin=[adsi]("winnt://" + $strcomputer + "/administratorlocal, user") $admin.psbase.invoke("setpassword", "whatever1")  }





Windows Server  >  Directory Services



Comments

Popular posts from this blog

Global Catalog ?

mailing list

Global Catalog