header image

Archive for December, 2008

S.DS.AD – Domain

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

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                  : Manticore.orgDomainControllers       : {CSDC1.Manticore.org, DC02.Manticore.org}Children                : {}DomainMode              : Windows2008DomainParent                  :PdcRoleOwner            : DC02.Manticore.orgRidRoleOwner            : DC02.Manticore.orgInfrastructureRoleOwner : DC02.Manticore.orgName                    : Manticore.org Notice that […]

under: PowerShell and Active Directory

S.DS.AD – Forest

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

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 to access AD.  It is designed for administering the structure of AD – forests, domains, sites, […]

under: PowerShell and Active Directory

This namespace seems to be poorly understood by PowerShell users compared to the System.DirectoryServices namespace.  There is a white paper and some sample code available at http://msdn.microsoft.com/en-us/library/bb267453.aspx and https://www.microsoft.com/downloads/details.aspx?FamilyID=1F37FBAC-BA9F-47EF-A556-52A9DE8FEFBC&displaylang=en  respectively. The examples aren’t in Powershell but it is a start.   Technorati Tags: PowerShell,Active Directory

under: PowerShell and Active Directory

Active Directory 4th edition

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

Father Christmas came early this year with the delivery of a copy of Active Directory 4th edition by Brian Desmond, Joe Richards, Robbie Allen and Alistair G Lowe-Norris for review. Quick flip through and it looks to have some interesting contents – the chapters showing the differences between the various versions of Active Directory will […]

under: PowerShell and Active Directory

Event logs

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

PowerShell gives a way to read the contents of the event logs using Get-EventLog.  If we just use something like Get-EventLog -LogName Scripts we can see the entries in the event log.  These come through as objects of type System.Diagnostics.EventLogEntry and have the properties we are used to seeing in the event viewer utility. If […]

under: PowerShell original

Event log entries

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

A recent post on the forums was asking about the error message they received when attempting to use get-eventlog on an empty log.  The log can be tested before attempting to read $log = "Scripts"$n = (Get-EventLog -List | where{$_.log -eq $log}).Entries.countif ($n -gt 0){Get-EventLog -LogName $log} else {"$log log is empty"} Use the Entries […]

under: PowerShell original

Social Bookmarking

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

I have had to stop using the social book marking tool I’ve been using as it does not seem to be compatible with the latest version of Live Writer.  Its not because I don’t want to be sociable – honest.   Technorati Tags: Social Bookmarking

under: General

Its a bit of a lottery

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

At some stage in the not too distant future I may need to determine who will be doing a particular task when. The task is rotated between a number of individuals and deciding the order of can be fun. In order to make it impartial I decided to script the drawing of lots. #Requires -version […]

under: PowerShell original

Apologies

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

Apologies if you have problems connecting – spaces has been updated yet again and yet again it has caused issues.   We may be OK for a while now.     Technorati Tags: General

under: General

« Newer Posts

Categories