• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

Reset password with Login script for the Administrator

Hi,

I want a script that can be used as a logon script to reset all the local machines password in the whole domain.

Regards
Sharath
0
bsharath
Asked:
bsharath
  • 2
1 Solution
 
Farhan KaziSystems EngineerCommented:
@ECHO OFF
NET USER Administrator NewPasswordHere
EXIT /B /0
0
 
bsharathAuthor Commented:
farhan is this for the local machine password....Any way to get a rport out of this pleae...Then i can find which have been changed and which are left...
0
 
Farhan KaziSystems EngineerCommented:
@ECHO OFF
ECHO %COMPUTERNAME% >>\\SERVER\SHARE\PwdChangeStatus.txt
NET USER Administrator NewPasswordHere >>\\SERVER\SHARE\PwdChangeStatus.txt
ECHO. >>\\SERVER\SHARE\PwdChangeStatus.txt
EXIT /B /0

::Note:  \\SERVER\SHARE   <-- this share folder must have Full Access to Everyone
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now