CMD - Finding the password of admin account using another admin account in windows 7 - windows

I have two admin accounts, one of which i forgot the password. I have another admin account but i don't want to reset the password but reveal or see the old password using CMD. I have been searching for this since a long time but had no luck with it! Hoping I would get the answer this time :)
I know to reset password using CMD prompt: net user < user > < password >
But my old emails have the same password as this account. So i want to Retreive my old password rather than reseting it!

Related

How to reset admin password from guest account

Son of my collegue accidently created new user account in windows 8.1 and set it as admin. He also set password which of course doesn't know now. Is there any chance how to reset this password from guest account? Any software from third part or live linux? Thank you for helping
I tried some commands in cmd, but everything finished of course on admin permissions
visit C:/home windows/system32.
replica cmd.exe and paste it on laptop.
Rename cmd.exe to sethc.exe.
Replica the brand new sethc.exe to gadget 32,while home windows asks for overwriting the report,then click on sure.
Now log off from your guest account and on the user pick out window,press shift key 5 times.
6)In preference to Sticky Key affirmation conversation,command activate with complete administrator privileges will open.
Now kind “ net user ADMINISTRATOR “come 2 learn” where “come 2 learn” can be any password you want and press input.
You’ll see “ The Command finished successfully” after which go out the command set off and login into administrator together with your new password.
Bravo !! Now you have got hacked admin thru guest account.

Blanked a Win10 password but cannot login

Okay, I think I did something stupid here. I had forgotten my Win10 user account (steph) Password. This is an admin account.
1) Using a Linux-type usb-boot utility, I've been able to blank the password. Upon reboot, I entered a blank password but I still cannot login, it seems that my account physically on the computer now doesn't match my Hotmail credentials -or something- and I'm still locked out.
2) Using the same Linux usb boot utility, I've unlocked the 'Administrator' account. Now I can login using the 'Administrator' account but from the Control Panel, I cannot change my own user account (steph) password, the option for it is just not there (perhaps it's because the password is believed to be blank?)
3) Later I've been able to find the piece of paper on which I wrote my original password for my own account.
Q: Is there's a way to set my original password back to what it was in order to unlock my account?
Thanks.
Many Linux usb boot utilities can work with local account only. I suggest you set up a new Microsoft account on your PC, and point it to your old profile directory. Then remove your original Microsoft account from Control Panel.

CFEXECUTE assigning it to run with administrator rights

I am trying to change a password with active directory using cfexecute.
The only code on my page is this (username and the new password are filled in):
<cfexecute
name="c:\windows\system32\cmd.exe"
arguments="NET USER username password /domain"
outputfile="C:\Users\administrator\Desktop\test.txt"
timeout="90">
</cfexecute>
When I tried running this code through dreamweaver on my pc the tab in my browser just kept spinning even after 5 min... I closed the tab went to the server logged in and the text.txt was there empty. But I am unable to delete it because it says coldfusion.exe is using it???? Also it did not change the users password.
So then I opened up the command line on my pc and ran NET USER username password /domain it gave me a System error 5 has occured. Access is denied..
So then I went on to the server logged in as an administrator ran NET USER username password /domain and it worked.
How do I tell cfexecute to run as that administrator when it runs so that it works properly?
I looked up the docs of cfexecute and it is not like cfldap where you can choose a username and password.
Any help with this would be greatly appreciated!
Edit
Also checked log files in admin and it stated this:
Error occurred: coldfusion.tagext.lang.ExecuteTag$TimeoutException: Timeout period expired without completion of c:\windows\system32\cmd.exe
(It cant run that simple command within a 90 second timeout? But runs instantly when I run it in the command line?) Is there something wrong with using cfexecute?
EDIT IS IT POSSIBLE?
To Add a user it always runs as to change the password like so?:
"/c net user /user:domain\Administrator <admin-pwd> username password /domain"
ColdFusion is only able to access the domain and user account that is used by the ColdFusion service.
If you want to authenticate a username/domain against local system or Windows domain using any version of ColdFusion, consider using the CFX_EXEC tag.
http://adiabata.com/cfx_exec.cfm
<CFX_EXEC
CMD="NET USER username password /domain"
USER="Administrator"
PWD="pass"
DOMAIN="domain"
FILE="C:\Users\administrator\Desktop\test.txt">

Active Directory how to simulate a user login in and changin his password

Short story :
Knowing the temporary password of a user, how to simulate a user login and change it's password without actually open a session when the option user must change password at next logon is enabled ?
Long story:
I'm in a helpdesk and have access to an app that allow me to generate a new password for a AD user account. When the password is generated, the option user must change password is also activated. Sometimes the user is outside the office so he ask me to change the password for him. I'm able to switch user on my workstation, open a session with the user's temp password then change the pass.
What I'd like is to make this password change from my own session.
What I have tried
Run as: runas /user:domain cmd.exe
-> error 1907 The user's password must be changed before logging on the first time.
net user net user username newpassword /dom
-> error 5 access denied
start-process start-process -credential domain\username powershell.exe
-> invalidOperationException The user's password must be changed before logging on the first time.
Actually this is really easy with the active directory module :
Set-ADAccountPassword username
will ask for the old and new password. That's all

How to check if a local user account still have the same password

I have a PowerShell script which does the following on Windows 7 computers:
Get a random password from a secure server-side application
reset the password of a specific local user account using this password value
As a next step, I want to periodically check if the password saved on the server is still valid. For now, I am using ValidateCredentials from System.DirectoryServices.AccountManagement.PrincipalContext (see Powershell To Check Local Admin Credentials) but it involves to unencrypt the password and send it back to the computer just for this purpose.
Do you see any better way to check if password is still valid avoiding to use clear text password ? Is it possible to compare some hash, or anything else ?
Regards.
You can check the attribute PasswordAge and do a little math to see if the last time the password was changed was the time you set the password.

Resources