|
How to verify a computer account? |
|
Subject: How to verify a computer account?
Author: authen
In response to: How to assign or reset computer account's password?
Posted on: 05/06/2014 11:10:27 PM
You can try to bind to Active Directory by using the computer account as:
Name: <NTDomain>\<account>$ Password: <password>
or
Name: CN=<account>,CN=Computers,CN=<domain> Password: <password>
If the binding is successful, your computer account is good.
>
> On 05/06/2014 10:54:57 PM authen wrote:
For AD2008 or later
Click on "Start" and then "Run.." Type "adsiedit.msc" to open ADSI console Browse to your computer account and right click on it Choose "Reset Password..." Follow the wizard to finish.
For AD2003 or older
For AD2003 or older, there is no user interface to reset password for computer account. You have to manually run the script as below:
C:\>cscript SetComputerPass.vbs CN=<servicename>,CN=Computers,DC=<domain>
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Password:<password>
C:\>
For your reference, here is the code of SetComputerPass.vbs
Option Explicit
Dim strDn, objPassword, strPassword, objComputer
If WScript.arguments.count <> 1 Then
WScript.Echo "Usage: SetComputerPass.vbs <ComputerDN>"
WScript.Quit
End If
strDn = WScript.arguments.item(0)
Set objPassword = CreateObject("ScriptPW.Password")
WScript.StdOut.Write "Password:"
strPassword = objPassword.GetPassword()
Set objComputer = GetObject("LDAP://" & strDn)
objComputer.SetPassword strPassword
WScript.Quit
References:
|
|
|
|