Tag: PowerShell

Determine what OU a Computer Account is in with PowerShell

Problem: You've been asked to send an email to someone with the location in Active Directory (what Organization Unit or OU) where a particular computer account is located. Solution: As you could have probably guessed, the solution is to query Active Directory with PowerShell and use the Send-MailMessage cmdlet to send the results to the recipient: Update: I thought I would elaborate a little more based on Jeff Hicks comments. Unless this PowerShell command Read more [...]

PowerShell: Determine Exposed WMI and CIM Class Methods

I sat through the Arizona PowerShell User Group meeting yesterday evening via a Lync online meeting. Don Jones was the guest speaker this month. His session was on generating reports from PowerShell. It was a super cool session and if you're not taking advantage of user group meetings, you're really missing out. Interface Technical Training was the sponsor for the user group meeting this month. I'm currently working my way through their PowerShell video training series which I've been very impressed Read more [...]

The Unboxing Experience: Learn Windows PowerShell 3 in a Month of Lunches, Second Edition Book

When I arrived at home after work yesterday, I found a surprise box on my desk: A quick look at the label on the side of the box gave away its secret contents. It was my new, hot off the press, copy of "Learn Windows PowerShell 3 in a Month of Lunches, Second Edition" book written by Don Jones and Jeffery Hicks, published by Manning: I have to say that it was packed very well for a book. I recently received another package from a different vendor that contained a fragile item that wasn't Read more [...]

PowerShell Version 3 Installation Failure on Windows Server 2008 R2 Server Core Installation (no-GUI)

You have a server which runs the Windows Server 2008 R2 with SP1 operating system that was installed using the "Server Core Installation" option (no-GUI): You've given this server a name, added it to the domain, configured the IP address settings, and configured options 1 -3 in the "Configure Remote Management" portion of sconfig as shown in the following image: PowerShell version 2 works fine on the server, but you've been tasked with loading PowerShell version 3 on it. You've downloaded and Read more [...]

PowerShell Studio 2012: PowerShell Cache Builder has Stopped Working

I won a copy of PowerShell Studio 2012 at PowerShell Saturday 003 in Atlanta last month. It's an awesome product to win and the best giveaway of the entire event (in my opinion). I ran into an issue the first time I ran the product after the installation and thought I would share the problem, cause, and solution so anyone who experiences the same issue can easily resolve it. The installation itself completed without issue. The first time I opened the program, I received the error in the following Read more [...]

Calculate What Date Thanksgiving is on with PowerShell

A quick search on the Internet turned up this definition for Thanksgiving: "Thanksgiving Day is a time for many people to give thanks for what they have". Based on that definition, I have a long list of things to be thankful for, however, this is a technology related blog site with an emphasis on PowerShell so I'll focus on being thankful for my PowerShell friends, the PowerShell community, an employer who supports my PowerShell addiction, and a wife & children who put up with me spending Read more [...]

PowerShell Magazine Brain Teaser Winner!

I received notification yesterday from PowerShell Magazine that I had won last weeks PowerShell Brain Teaser to "Assign a list of processes to a variable and output it to the console". The prize for winning that particular brain teaser was an eBook version of the recently released "Learn Windows PowerShell 3 in a Month of Lunches, Second Edition" book written by Don Jones and Jeffery Hicks: This weeks brain teaser is "Find a list of all IP addresses assigned to the local system". An eBook Read more [...]

PowerShell Book Deals for Monday – November 19th, 2012

Manning.com has three PowerShell Books onsale today, Monday - November 19th, 2012. The promo code to receive the discount on each book is dotd1119cc. Save 50% off "Learn PowerShell Toolmaking in a Month of Lunches" written by Don Jones and Jeffery Hicks: Save 44% off "Learn Windows PowerShell 3 in a Month of Lunches, Second Edition" written by Don Jones and Jeffery Hicks: Save 44% off "PowerShell in Depth" written by Don Jones, Richard Siddaway, and Jeffery Hicks: View Read more [...]

