PowerShell for Windows Admins:

January, 2013

January 4, 2013  11:59 AM

Finding the domain controller that authenticated you

Posted by: Richard Siddaway
Active Directory, PowerShell

A question on my blog asked how do you know which domain controller you are running against when you search Active Directory. Unless you explicitly instruct your script to use a specific domain controller it will use the one to which you authenticated.

You can find the DC to which you...

January 3, 2013  1:11 PM

Displaying data from multiple servers as HTML

Posted by: Richard Siddaway
PowerShell, WMI

A forum question regarding retrieving WMI based data from multiple servers and displaying it as HTML was interesting.  I would approach it like this

$servers = Get-Content...

January 3, 2013  12:48 PM

Ensuring that parameter values are passed to your function

Posted by: Richard Siddaway
Active Directory, PowerShell 3, PowerShell v2

A question on the forum about a function had me thinking. The user had defined two parameters for the function and then used Read-Host to get the values.


Much better way is to use an advanced function and make the parameters mandatory


				Bookmark and Share



				  RSS Feed

				  Email a friend


January 3, 2013  6:01 AM

PowerShell workflow articles

Posted by: Richard Siddaway
PowerShell 3

I’ve written a series of articles on PowerShell workflows that are appearing on the Scripting Guy blog. The first two in the series have been published at:

Bookmark and Share     0 Comments     RSS Feed     Email a friend

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: