How to fix the PowerGui error “index was out of range. Must be non-negative…”

I was getting this error whenever I tried to open a PowerShell script by double clicking it. PowerGui is my default PowerShell editor.

The workaround is to empty out the PowerGUI configuration settings and data for the user account under which it fails to start. Making a backup is probably wise.

Navigate to each path below and delete the PowerGui folder.

  • %USERPROFILE%AppDataRoamingQuest Software
  • %USERPROFILE%AppDataLocalQuest Software
You may have to empty your recycle bin as well.

Finding Telnet within Windows 7

If you happen to have a need for some bidirectional, interactive text-oriented communications using a virtual terminal connection when using Windows 7 you may be out of luck… But only briefly. You can quickly re-enable Telnet by following these steps:

–> Start
–> Control Panel
–> Programs And Features
–> Turn Windows features on or off
–> Check Telnet Client
–> OK

After those steps, you can start Telnet via Command Prompt.

Exceptions when installing SharePoint 2010 on Windows 7

If you’re a SharePoint developer you probably sway between using VMs and real hardware. Installing SharePoint 2010 on Windows 7 is actually a pretty easy thing to do so long as you follow the steps methodically. That said it is not always perfect and there are two commonly found bumps when installing on a clean machine. Fortunately their fixes are as easy as one could hope for.

When you run the configuration wizrd you may get the following exceptions. Their resolution is pretty simple.

If you get:

An exception of type System.IO.FileNotFoundException was thrown.  Additional exception information: Could not load file or assembly ‘Microsoft.IdentityModel, Version, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies.  The system cannot find the file specified.

Download and install the Windows Identity Foundation Pack from here:

If you get:

An exception oftype Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: Failed to call GetTypes on assembly Microsoft.Office.Server.Search, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly ‘System.Web.DataVisualition, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find thefile specified.

Download and install Chart Controls from here:

You can get more details here:

Exceptions when installing SharePoint 2010 on Windows 7

AeroWindow 2.0 – Cool Windows 7 style modal popups

AeroWindow is a jQuery plugin for creating Windows 7-like aero style modal pop-ups complete with the minimize, zoom, maximize and close functions. There can be multiple pop-ups in one page where the active one is highlighted visually. All on the screen can be resized, drag’n dropped and maximized with double-clicks.

Grep: using it with Windows

Ever need to search files for that ‘piece’ of text? If you come from a UNIX background and are now on Windows GREP is a lacking tool. I recently tested out a few GREP tools for Windows and was pleased with the results. The one I liked the most, of the few I tried, was Windows Grep.

Windows Grep is a tool for searching files for text strings that you specify. Although Windows and many other programs have file searching capabilities built-in, none can match the power and versatility of Windows Grep.”

It has all the usual nice features, regex, soundex, etc.

There’s a great article on using Grep here.

iPhone OS 3.0

Looks like the field will level. And about time…

Two cool additions to the iPhone that now use HTML5 features:

Safari JavaScript Database Programming

The HTML 5 specification provides a new mechanism for client-side data storage: JavaScript database support. HTML 5 is currently in development by the Web Hypertext Application Technology Working Group (WHATWG).

JavaScript database support is available in Safari 3.1 and later, and in iPhone OS 2.0 and later.

You should read this documentation if you are a web developer who wants to store data locally on a user’s computer in amounts beyond what can reasonably be stored in an HTTP cookie.

HTML5 Application Cache

Michael Nordman of Google asked “Is this stuff built into shipping Safari or iPhone browsers yet?”

David Kilzer replied “This feature shipped with iPhone OS 2.1. When you use “Add to Home Screen” from the “+” button on Safari for iPhone, a web application with a manifest defined (per the HTML5 spec) will be saved with any cached resources. Note that the manifest file *must* be served with the correct MIME type for this to work.

There is no shipping version of Safari for Mac OS X or Windows that supports this feature yet.”

dd: clean your drive securely

Now like anybody I’m a BIG fan of wiping old drives using dd but sometimes there’s a tool out there that will do most if not all of the work for you. Cue DBAN. OR as the site says:

Darik’s Boot and Nuke (“DBAN”) is a self-contained boot disk that securely wipes the hard disks of most computers. DBAN will automatically and completely delete the contents of any hard disk that it can detect, which makes it an appropriate utility for bulk or emergency data destruction.

Complemented with TrueCrypt you will have a mighty secure setup. Possible / definite paranoia issues too… But your data will be secure. For the more command line orientated the old reliable dd if=/dev/urandom of=/dev/disk bs=1k is good enough imho. (It puts random bits in place as opposed to a regular pattern. Not that it will stand up to NSA level scrutiny but it’s more than enough for most data recovery…)

For more go to:


Windows 7: Aka Watch Microsoft Rinse and Repeat the same mistakes

So… the detail is out and it is not impressive for a variety of reasons. If any of you recall a screenshot of a literal plethora of different versions of Windows 7 floating around a while back, you may now smirk and / or groan. Yes, Microsoft have, in my opinion, once again shot themselves in the foot.

The following will be the actual new SKUs for the OS:

  • Windows 7 Starter (limited to three apps concurrently)
  • Windows 7 Home Basic (for emerging markets)
  • Windows 7 Home Premium (adds Aero, Touch, Media Center)
  • Windows 7 Professional (Remote Desktop host, Mobility Center, Presentation mode)
  • Windows 7 Enterprise (volume license only, boot from virtual drive, BitLocker)
  • Windows 7 Ultimate (limited availability, includes everything)

This is verging on idiotic, there is no sane need for so many versions of Windows 7. All that is needed is:

  • Minimum
  • Home Media
  • Enterprise

This is naught short of a cash grab and is not going breed any goodwill. Lead the way or make way still applies. Feel free to call me Microsoft… Or just get out there and read /.