The NetLogon service on the computer uses this password to establish the secure channel with a domain controller. The computer’s password is stored locally on the machine in the form of a Local Security Authority (LSA) secret and also in Active Directory with the computer’s account. set objComputer = GetObject(“LDAP:// “) objComputer.SetPassword “ ”Įvery member computer in an Active Directory domain establishes a secure channel with a domain controller. You’ll need to rejoin the computer after doing this. ‘ This code resets an existing computer object’s password to the ‘ initial default. > netdom reset /Domain /UserO /PasswordO * > dsmod computer " " -resetĪnother option is to use the netdom.exe command, which can reset the computer so that you do not need to rejoin it to the domain. You will need to rejoin the computer to the domain after doing this. You can use the dsmod.exe utility to reset a computer’s password. In the, right-click on the computer and select Reset Account.Type the name of the computer and click Find Now.
In the left pane, right-click on the domain and select Find.If you need to change domains, right-click on Active Directory Users and Computers in the left pane, select Connect to Domain, enter the domain name, and click OK.Open the Active Directory Users and Computers snap-in.
How to test windows server 2008 security how to#
The following solutions describe how to reset a computer account. The following command resets the secure channel for a computer: > nltest /server: /sc_reset: The following command tests the secure channel for a computer: > nltest /server: /sc_query: