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: Redirecting Well Known Containers (CN=Users; CN=Computers etc.)

    In this post we will see the Powershell way of redirecting Users and Computers containers (i.e. Powershell equivalent of tools: redirusr.exe and redircmp.exe ). By now you might know that you can use Get-ADDomain cmdlet for viewing the well-known containers of a domain, For example: PS C:\Users\Administrator...
  • 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: Three Module Extensions (DC Health, Trust Management and Demo Script)

    This is a short blog post to highlight a few module extensions that we have been demoing at conferences this year. They show some of the new features in our PowerShell module as well as a few examples extending them. In this update, there are three modules: DemoScript – This is module wrapping...
  • 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: Working with Certificates in Active Directory Powershell

    AD Powershell uses .NET class X509Certificate to represent a certificate. Let's see how you can manage the certificates for a user. Update User Certificates You can create a X509Certificate (or X509Certificate2 ) object using the certificate file. PS C:\> $cert1 = New-Object System.Security...
  • Blog Post: Error Reporting in Active Directory Powershell

    In this blog, I will discuss the Active Directory (AD) PowerShell error reporting. Good error reporting is critical and it saves time to resolve an issue. Let's start with the basics. In case of error, AD PowerShell cmdlet prints the error details which contain an error message. PS C:\> New...
  • 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 (10 items)