header image

Archive for December, 2008


Posted by: | December 26, 2008 | No Comment |

Looks like there is a problem with my main blog on Spaces.Live.com.   I am trying to find out what has happened to it.  Hopefully normal service will be resumed soon.

under: General

Like all good boys and girls I make sure I’m asleep nice and early on Christmas Eve so Father Christmas isn’t disturbed on his rounds.  This year his alarm clock must have gone off early as he delivered a present overnight – PowerShell V2 CTP3 has arrived!!!! It can be downloaded from http://www.microsoft.com/downloads/details.aspx?familyid=c913aeab-d7b4-4bb1-a958-ee6d7fe307bc&displaylang=en&tm if you […]

under: PowerShell original

S.DS.AD – SiteLinks

Posted by: | December 21, 2008 | No Comment |

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. $site = [System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetComputerSite()$site.SiteLinks For each sitelink we will see Name                         […]

under: PowerShell and Active Directory

S.DS.AD – sites

Posted by: | December 19, 2008 | No Comment |

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.  System.DirectoryServices.ActiveDirectory.ActiveDirectorySite gives us one way to access to the site information. Finding the […]

under: PowerShell and Active Directory

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.ActiveDirectory.DirectoryContextType]::Domain$context = New-Object -TypeName System.DirectoryServices.ActiveDirectory.DirectoryContext -ArgumentList $type, "manticore.org"$dcs = […]

under: PowerShell and Active Directory

S.DS.AD – netlogon service

Posted by: | December 17, 2008 | No Comment |

The netlogon service has to be running on your domain controller for authentication to work and for the Active Directory connectivity to happen.  How can we check that this is running on all of our DCs? $type = [System.DirectoryServices.ActiveDirectory.DirectoryContextType]::Domain$context = New-Object -TypeName System.DirectoryServices.ActiveDirectory.DirectoryContext -ArgumentList $type, "manticore.org"$dcs = [System.DirectoryServices.ActiveDirectory.DomainController]::FindAll($context)foreach ($dc in $dcs){    $s = Get-Service -ComputerName […]

under: PowerShell original

S.DS.AD – Replication

Posted by: | December 17, 2008 | No Comment |

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.DirectoryServices.ActiveDirectory.DirectoryContext -ArgumentList $type, "manticore.org"$dcs = [System.DirectoryServices.ActiveDirectory.DomainController]::FindAll($context)foreach ($dc in $dcs){    $dc.Name    $dc.GetAllReplicationNeighbors() | Format-List PartitionName, SourceServer, LastAttemptedSync, LastSyncMessage} We derive our list of domain controllers as […]

under: PowerShell and Active Directory

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 domain controller like this $type = [System.DirectoryServices.ActiveDirectory.DirectoryContextType]::DirectoryServer$context = New-Object -TypeName System.DirectoryServices.ActiveDirectory.DirectoryContext -ArgumentList $type, DC02.Manticore.org$dc = [System.DirectoryServices.ActiveDirectory.DomainController]::GetDomainController($context)$dc In a similar way […]

under: PowerShell and Active Directory

Chapter 7 – scripts for working with your desktop machines (and servers) – is now available under the Manning Early Access Program – http://www.manning.com/siddaway/ Enjoy   Technorati Tags: PowerShell

under: PowerShell original

For want of a cable

Posted by: | December 15, 2008 | No Comment |

Had to buy a new printer this weekend.  Found a very good deal on a combined printer, copier, scanner – ideal for what I need for home use. Couldn’t believe there wasn’t a USB cable in the box.  Come on guys a printer that doesn’t hook up to the computer ain’t much use.  What was […]

under: Rant

« Newer Posts - Older Posts »