PowerShell Summit North America 2013 Apparel & Gift Store

I thought I would share the "unboxing experience" of my PowerShell Summit North America 2013 T-Shirt. The T-Shirt arrived in about a week with the economy shipping choice. It arrived in a mail type bag as shown below. The shirt was folded and had what I would call a brown paper ribbon around it with a cafe press sticker and a thank you card with my receipt in it: The color I chose was charcoal. The size is an X-Large which is what I normally purchase. No complaints about the size or color, Read more [...]

Book Deals: Three Awesome PowerShell Related Books Onsale Today For 50% Off

Manning.com has three awesome PowerShell related books onsale today for 50% off with promo code dotd1117cc. Learn Windows IIS in a Month of Lunches written by Jason Helmick Windows PowerShell in Action, Second Edition written by Bruce Payette Learn PowerShell Toolmaking in a Month of Lunches written by Don Jones & Jeffery Hicks View this deal. µ Read more [...]

Remove or Change Items on your PowerShell People Profile

First, start out by reading my blog from two days ago titled "Meet the People of PowerShell at PowerShell.org/People and PowerShell.net" otherwise you'll be starting in the middle of the story and this blog will only end up causing confusion. To change an item on your PowerShell People profile page, the item has to be removed and then re-added. With that said, we'll cover removing an item and see the previous blog article referenced in the first paragraph for how to add it back. In this example, Read more [...]

Book Giveaway: Learn Windows PowerShell 3 in a Month of Lunches, Second Edition

PowerShell Magazine has a "Brain Teaser" book giveaway going on where you post how to accomplish a specific task in PowerShell to try to win a copy of the "Learn Windows PowerShell 3 in a Month of Lunches, Second Edition" book written by Don Jones and Jeffery Hicks. This weeks brain teaser is: "Assign a list of processes to a variable and output it to the console". µ Read more [...]

Meet the People of PowerShell at PowerShell.org/People and PowerShell.net

Do you consider yourself a PowerShell person? If you haven't heard, there's a new online directory of the PowerShell community called PowerShell People. The site is a place to find other PowerShell enthusiast's blogs, webs sites, twitter feeds, and other items they've chosen to share. What's needed to get a profile page on the PowerShell People community site? Simply a knowledge of PowerShell. You heard me correctly, a knowledge of PowerShell is the only prerequisite for creating a PowerShell People Read more [...]

PowerShell: Save-Help for Modules that Aren’t Installed on the Local Computer without Copying Files

In my last blog article on this subject, I showed how to copy the PowerShell module manifest file from a server with the module you want to download the help for to the local computer to trick it into thinking the module was installed locally, but copying files can get messy and isn't really a robust way of accomplishing that task. The first method I used did get me thinking about this process though. If all the Save-Help cmdlet does is to look for the Module manifest file somewhere in the PowerShell Read more [...]

PowerShell Book Giveaways

There are a couple of PowerShell book giveaways going on that you may be interested in: PowerShell Magazine is giving away a copy of "Microsoft Windows PowerShell 3.0 First Look" written by Adam Driscoll. Alvin Ashcraft's Morning Dew is giving away two copies of "Learn Windows PowerShell 3 in a Month of Lunches, Second Edition" written by Don Jones & Jeffery Hicks. µ Read more [...]

The Scripting Guy Discusses Remote Management with PowerShell Version 3

The Scripting Guy (Ed Wilson) will be presenting at the Arizona PowerShell Users Group today, Wednesday November 7th from 3:30 to 5pm MST (Mountain Standard Time). If you can't be there in person, here's a link to the Arizona PowerShell Users Group page where the information to join the Lync online meeting is posted. I attended last month's online meeting and you'll want the Microsoft Lync 2010 Attendee fat client (not the web client). The fat client is the only way I found to hear the audio during Read more [...]