Author Archives: richardsiddaway

Some thoughts on finding a users OU

Back in this post http://itknowledgeexchange.techtarget.com/powershell/discovering-a-users-ou/ I showed how to get the OU of a user from the distinguished name of the user object. if you want to display that as part of your output you can create a calculated field … Continue reading

Posted in PowerShell and Active Directory | Leave a comment

AD Management MoL Deal – – 3 February 2016

My Learn Active Directory Management in a Month of Lunches will be part of Manning’s Deal of the Day on 3 February 2016. Half off my book Learn Active Directory Management in a Month of Lunches. Use code dotd020316au at … Continue reading

Posted in Books, PowerShell and Active Directory | Leave a comment

PowerShell Summit 2016 – – 3 day registration open

Three day registration is now open https://eventloom.com/event/login/PSNA16

Posted in Powershell, Summit | Leave a comment

Scripting Game puzzle – – January 2016

Here’s how I’d solve the puzzle function get-starttime {    [CmdletBinding()]    param(        [parameter(                ValueFromPipeline=$true,                 ValueFromPipelineByPropertyName=$true)]        [Alias(‘CN’, ‘Computer’)]        [ValidateNotNullOrEmpty()]          [string[]]$computername = $env:COMPUTERNAME    )        PROCESS {            foreach ($computer in $computername){            $props = [ordered]@{                ComputerName = $computer                StartTime = ”                … Continue reading

Posted in PowerShell and CIM, Powershell Basics, Scripting Games | Leave a comment

PowerShell Deal of the Day – – 31 January 2016

PowerShell in Action, Third Edition is Manning’s Deal of the Day Sunday 31 January 2016 Deal of the Day January 31: Half off Windows PowerShell in Action, Third Edition. Use code dotd013116au at https://www.manning.com/books/windows-powershell-in-action-third-edition PowerShell in Depth, Second Edition is … Continue reading

Posted in Books, Powershell | 1 Comment

PowerShell editing options

I’ve used the ISE since it first appeared in PowerShell 2.0 but there are a couple of recent annocements that increase your code editing options ISE previews will become available out of band rather than being tied to WMF/OS releases … Continue reading

Posted in Powershell | Leave a comment

Which filter

Get-ADUser has 2 filter parameters. The –Filter takes a PowerShell syntax filter e.g. Get-ADUser -Filter {Name -eq ‘Richard’} The –LDAPfilter takes an LDAP search filter e.g. Get-ADUser -LDAPFilter “(Name=Richard)” Mixing them up will ensure you don’t get the results you … Continue reading

Posted in PowerShell and Active Directory | Leave a comment