Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows Server 2016-three ways for clients to withdraw from the domain

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Earlier, we mentioned the operation method of adding domain to the client. This chapter complements the operation process of domain client withdrawing domain, including graphical, netdom remove and Powershell methods. The details are as follows:

Graphical delamination method:

1. Win key, computer right-click property:

two。 The system interface selects "change Settings" in the computer name, domain, and workgroup settings bar:

3. In the system properties interface, select change:

4. In the change interface, select the workgroup in the box and type the workgroup information you want to join, and determine:

5. Tip "after leaving the domain, you need to know the password of the local administrator account to log on to the computer. Click OK to continue:

6. Join the workgroup successfully, restart the computer according to the prompts:

7. Workgroup client authentication:

7.1. The system properties interface determines that the computer information belongs to the workgroup WORKGROUP:

From the 7.2.Active Directory user and computer management console, select Computers to view the computer status as disabled:

There is no previous corresponding computer name and IP address information A record in the 7.3.DNS Manager console:

7.4. The local login account is the system administrator account:

Netdom Remove de-domain method:

a. Open a command prompt in an administrative capacity and enter the following undomain command:

Netdom remove% comptername% / d:azureyun.local / userd:azureyun.local\ administrator / passwordd:abc.123!

b. Restart the computer when prompted and view the computer information in the Active Directory user and in Computers on the computer:

c. Check that there is no A record information in DNS Manager:

d. View the current login account information:

Powershell de-domain method:

Remove-Computer removes the computer from the domain, and remove computer also disables the computer's domain account. You must provide explicit credentials to unjoin computers from their domain, even if they are the credentials of the current user. You must restart your computer for the changes to take effect. In addition, when you remove a computer from a domain, you must move it to a workgroup. Specify the workgroup using the WorkgroupName parameter.

Remove-Computer [- UnjoinDomainCredential] [- ComputerName] [- Confirm] [- Force] [- LocalCredential] [- PassThru] [- Restart] [- WhatIf] [- WorkgroupName] []

Remove-Computer [[- UnjoinDomainCredential]] [- Confirm] [- Force] [- PassThru] [- Restart] [- WhatIf] [- WorkgroupName] []

Example 1: remove the local computer from its domain

Remove-Computer-UnjoinDomaincredential azureyun\ admin-PassThru-Verbose-Restart

This command uses the UnjoinDomainCredential parameter to provide the credentials of the domain administrator. It uses the PassThru parameter and the Verbose common parameter to display information about the success or failure of the command, and uses the Restart parameter to restart the computer, which is necessary to complete the delete operation.

Because the command does not specify a workgroup name, the local computer is moved to the WORKGROUP workgroup when it is removed from its domain.

Example 2: move multiple computers to an older workgroup

Remove-Computer-ComputerName (Get-Content OldServers.txt)-LocalCredential azureyun\ admin-UnJoinDomainCredential azureyun\ admin-WorkgroupName "Legacy"-Force-Restart

This command removes all computers listed in the OldServers.txt file from its domain and includes them in the legacy workgroup.

This command uses the LocalCredential parameter to provide the credentials of the user who has the right to connect to the remote computer, as well as the UnjoinDomainCredential parameter to provide the credentials of the user who has the right to remove the computer from its domain. It uses the Force parameter to disable confirmation prompts for each computer and uses the Restart parameter to restart each computer after it has been removed from its domain.

Example 3: forcibly remove a computer from a workgroup

Remove-Computer-ComputerName "scserver", "localhost"-UnjoinDomainCredential azureyun\ admin-WorkgroupName "Local"-Restart-Force

This command removes scserver remote and local computers from their domain and adds them to the local workgroup. It uses the Force parameter to disable confirmation prompts for each computer, and the Restart parameter to restart the computer for the changes to take effect.

Or we can delete the added domain computer information directly by manually or on the command line in the domain control background:

The Remove-adcomputer command format is as follows: Remove-adcomputer-identity computername

Welcome to the official account of Wechat: Xiao Wen study Society.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report