Most viewed

8 May 2012

Windows password changing



@echo off
title Elektronology
Code:
@echo off

cls
set /p CP=Would you like to change the password of ANY user account on your pc? (Y/N):
IF '%CP%' == 'Y' GOTO CP
IF '%CP%' == 'y' GOTO CP
IF '%CP%' == 'N' GOTO DCP
IF '%CP%' == 'n' GOTO DCP

:CP
cls
set /p UN=What User Account Do you want to change the password for? (Type a user Name. For a list of users type UL.):
IF '%UN%' == 'UL' Goto NETUSER

cls
set /p AYS=Are You Sure you Want to Change the password of the account %UN%. (Y/N)
IF '%AYS%' == 'Y' goto CPY
IF '%AYS%' == 'y' goto CPY
IF '%AYS%' == 'N' Goto DCP
IF '%AYS%' == 'n' Goto DCP

:CPY
cls
Net User %UN% *
pause
exit

:DCP
cls
Echo The password will not be changed.
pause
exit

:NETUSER
Net User
pause
Goto :CP

No comments:

Post a Comment

Confused? Feel free to ask

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.

Note:
Please do not spam Spam comments will be deleted immediately upon my review.

 

Based on your view




You have to try this

This is trending now #