The PowerGUI Challenge 2010 contest

Monday, September 27, 2010

Get a chance to win some money by having fun with PowerShell and PowerGUI. Quest has announced The PowerGUI challenge contest (October 15 to November 15) and you can win a lot of prizes. All you have to do is write a PowerPack or an Add-on, if your entry makes it into the top 10 in they will be judged by the contest judges panel which includes: Jeffrey Snover, Hemant Mahawar, Don Jones, Jeffery Hicks, Shay Levy, Brandon Shell, Aleksandar Nikolic, and Marco Shaw. Head over to the PowerGUI Challenge contest page and read...
no comments

New PowerGUI Script Editor Add-on

Saturday, July 10, 2010

When you’re working with the PowerGUI script editor, writing new stuff or debugging your scripts, you have several options to run/debug your code:     As you can see there are two keyboard shortcuts to run code (F5 and CTRL+F5) and there’s one more to execute selected code (CTRL+F7). When I debug my scripts in the script editor I prefer to use just one shortcut, if there is some selected code run it (Execute Selection) otherwise run everything (Start Debugging). We can set the same shortcut for both actions in the editor (...

Alias expansion in PowerGUI Script Editor

Thursday, July 8, 2010

In a previous post I wrote about the new PowerGUI Script Editor SDK and showed an example of creating a new Toolbar with one command to expand aliases in the code pane. The ExpandAlias command is now available as an Add-on.   The Add-on module creates a new menu item under the Tools menu and assign it a keyboard shortcut (Control+E).   Write some code that contain aliases in the script editor code pane   Click on the ExpandAlias menu item (or press CTRL+E) to...
no comments

PowerGUI – Take control of the script editor

Thursday, July 1, 2010

In his PowerShell Editor Roundup: PowerGUI Pro blog post, Don mentions that PowerGUI's script editor lacks the ability to resolve 'alias-to-cmdlet'. Luckily we don't have to wait for next releases of PowerGUI or submit feature requests to have that functionality available. Starting with the latest product release, PowerGUI 2.1, we now have the option to extend the Script Editor with our own solutions using the new Script Editor SDK! The Editor SDK allows us to create Add-Ons, add and remove menus and menu items, toolbar buttons, and a lot more. In this post I'm going to create...

PowerShell to the rescue

Sunday, March 7, 2010

A member of my team came in this morning with a scripting request: "If we ran a full backup on all of our servers (fixed disks), how much disk space would they all consume altogether? We need to give the boss a ‘ball-park number’ by the end of the day!" So, how can we get that number? Here’s a quick & dirty version. 1. Get all computers objects (names only). We keep our servers in a dedicated OU in active directory. ...

Modifying multivalued Active Directory attributes

Thursday, February 4, 2010

Updating an attribute value in Active directory is usually not a big deal. Most of the attributes are single valued and you can easily modify them. However, dealing with multi valued attributes is another game. With Quest AD cmdlets you don’t have to pull your hair out, there is special syntax for working with multi valued attributes and you use it via the ObjectAttributes parameter. The syntax is as follows (nested hashtable): Set-QADUser  -Identity <Identity> -ObjectAttributes @{AttributeName=@{KeyName=@(‘value1’,’value2’…)}} AttributeName – The LDAP name of the attribute.KeyName         - The action you want to perform on the attribute value(s). The values @(‘value1’,’value2’…) – An...

And the winners are…

Saturday, December 5, 2009

Quest announced the winners of its PowerPack Challenge 2009. Check out the great PowerPacks submitted by the participants, they are available on You’ll probably find a pack that solves a challenge you face in your environment.   The winners are: Most Active Participant - Adam Murray - IIS7 Powerpack Second Most Active Participant - Shannon Ma - NetPoint PowerPack for Windows Management Best PowerPack - Alan Renouf - Virtu-Al.Net VMware Virtual Infrastructure / vSphere scripts     Honorable Mention:...
no comments

Are you the Ultimate Script Warrior?

Wednesday, October 28, 2009

If your answer is positive then Quest Software’s PowerPack Challenge 2009 is for you. Quest Software is sponsoring this contest where you can test your PowerShell scripting skills and get paid. Just create some cool PowerShell scripts using Quest’s PowerGUI , and then post them to their site. Winners can receive up to $1,000 USD to spend on The event details and rules can be found HERE and on Dmitry’s blog as well, and in this year’s event I’m participating in the contest judges panel :) To create a PowerPack, download PowerGUI , the ultimate scripting tool. Then, show...
no comments

Protecting OU from accidental deletion

Sunday, September 13, 2009

When you create new Organizational Units in Active Directory Users And Computers (ADUC) in Server 2008 (or with RSAT on 2003 domains), ADUC gives you the option to protect the OU from accidental deletion. When this option is selected, ADUC updates the security descriptor of the object and, potentially, its parent, with Deny ACE for the Everyone domain group, which denies all administrators or users of this domain and domain controller the ability to delete this object. Note: This setting does not provide protection against accidental deletion of a subtree that contains the protected object. Therefore, it is recommend...

Mailbox Users Storage limit

Sunday, August 30, 2009

My morning task today includes the following: get all mailboxes (Exchange 2003) larger than X megs where the associated user mailbox storage limits are overriding the settings of the Mailbox store. Storage limit information for user accounts is available in Active Directory Users and Computers on the user ‘Exchange General’ tab (click on ‘Storage Limits’ at the bottom). The ‘Storage Limits’ dialog box specifies the mailbox storage limits for warning or prohibiting a mailbox-enabled user from sending or receiving email. You can also use this dialog box to specify the number of days a deleted item is stored in the...