Browse by Tags

All Tags » PowerShell and Active Directory (RSS)

Codeplex AD Replication Module

The other codeplex project that caught my eye was a brand new one to create a PowerShell module to manage AD replication.  This one will be very useful and one I will be using a lot. There is still time for suggestions as to content for this project...

Tombstone Periods

We can get the tombstone period of our Active Directory by 001 002 003 $root   =   [ADSI] ""   $ds   =   [ADSI] ( "LDAP://CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,"   +   $root...

AD PowerShell on Windows 2008/2003 - supposedly

As James pointed out recently the AD Web Service from Windows 2008 R2 has been released for Windows 2008 and Windows 2003 -  see http://blogs.msdn.com/adpowershell/archive/2009/06/23/use-active-directory-powershell-to-manage-windows-2003-2008-dcs...

AD attributes

I had a question come through as a private message regarding how to extract a particular attribute for user objects. The script wasn’t working because the label name in AD Users and Computers didn’t match the attribute name. This is a fairly common scenario...

Forest and domain modes

We can find the forest and domain modes using the following commands Get-ADDomain -Identity grayson | select DomainMode Get-ADForest grayson | select forestmode The modes can be set from the GUI as normal or Set-ADDomainMode -Identity grayson -DomainMode...

Windows 2008 R2 PowerShell for AD

Back in this post http://richardsiddaway.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&_c=BlogPart&handle=cns!43CFA46A74CF3E96!2214 we looked at creating OUs using the AD cmdlets in Windows 2008 R2. We may want to look at the OUs we have...

Select-String

One task I had to do a a few times recently is track down which GPOs had a particular setting enabled. If you are working in an environment with a signifcant number of GPOs this can be a tedious task. The easier way - use the SDMSoftware GPMC cmdlets...

Windows 2008 R2 - OU

One of the big benefits of Windows 2008 R2 is the fact that PowerShell v2 is installed by default and that AD can be administered by PowerShell. There are 76 AD cmdlets and an AD provider. We’ll start by looking at the cmdlets. Organizational Units are...

Active Directory Cookbook third edition

The original AD cookbook by Robbie Allen was published back in 2003. It has been one of my favourite, and most referenced, books. When I used to use VBScript (shudder) it was indispensible and saved me vast amounts of time. One AD implementation I did...

Quest AD cmdlets

If you have followed this blog over any period of time you will know that I am a big fan of the Quest AD cmdlets. The good news is that version 1.2 of the cmlets has gone RTM. The bad news is that it won’t be available for a little while yet. The major...

AD PowerShell blog

The blog of the AD PowerShell Team can be found here - http://blogs.msdn.com/adpowershell/default.aspx If you work with PowerShell & AD will be worth a read Technorati Tags: PowerShell , Windows 2008 R2 , Active Directory

PowerShell in Practice – Chapter 10

Chapter 10 is now available as part of the MEAP - http://www.manning.com/siddaway/ This one deals with the structure of Active Directory. After a quick look at the schema there is a good look at working with OUs and GPOs. The chapter closes by showing...

Sites and SiteLinks

In my series on System.DirectoryServices.ActiveDirectory I was going to cover creating sites and sitelinks – Rolf has just covered this material so I will point you there instead. http://www.powershell-ag.de/ps/Blog/tabid/73/EntryID/1123/Default.aspx...

S.DS.AD - SiteLinks

SiteLinks are used to control replication between Active Directory Sites. We have already seen how to find the current site and how to view the domain controllers in that site. How do we know what sites our site is replicating with – follow the sitelinks...

S.DS.AD - sites

Sites are the foundation of the physical topology of Active Directory. While there has been a lot posted about working with users and groups i.e. the data in Active Directory there hasn’t been as much posted about working with the physical structure....

S.DS.AD – netlogon service 2

Last time I said that I wanted to improve the way the data was displayed when we interrogated the netlogon service on our domain controllers. One way we could do it is to use Add-Member to add the data to an object $a = @() $type = [System.DirectoryServices...

S.DS.AD - Replication

We can us e what we have learnt about domain controllers to enables to have a way to examine the replication between domain controllers. $type = [System.DirectoryServices.ActiveDirectory.DirectoryContextType]::Domain $context = New-Object -TypeName System...

S.DS.AD – Domain Controllers

We saw one method of accessing domain controllers when we were looking at the domain class - http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!1932.entry If we want to work directly with a domain controller we can create an object for the...

S.DS.AD - Domain

We looked at AD Forests last time – moving along we come to domains. We can discover the current domain in a similar manner to the forest $dom = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() $dom The standard output includes Forest...

S.DS.AD - Forest

System.DirectoryServices.ActiveDirectory – its a bit of a mouthful so I’m going to abbreviate it to S.SD.AD – is a .NET namespace that works with Active Directory. Unlike System.DirectoryServices it is not an ADSI wrapper but works through non-LDAP protocols...
More Posts Next page »