Using Netdom in a batch file to reset computer accounts, can someone lend me a hand?
Resetting computer accounts in Windows 2000 and Windows XP
http://support.microsoft.com/kb/216393/en-us
Netdom.exe
For each member, there is a discrete communication channel (the security channel) with a domain controller. The security channel is used by the Netlogon service on the member and on the domain controller to communicate. Netdom makes it possible to reset the security channel of the member. You can reset the member security channel by using the following command:
netdom reset 'machinename' /domain:'domainname
where 'machinename' = the local computer name and 'domainname' = the domain where the computer/machine account is stored.
Suppose you have a domain member named DOMAINMEMBER in a domain called MYDOMAIN. You can reset the member security channel by using the following command:
netdom reset domainmember /domain:mydomain
You can run this command on the member DOMAINMEMBER or on any other member or domain controller of the domain, provided that you are logged on with an account that has administrator access to DOMAINMEMBER.
This is what I found on the microsoft database, now I just need to implement that into a batch file that will run on the machine to reset the password.
I was thinking to use a runas command to get admin rights on the machine, however im not sure how to implement this.
My Admin is using this VB script, but its not working.
I just want to make it simple and easy i don think we need all this script just to reset the secure channel password on the machine before the 30 day reset.
Can anyone give me a hand, i will appreciate any input you guys have?
Resetting computer accounts in Windows 2000 and Windows XP
http://support.microsoft.com/kb/216393/en-us
Netdom.exe
For each member, there is a discrete communication channel (the security channel) with a domain controller. The security channel is used by the Netlogon service on the member and on the domain controller to communicate. Netdom makes it possible to reset the security channel of the member. You can reset the member security channel by using the following command:
netdom reset 'machinename' /domain:'domainname
where 'machinename' = the local computer name and 'domainname' = the domain where the computer/machine account is stored.
Suppose you have a domain member named DOMAINMEMBER in a domain called MYDOMAIN. You can reset the member security channel by using the following command:
netdom reset domainmember /domain:mydomain
You can run this command on the member DOMAINMEMBER or on any other member or domain controller of the domain, provided that you are logged on with an account that has administrator access to DOMAINMEMBER.
This is what I found on the microsoft database, now I just need to implement that into a batch file that will run on the machine to reset the password.
I was thinking to use a runas command to get admin rights on the machine, however im not sure how to implement this.
My Admin is using this VB script, but its not working.
I just want to make it simple and easy i don think we need all this script just to reset the secure channel password on the machine before the 30 day reset.
Can anyone give me a hand, i will appreciate any input you guys have?