Presenting for the Singapore PowerShell User Group PowerBreakfast 007: What’s New in PowerShell Version 5

I'll be presenting a session on "What's New in PowerShell Version 5" for the Singapore PowerShell User Group's PowerBreakfast #007 this Saturday, December 13th beginning at 8:30am (Singapore time). Sign up on Eventbrite if you're interested in attending this event. Here's what you can expect from this presentation: With PowerShell version 4 being announced at TechEd last year (2013) and several preview versions of PowerShell version 5 already being released this year, it shows how committed Read more [...]
Posted in PowerShell | Tagged | Leave a comment

Use a certificate with PowerShell DSC to add a server to Active Directory without hard coding a password

A new Windows Server 2012 R2 machine has been brought online and needs to be joined to your Active Directory domain. All machines used in this demonstration are running either Windows Server 2012 R2 or Windows 8.1 with PowerShell version 4. You've decided to use DSC (Desired State Configuration) to join this new server to the domain because it's a prototype for many more servers to come. You plan to automate their deployment along with the majority of their configuration with DSC. While this Read more [...]
Posted in Desired State Configuration, PowerShell | Tagged , , | Leave a comment

Using PowerShell to add the necessary vWorkspace Firewall Exceptions on a Hyper-V Host Virtualization Server

Recently while adding a Windows Server 2012 R2 Hyper-V server as a host virtualization server in a vWorkspace 8.0.1 environment, I received the following error message: "Connect to DC service timed out. Overlapped I/O operation is in progress. (997) Retry will occur automatically if necessary." That error message lead me to a Dell support article which stated that I needed to either disable the firewall <which is not going to happen on my watch> or open port 5203. While the article Read more [...]
Posted in PowerShell, vWorkspace | Tagged , | Leave a comment

Use PowerShell to Install Active Directory Certificate Services

In this blog article, I'll use PowerShell to install Active Directory Certificate Services in my test environment. The domain controller that's being used is running Windows Server 2012 R2 Server Core Installation (no-GUI). The workstation that I'm using is running Windows 8.1 and it is a member of the same Active Directory domain. Many times when I'm prototyping something on a single remote server, I'll use one to one remoting so that it's an interactive session. The Enter-PSSession cmdlet is Read more [...]
Posted in Active Directory, PowerShell | Tagged , | Leave a comment

My New Book: Windows PowerShell TFM 4th Edition is now Available!

If you work with technology then I'm sure you're already aware that PowerShell is one of those technologies that is quickly becoming a must have skill. Whether you're a beginner or someone who is looking to become more proficient with PowerShell, there's a new book on the market that is an all in one learning guide, lab guide, and PowerShell reference. I'm happy to say that I'm proud to be part of the Superhero team at SAPIEN Technologies who is bringing you the Windows PowerShell TFM 4th Edition Read more [...]
Posted in PowerShell | Tagged | 3 Comments

PowerShell: When Best Practices and Accurate Results Collide

I'm a big believer in trying to write my PowerShell code to what the industry considers to be the best practices as most are common sense anyway, although as one person once told me: "Common sense isn't all that common anymore". I would hope that even the most diehard best practices person would realize that if you run into a scenario where following best practices causes the results to be skewed, that at least in that scenario it's worth taking a step back so you can see the bigger picture. I Read more [...]
Posted in Active Directory, PowerShell, SQL Server | Tagged , , | Leave a comment

PowerShell Desired State Configuration Error: Undefined Property ConfigurationName

The scenario in this blog article is that you've created a DSC configuration on a computer that's running a preview of PowerShell version 5. The machine itself could be running Windows 8.1, Server 2012 R2, or the Windows Technical Preview version of Windows 10. Here's a simple configuration that I'll use to demonstrate the problem. This DSC configuration uses a custom DSC resource to rename a computer. This configuration is being created on a machine running the Windows Technical Preview version Read more [...]
Posted in Desired State Configuration, PowerShell | Tagged , | 2 Comments

Use PowerShell to Determine the Uptime of an EqualLogic SAN

Recently, I received notification from EqualLogic support that there could be issues with their storage area networks running firmware version 7.0.x at 248 consecutive days of uninterrupted operation and they recommend updating to firmware version 7.0.9 to correct (and prevent) the problem. While I know that I have EqualLogic storage area networks running in some of the data-centers I support, I'm not sure what version of firmware they're running or what the uptime on them is so I'll use PowerShell Read more [...]
Posted in PowerShell, Storage Area Network | Tagged , , , | 2 Comments

Use PowerShell to Determine the Differences in Group Membership between Active Directory Users

I recently saw a post on Reddit where someone was trying to create a function that takes an Active Directory user name as input for a manager who has direct reports (subordinates) specified in Active Directory. They wanted to determine if the Active Directory group membership of any of those subordinates is different than the others. There are two different parts to this scenario. Returning a list of the manager's direct reports by querying that property from the manager's user account in Active Read more [...]
Posted in Active Directory, PowerShell | Tagged , | Leave a comment

Using Pester for Test Driven Development in PowerShell

How do you normally write your PowerShell code? Your answer is probably like mine and most other IT pros. You have a task that you need to accomplish and instead of performing a clicker-size in the GUI whenever that task is required to be performed, you write a PowerShell one-liner, script, or function to automate that task. You test it a little to make sure there aren't any major issues and you implement it, moving on to the next task. Have you heard of a PowerShell module named Pester? I'd Read more [...]
Posted in PowerShell | Tagged , | 3 Comments

Creating a Custom DSC Resource to Configure Jumbo Frames on Network Cards

Recently while working on configuring a new server with DSC (Desired State Configuration), I discovered that there wasn't a DSC resource for configuring the jumbo frames setting on network cards so I decided to write my own. This blog article steps you through the process of creating a custom DSC resource, specifically one that is used to configure the jumbo frames setting on network cards. The specific settings for jumbo frames can vary depending on your network card manufacturer and the specific Read more [...]
Posted in PowerShell | Tagged , | 2 Comments

My Solution to the Impractical One-liner Challenge

I recently participated in an "Impractical One-liner Challenge" that Stephen Owen posted on his blog site where he challenged his readers to come up with a PowerShell one-liner that would allow the person running it to select a single OU (Organizational Unit) from a list of all the OU's in Active Directory and then move a list of computer accounts that are contained in a text file to that OU. My solution requires the Active Directory PowerShell module and at least PowerShell version 3. I decided Read more [...]
Posted in PowerShell | Tagged | Leave a comment