Logo
PREGNANCY
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Server

Active Directory Domain Services 2008 : Disable a Computer Object

3/20/2012 5:43:33 PM

Disable a Computer Object

Scenario/Problem: You need to prevent users on a particular computer from logging on to AD DS.


Solution: Disable a computer account by using the Windows interface or the command line.

Disable a Computer Object by Using the Windows Interface

To disable a computer object by using the Windows interface, perform the following steps:

1.
Log on to a domain controller or a member computer that has Windows Server 2008 RSAT installed.

2.
Click Start, click Administrative Tools, and then click Active Directory Users and Computers.

3.
In the details pane, right-click the computer object you want to disable and click Disable Account.

4.
On the confirmation screen to disable the computer account, shown in Figure 1, click Yes.

Figure 1. Disabling a computer object using the Windows interface.


Disable a Computer Object by Using the Command Line

To disable a computer object by using the command line, perform the following steps:

1.
Log on to a domain controller.

2.
Click Start, and click Command Prompt.

3.
In the Command Prompt window, type the following command and press Enter:

Dsmod computer "CN=Desktop1,CN=Computers,DC=WS08DOMAIN01,DC=LOCAL"
								-disabled yes

(where "CN=Desktop1,CN=Computers,DC=WS08DOMAIN01,DC=LOCAL" is the distinguished name of the computer that you want to disable).

4.
Verify that the results of the dsmod computer command entered above returns dsmod succeeded, as shown in Figure 2.

Figure 2. Disabling a computer object using the command line.

Other -----------------
- Windows Server 2008 Server Core : Starting the Command Interpreter (part 5)
- Windows Server 2008 Server Core : Starting the Command Interpreter (part 4)
- Windows Server 2008 Server Core : Starting the Command Interpreter (part 3) - Modifying AutoExec.NT & Defining Application Compatibility with the SetVer Utility
- Windows Server 2008 Server Core : Starting the Command Interpreter (part 2) - Modifying Config.NT
- Windows Server 2008 Server Core : Starting the Command Interpreter (part 1) - Using the CMD Switches
- Windows Server 2008 Server Core : Essential Registry Hacks - Modifying the Software Setup
- Sharepoint 2007 : Customizing a SharePoint Site - Create a Content Type
- Sharepoint 2007 : Modify the Top or Left Navigation Bar & Create a Site Column
- Microsoft Systems Management Server 2003 : Configuring Site Server Properties and Site Systems - Monitoring Status and Flow
- Microsoft Systems Management Server 2003 : Configuring Site Server Properties and Site Systems - The Site Configuration Process Flow
- Windows Server 2003 : Windows Security and Patch Management - Using Auditing and the Event Log
- Windows Server 2003 : Windows Security and Patch Management - Locking Down Windows
- Recovering from a Disaster in an Exchange Server 2007 Environment : Recovering from a Site Failure & Recovering from a Disk Failure
- Recovering from a Disaster in an Exchange Server 2007 Environment : Identifying the Extent of the Problem & Preparing for a More Easily Recoverable Environment
- Windows Server 2008 Server Core : Setting the Environment & Modifying the Hardware Setup
- Windows Server 2008 Server Core : Performing Console Configuration
- Windows Server 2008 : Using Basic ds Commands - Understanding Distinguished Names & Adding Objects with dsadd
- Windows Server 2008 : Manipulating IIS with appcmd
- Microsoft Lync Server 2010 Edge : Edge Server Administration (part 2)
- Microsoft Lync Server 2010 Edge : Edge Server Administration (part 1)
 
 
Most view of day
- Windows Phone 8 : Messaging - Composing a New Message (part 7) - Adding Emoticons and Clip Art
- Microsoft Visio 2010 : Linking External Data to Shapes (part 3) - Using the Database Wizard - Setting Up the Excel File as a Data Source
- Managing Windows 7 : Configuring a Pen or Touch Computer, Managing Pen Settings
- Microsoft Project 2010 : Creating a Budget for Your Project (part 2) - Adding Values to Budget Resources, Pairing Resources with Budgets
- Configuring Startup and Troubleshooting Startup Issues : Understanding the Startup Process (part 1) - Power-on Self Test Phase, Initial Startup Phase
- Sharepoint 2013 : SharePoint Designer 2013 (part 1) - New Features
- Windows Phone 8 : Designing for the Phone - Microsoft Expression Blend
- Specifying a Default Printer, Controlling Your Printing - Change the Default Printer, View the Queue, Stop the Presses
- Microsoft Systems Management Server 2003 : Custom SMS Administrator Consoles
- Developing with SharePoint 2010 (part 3) - Server Object Model
Top 10
- Sharepoint 2013 : Working with the CSOM (part 6) - Working with the JavaScript client object model - Creating, reading, updating, and deleting in the JavaScript client object model
- Sharepoint 2013 : Working with the CSOM (part 5) - Working with the JavaScript client object model - Handling errors
- Sharepoint 2013 : Working with the CSOM (part 4) - Working with the JavaScript client object model - Returning collections
- Sharepoint 2013 : Working with the CSOM (part 3) - Working with the managed client object model - Creating, reading, updating, and deleting
- Sharepoint 2013 : Working with the CSOM (part 2) - Working with the managed client object model - Handling errors
- Sharepoint 2013 : Working with the CSOM (part 1) - Understanding client object model fundamentals
- Windows Phone 8 : Configuring Mailbox Settings (part 5) - Configuring Automatic Replies
- Windows Phone 8 : Configuring Mailbox Settings (part 4) - Lightening the Display,Changing the Mailbox Sync Settings
- Windows Phone 8 : Configuring Mailbox Settings (part 3) - Message Signatures, Blind CCing Yourself
- Windows Phone 8 : Configuring Mailbox Settings (part 2) - Unlinking Mailboxes, Conversation View
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro