Richard Siddaway

Explore articles and content from this author

Richard Siddaway

128 articles published

2 min read

Filter or LDAP filter

Many of the Microsoft AD cmdlets have a ““Filter and an ““LDAPFilter parameter. So what"™s the difference? PS> Get-Help Get-ADUser -Parameter *Filter* -Filter Specifies a query string that retrieves Active Directory objects. This string uses the PowerShell Expression Language syntax. The PowerShell Expression Language syntax provides rich type-conversion support for value types received by the Filter parameter. The syntax uses an in-order representation, which means that the operator is placed between the operand and the value.

1 min read

Advanced Functions webcast

Quick reminder that the UK PowerShell group is hosting a Live Meeting webcast on PowerShell Advanced functions tomorrow ““ details from http://richardspowershellblog.wordpress.com/2013/02/18/uk-powershell-groupadvanced-functions/

1 min read

New book

My latest book has been released on the Manning Early Access Program (MEAP). Active Directory Management in a Month of Lunches takes the newcomer to AD through the tasks they need to perform to manage their organization"™s AD. it assumes no knowledge of AD and shows how to perform the common management tasks from the GUI (AD Administrative Center & the venerable AD Users & Computers) as well as PowerShell (using the Microsoft cmdlets).

2 min read

Creating a Windows 2012 Domain Controller

I decided to replace one of the DCs in my test environment with a Windows 2012 Server Core machine. Server Core has really come of age in Windows 2012 ““ its easy to configure. I"™ve covered configuring a server before but to recap: Rename the machine ““ use Rename-Computer Set Network ““ use Set-NetIPInterface (address) & et-DnsClientServerAddress( dns address) & Rename-netAdapter Join to domain ““ use Add-Computer To create the domain controller use the ADDSDeployment module.

1 min read

CIM cmdlets and remote access

When you used the WMI cmdlets Get-WmiObject -Class Win32_logicalDisk -ComputerName RSLAPTOP01 You were using DCOM to access the remote machine. Even if you accessed the local machine you were using DCOM. This changes in PowerShell v3 when using the CIM cmdlets. If you don"™t use a computername Get-CimInstance -ClassName Win32_logicalDisk You use DCOM to access the local machine. If you use ““computername Get-CimInstance -ClassName Win32_logicalDisk -ComputerName RSLAPTOP01 You use WSMAN to access the machine named ““ irrespective of if it is local or remote

1 min read

UK PowerShell Group"“Advanced functions

When: Tuesday, Feb 26, 2013 7:30 PM (GMT) Where: Virtual *~*~*~*~*~*~*~*~*~* Advanced functions give you ability to create functions that act like cmdlets. Learn how to get the most from this powerful part of the PowerShell functionality Notes Richard Siddaway has invited you to attend an online meeting using Live Meeting. Join the meeting. Audio Information Computer Audio To use computer audio, you need speakers and microphone, or a headset.

2 min read

Filtering

I"™ve been grading the scripts in the warm up events for the Scripting Games and noticed a lot of people doing this: Get-WmiObject -Class Win32_LogicalDisk | where {$_.DriveType -eq 3} Ok now it works but there are a couple of things wrong with this approach. Firstly, you are ignoring the built in capabilities of the get-wmiobject cmdlet PS> Get-Command Get-WmiObject -Syntax Get-WmiObject [-Class] [[-Property] ] [-Filter ] [-Amended] [-DirectRead] [-AsJob]

1 min read

PowerShell Workflow"“the complete series

The series of articles on PowerShell workflows that are appearing on the Scripting Guy blog is now complete. The articles in the series that have been published are: http://blogs.technet.com/b/heyscriptingguy/archive/2012/12/26/powershell-workflows-the-basics.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/01/02/powershell-workflows-restrictions.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/01/09/powershell-workflows-nesting.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/01/16/powershell-workflows-job-engine.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/01/23/powershell-workflows-restarting-the-computer.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/01/30/powershell-workflows-using-parameters.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/02/06/powershell-workflows-design-considerations.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/02/13/powershell-workflows-a-practical-example.aspx The series is complete for now but as workflow is such a new topic expect more on it in the future. Until then Enjoy!

1 min read

Scripting Games warm up

As a warm up for this years Scripting Games a two event Winter Scripting Camp has been organised. Details from https://powershell.org/games/