Chris Beams’s Blog

Active Directory and more….

Archive for March 13th, 2010

PowerShell – Create Server Account in Specific OU

Posted by chrisbeams on March 13, 2010

Another easy one

New-ADComputer -Name “LDNSRV1” -Path “OU=Servers,DC=W2K8R2,DC=NET” -enabled $True

Posted in PowerShell | Tagged: , | Leave a Comment »

PowerShell – Create OU

Posted by chrisbeams on March 13, 2010

So starting to try and use PowerShell… the AD CmdLets that come with Windows 2008 R2 look pretty good.

new-ADOrganizationalUnit “Workstations”

Simple as that 🙂

Posted in PowerShell | Tagged: | Leave a Comment »