PowerShell and Active Directory

Finding UPN suffixes

When we were creating users on of the properties we created was the UPN – userPrincipalName. This takes the form name@suffix   Name defaults to...

read more

AD provider help

The AD examples in recent posts have shown the *-Item cmdlets used against the AD provider. If you would like more information on how these cmdlets...

read more

Creating AD users

In this post I’ll show the absolute bare bones code required to create an AD user if ( -not ( Get-Module ActiveDirectory ) ) { Import-Module...

read more

GPO cmdlets

One thing new I found out today – if you install the Remote Server Administration Tools (RSAT) on Windows 7 you can use the GPO cmdlets (GroupPolicy...

read more

Listing parent OUs

Problem: You have an OU distinguished name and you need to list the parents Solution: function get-parent { param ( [string] $ou ) $dom =...

read more

Moving AD objects

Continuing our occasional look at using PowerShell to administer AD we need to move objects. We can keep this nice and generic function move-object...

read more
1 7 8 9