Skip the navigation

Hands on with Windows Server 2008 r2: Admin tools

New PowerShell cmdlets let you manage Active Directory quickly and efficiently

By Jonathan Hassell
May 5, 2009 12:00 PM ET

Computerworld - Development on Windows Server 2008 R2 proceeds apace. And in addition to DirectAccess and other features I've already written about, with today's announcement of the newest Windows Server 2008 release candidate there are numerous other important improvements in administrative usability in Windows Server 2008 R2.

I'll take a look at several in this piece, including:

  • New PowerShell cmdlets that let you manage Active Directory quickly and efficiently

  • A new AD administrative console that exposes the power of those cmdlets to more graphically oriented users

  • How to deploy BranchCache, a WAN caching technology, in your Windows 7/Windows Server 2008 environment

Managing Active Directory through PowerShell

PowerShell now comes with an Active Directory Domain Services (AD DS) module that introduces over 75 Active Directory cmdlets. From a script or the new Graphical PowerShell user interface, you can perform routine administrative tasks on your Active Directory forests, domains, trees and so on.

Best of all, the tab-completion function (where Windows thinks about what you're typing and suggests completions for your current context when you hit the Tab key) works as you'd expect and is a useful feature.

Active Directory module for PowerShell
Windows Server 2008 R2 now includes an Active Directory module for PowerShell.
Click to view larger image

Here are some common commands:

  • To load the AD DS module, use Add-Module ActiveDirectory, then Get-Module

  • To get information about a domain, use Get-ADDomain domain_name

  • To display information about domain controllers in a specific domain, use Get-ADDomainController -Discover

  • To browse a specific domain, with results neatly formed in a table, "change directory" into AD via Cd AD: and then use the following series of commands:

  • PWD



    DIR | Format-Table -Auto


    CD "DC=domain_name,DC=TLD"


    DIR | ft -a


  • To create a new organizational unit within a domain, use the following command:
  • New-ADOrganizationalUnit ­Name "International" ­Path "DC=domain_name,DC=TLD"
  • To delete the organizational unit you created in the previous step, use the following series of commands, one to allow the organizational unit to be deleted and the other to actually perform the removal:
  • Set­ADorganizationalUnit International ­ProtectedFromAccidentalDeletion $False Remove­ADOrganizationalUnit International Unit


Additional Resources
Forrester Consulting - Optimizing Users and Applications in a Mobile World
WHITE PAPER
Solving application issues over the WAN requires careful consideration. Based on their independent research, Forrester Consulting offers recommendations on how to tackle application performance issues, insufficient bandwidth and the inability to quickly restore users in a disaster.

Read now.

Security KnowledgeVault
WHITE PAPER
Security is not an option. This KnowledgeVault Series offers professional advice how to be proactive in the fight against cybercrimes and multi-layered security threats; how to adopt a holistic approach to protecting and managing data; and how to hire a qualified security assessor. Make security your Number 1 priority.

Read now.

Cut Communications Costs Once and for All
WHITE PAPER
New IP-based communications systems are being deployed by small and midsized businesses at a rapid rate. Learn how these organizations are enabling faster responsiveness, creating better customer experiences, speeding office or mobile interactions, and dramatically reducing existing communications costs.

Read now.

NOSes and Server Software White Papers
Overcome Top 7 Admin Challenges of Active Directory
As Active Directory's role in the enterprise has drastically increased, so has the need to secure the data. Gain insight on creating repeatable,...
Insiders Can Ruin Your Company. Take Action.
Did you know that 80 percent of threats to an organization come from the inside? The threat from insiders is often overlooked in...
Top Solutions and Tools to Prevent Devastating Malware
Custom malware frequently goes undetected. According to Forrester Research, the best way to reduce risk of breach is to deploy file integrity monitoring...
Streamline Compliance and Increase ROI
Streamline, simplify, and automate compliance related activities; especially those that impact multiple business units. This white paper from NetIQ, outlines solutions that will...
X-Ray of the PCI Process-4 Proactive Steps
This white paper from Forrester Research Inc., helps break PCI into understandable components. Security and risk professionals will gain knowledge and insight into...
All NOSes and Server Software White Papers
NOSes and Server Software Webcasts
Optimizing Networks for the Cloud
Join guest speaker, Rohit Mehra, IDC Director of Enterprise Communications Infrastructure, to explore current trends, discuss best practices for optimizing Data Center and...
Apps QuickStart Series Part 2: Designing and Deploying SQL Server on VMware vSphere
Download this webcast to learn about the design considerations for virtualizing SQL workloads, performance and scalability information and high-availability options, as well as...
Apps QuickStart Series Part 1: Designing and Deploying Exchange 2010 on VMware vSphere
Download this webcast to learn the virtual hardware design considerations for Exchange 2010, deployment using the building block approach, options for high-availability and...
Customer Spotlight: How IPC The Hospitalist Company Implemented Oracle on VMware
Have you been looking to hear about customer's experiences with the new VMware vCenter Site Recovery Manager product? View this webcast to learn...
Virtualize Business-Critical Applications with Confidence
Virtualizing business-critical applications has become a key focus for organizations as they move along their virtualization journey. With the launch of VMware vSphere®...
All NOSes and Server Software Webcasts
Newsletter Sign-Up

Receive the latest news test, reviews and trends on your favorite technology topics

Choose a newsletter
  1. View all newsletters | Privacy Policy
IT Jobs