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. For more information about the Filter parameter, see about_ActiveDirectory_Filter.

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. You”™ll only find this on servers where you”™ve installed the AD Domain Services feature which you do like this:

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.
First Time Users:
To save time before the meeting, check your system to make sure it is ready to use Microsoft Office Live Meeting.
Troubleshooting
Unable to join the meeting? Follow these steps:

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]
[-Impersonation ] [-Authentication ] [-Locale ]
[-EnableAllPrivileges] [-Authority ] [-Credential ] [-ThrottleLimit ] [-ComputerName
] [-Namespace ] []