#151663 - 2005-11-17 12:20 PM
Remove Computer from NT Domain
|
ClientMaster
Fresh Scripter
Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
|
Hi, I need a script that will remove the current pc from a NT domain and put it into a workgroup.
Is there anything out there that will do this?
The OS is 2K.
|
|
Top
|
|
|
|
#151665 - 2005-11-18 12:41 AM
Re: Remove Computer from NT Domain
|
ClientMaster
Fresh Scripter
Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
|
I know that I need to use netdom, but I can`t seem to get the right version and the right command line.. I was hoping that maybe someone might be able to help..
|
|
Top
|
|
|
|
#151667 - 2005-11-18 01:08 AM
Re: Remove Computer from NT Domain
|
ClientMaster
Fresh Scripter
Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
|
Does NETDOM have to be run from the domain controller, or can it be run on the PC you are trying to remove from the domain?
|
|
Top
|
|
|
|
#151669 - 2005-11-18 01:27 AM
Re: Remove Computer from NT Domain
|
ClientMaster
Fresh Scripter
Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
|
Can it be on the computer I am trying to remove?
I tired to use the following command, but it didn`t work.
netdom remove /d:mydomain mywksta /ud:mydomain\admin /pd:password
|
|
Top
|
|
|
|
#151672 - 2005-11-18 03:08 AM
Re: Remove Computer from NT Domain
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11628
Loc: CA
|
Yes, should work fine. NETDOM5 5.2.3790.1830 5.2.3790.1830 (srv03_sp1_rtm.050324-1447)
Quote:
NETDOM REMOVE machine /Domain:domain [/UserD:user] [/PasswordD:[password | *]] [UserO:user] [/PasswordO:[password | *]] [/REBoot[:Time in seconds]] NETDOM REMOVE Removes a workstation or server from the domain. machine is the name of the computer to be removed /Domain Specifies the domain in which to remove the machine /UserD User account used to make the connection with the domain specified by the /Domain argument /PasswordD Password of the user account specified by /UserD. A * means to prompt for the password /UserO User account used to make the connection with the machine to be removed /PasswordO Password of the user account specified By /UserO. A * means to prompt for the password /REBoot Specifies that the machine should be shutdown and automatically rebooted after the Remove has completed. The number of seconds before automatic shutdown can also be provided. Default is 30 seconds
The latest NETDOM 5.2.3790.1830 tool can be found here Windows Server 2003 Service Pack 1 32-bit Support Tools
|
|
Top
|
|
|
|
#151673 - 2005-11-18 03:43 AM
Re: Remove Computer from NT Domain
|
ClientMaster
Fresh Scripter
Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
|
Thank you very much.
When I ran the command, I received a can`t find entry point error..
Any idea why this might appear?
|
|
Top
|
|
|
|
#151675 - 2005-11-18 09:58 AM
Re: Remove Computer from NT Domain
|
ClientMaster
Fresh Scripter
Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
|
I used the exact version and commands as the last post from NTDOC suggested.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1044 anonymous users online.
|
|
|