Active Directory Powershell Blog

Pipelining AD – one object at a time

Browse by Tags

Tagged Content List
  • Blog Post: Find out when your Password Expires

    Few weeks ago I came across this question “How to find out an account’s password expiration date” in one of our internal mailing-list. This looks like a simple question, but when we tried to find the answer we realized it is not a trivial task. One of my colleagues pointed to this 22...
  • Blog Post: Active Directory Powershell to manage Sites and Subnets – Part 2 (New-XADSubnet)

    In an earlier post “Active Directory Powershell to manage sites – Part 1 (New-XADSite)” Jairo explained in detail about how to create a Site in Active Directory using AD Powershell. In today’s post I am going to discuss about how to create Subnets using AD Powershell. Before going into details of...
  • Blog Post: Tab completing LDAP attribute names inside Advanced Filters

    In my previous post about Advanced filter s I showed how to use Powershell variables to represent values inside filters. Example: PS D:\> $JohnSmith = Get-ADUser JohnSmith PS D:\> Get-ADUser -Filter { manager -eq $JohnSmith.DistinguishedName } ## Gets all the user accounts whose manager...
  • Blog Post: ACTIVE DIRECTORY POWERSHELL TO MANAGE SITES – Part 1 (New-XADSite)

    In this opportunity I am going to provide a solution to manage sites in your Active Directory (AD) forest by extending Active Directory PowerShell by implementing functions that allow creation, retrieval, update (moving to a site link, renaming) and deletion of sites. First of all we need to understand...
  • Blog Post: HOW TO CREATE A FUNCTION TO VALIDATE THE EXISTENCE OF AN AD OBJECT (Test-XADObject)

    In this posting I am sharing a simple but useful function that you might need to use in many of your scripts. This is a function that returns true if a given AD object exists provided its identity. The Identity parameter can receive any ADObject identity. This means that it can receive identities that...
  • Blog Post: Extending Active Directory Powershell

    Today, I am going to show how we can leverage the power of Powershell V2 and Active Directory Module, and easily write powerful, professional cmdlets (with help message, positional parameters, default prompting, error handling etc.) for AD. Couple of weeks ago, one of my colleagues (Alexander Lash...
Page 1 of 1 (6 items)