-
Recent Posts
Archives
- May 2012 (26)
- April 2012 (21)
- March 2012 (65)
- February 2012 (94)
- January 2012 (54)
- December 2011 (17)
- November 2011 (11)
- October 2011 (15)
- September 2011 (39)
- August 2011 (57)
- July 2011 (58)
- June 2011 (65)
- May 2011 (53)
- April 2011 (25)
- March 2011 (12)
- February 2011 (18)
- January 2011 (27)
- December 2010 (2)
- November 2010 (14)
- October 2010 (13)
- September 2010 (1)
- June 2010 (11)
- May 2010 (31)
- April 2010 (29)
- March 2010 (19)
- February 2010 (31)
- January 2010 (28)
- December 2009 (11)
- November 2009 (40)
- October 2009 (2)
- September 2009 (8)
- August 2009 (21)
- July 2009 (21)
- June 2009 (27)
- May 2009 (32)
- April 2009 (24)
- March 2009 (41)
- February 2009 (42)
- January 2009 (34)
- December 2008 (30)
- November 2008 (40)
- October 2008 (42)
- September 2008 (52)
- August 2008 (40)
- July 2008 (35)
- June 2008 (38)
- May 2008 (29)
- April 2008 (32)
- March 2008 (59)
- February 2008 (43)
- January 2008 (47)
- December 2007 (30)
- November 2007 (62)
- October 2007 (54)
- September 2007 (43)
- August 2007 (44)
- July 2007 (55)
- June 2007 (57)
- May 2007 (55)
- April 2007 (43)
- March 2007 (61)
- February 2007 (50)
- January 2007 (21)
- December 2006 (7)
- November 2006 (16)
Categories
- .NET
- Active Directory
- Active Directory administration with PowerShell
- Architecture
- BITS
- Books
- COM
- Deep Dive
- DHCP
- DNS
- Events
- Exchange
- File system
- files
- Firewall
- General
- General IT matters
- IT Community
- IT Security
- Learning Powershell
- Math
- Microsoft
- Networking
- Office 2010
- Opinion
- Outlook
- Philosophy
- Powershell
- PowerShell and Active Directory
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- Powershell Basics
- PowerShell User Group
- PowerShell V2
- PowerShell V3
- PSAM
- Rant
- Science Fiction
- Script of the Week
- Scripting
- SQL Server
- Strings
- Technology
- Uncategorized
- Virtualisation
- Walking
- Windows 7
- Windows 8
- Windows 8 Server
- Windows Server 2008
- Windows Server 2008 R2
- WPF
- WSH
Meta
Twitter
- Preparing for the next UG meeting - PowerShell in Server 2012 - too much to choose from 1 week ago
- Reading about regular expressions in #PowerShell . My head is exploding 1 week ago
- Sat in San Diego airport waiting to fly home after an awesome deep dive 3 weeks ago
- #PowerShell Deep Dive is over. Another awesome event. It's the only place I learn something from every session 3 weeks ago
- #PowerShell v3 jobs give many more options - results available across sessions in many cases 3 weeks ago
Category Archives: Active Directory administration with PowerShell
Setting Security permissions on an AD group
We saw how to create an AD security group here http://msmvps.com/blogs/richardsiddaway/archive/2011/06/28/creating-ad-security-groups.aspx This is how we can give a user full control of that group function set-groupsecurity { [CmdletBinding()] param ( [string]$name ) $dom = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() $root = $dom.GetDirectoryEntry() $search … Continue reading
Creating AD security groups
Continuing my AD excursion for a while. I saw a forum post about creating AD groups and came up with this function function new-securitygroup { [CmdletBinding()] param ( [string]$name, [string]$ou, [parameter(ParameterSetName="U")] [switch]$universal, [parameter(ParameterSetName="G")] [switch]$global, [parameter(ParameterSetName="DL")] [switch]$domainlocal ) $rootdse = [ADSI]“” … Continue reading
Force user to change password
I’ve always liked scripting against Active Directory as it has one of the potentially richest environments fro automation. Normally I use the Quest or Microsoft cmdlets but every now and then its fun to back to using ADSI. I came … Continue reading
Time Skew
I was reading a study guide for my next exam and something in that triggered some thoughts about Time skew between computers in an Active Directory domain. AD uses Kerberos for authentication and Kerberos requires that the times on the … Continue reading
Searching AD by Script vs cmdlet
In a previous post http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!601.entry I showed searching for a particular user and having a filter on for membership of a particular group $user = Get-QADGroupMember -Identity ‘SomeGroupName’ | where {$_.Name -like "*UserName"} If you wanted to do that … Continue reading
AD Test Users
When working with Active Directory there is sometimes a need to generate a number of test users. A question on the Win IT Pro forum was asking for a script to generate 1500 test users. All I had was an old … Continue reading
GPExpert Scripting Toolkit for PowerShell
SDM Software have announced that their GPExpert Scripting Toolkit for PowerShell is now available. This toolkit allows you to automate the setting of values in GPOs!! if you work with GPOs and PowerShell well worth a look http://www.sdmsoftware.com/products2.php
Active Directory providers
At the risk of sounding like a broken record I want to return to the subject of a PowerShell provider for Active Directory. There have been a number of posts in the Microsoft PowerShell newsgroup around when a provider will … Continue reading
smdgpo cmdlets on Vista
The *-sdmgpo cmdlets need GPMC to be installed. Note that GPMC ships as part of Vista and does not need to be installed separately. To access GPMC create an empty MMC and add the GPMC snapin
GPO cmdlets
There are now two cmdlets available for manipulating GPOs – see http://www.gpoguy.com/powershell.htm get-sdmgpo allows you to use the GPMC API to work with GPOs new-sdmgpo enables creation of gpos Add these to the Quest AD cmdlets, PowerGUI and … Continue reading