Tuesday, April 9, 2019

Computer Password Change


 Computer Password Change


At times it is noticed that a member server loses connectivity with Domain Controller and it doesn't allow logging in with Domain Account. 

Apart from Rejoining the server to Domain, There is below way you can try. 

Logon to AD and Reset Computer Account.

Come back to your Server & execute command from Admin CMD & once successfully done try logging in with your Domain Account. 


Just change your computer password using netdom.exe!

netdom.exe resetpwd /s:<server> /ud:<user> /pd:*

<server> = a domain controller in the joined domain

<user> = DOMAIN\User format with rights to change the computer password

Examples
Example 1: Reset the password for the local computer

PowerShell

Copy
PS C:\> Reset-ComputerMachinePassword
This command resets the computer password for the local computer. The command runs with the credentials of the current user.

Example 2: Reset the password for the local computer by using a specified domain controller

PowerShell

Copy
PS C:\> Reset-ComputerMachinePassword -Server "DC01" -Credential Domain01\Admin01

This command resets the computer password of the local computer by using the DC01 domain controller. It uses the Credential parameter to specify a user account that has permission to reset a computer password in the domain.

Example 3: Reset the password on a remote computer

PowerShell

Copy
PS C:\> Invoke-Command -ComputerName "Server01" -ScriptBlock {Reset-ComputerMachinePassword}

No comments:

Post a Comment

Windows Administrator Level 1 Interview Question & Answers

 Windows Administrator Level 1 Interview Question & Answers What is an active directory?  An Active Directory (AD) is a directory ...