Saturday, July 24, 2010

Google Website Backup

Google offers a lot of things, and I mean a lot, but this isn't really one of them. And yet, in a fashion they do.

A good friend of mine recently lost a rather good blog post due to a server issue (it was on a Linux box, so I'm not sure how that could ever happen ;^) and there wasn't a backup.

In a moment of brilliance (or just a misfiring synapse) I suggested he do a Google search for his lost post and see if they had a cached version of it. And low and behold, they did, crisis averted. If I could come up with great ideas like this more often, having a job would be unnecessary :)

Tuesday, June 22, 2010

Eee PC 2.00 GB (767 MB usable)

Today there was a curious case where someone's Windows 7 Eee PC had 2 GB of RAM, which the operating system was aware of, but only listed as 767 MB available for use.

It turns out that if the Boot Booster is enabled in the BIOS, it limits the amount of usable RAM. To fix this, press F2 during boot-up, go to the Boot menu, use the arrow keys to highlight Boot Booster and press Enter to change it to Disabled. Next press F10 to save, then reboot and you are done.

Note: You may still only have 1.75 GB usable, but that can be blamed on the leeching onboard video.

Sunday, June 13, 2010

Script Samples

There are times when I spent an inordinate amount of time looking for just the right syntax for a command or even the correct command to get the job done. Here are four I put to use in the last few months...

Change Printer Spooler Service Recovery options to Restart
sc failure spooler reset= 60 actions= restart/600/restart/600/restart/600

Backing up an MSDE Database
osql -E -Q "BACKUP DATABASE mdss TO DISK= 'C:\BB_DB_Backup\mdss.bak'"

Copy Database and then Appending with Date
copy t:\plandata.mdb C:\PlanDataBackup /Y

For /F "Tokens=1-8 Delims=.:/ " %%a In ('Echo %Date%') Do (Set All=%%d-%%b-%%c)
@For %%a in ("plandata.mdb") do rename %%a "%%~na-%All%.mdb"

Deleting Old OWA Logs
forfiles -p "C:\inetpub\logs\LogFiles\W3SVC1" -c "cmd /c echo del \"@FILE\" & del \"@FILE\"" -d -21

Sunday, May 16, 2010

What's in my backpack?

Every time I'm heading out the door, I throw a heavy backpack over my shoulder and drop it into my car with a thud.

What's in this bag I lug around to each client? Of course there's my HP tc4400 Tablet PC and battery charger, but there's a whole lot more, in no particular order:

  • Small TechNet binder (Contents will be another post).

  • An assortment of small screwdrivers for laptops and PCs alike

  • Cables: 7' Ethernet, Cisco serial, USB to PS2 converter, USB to serial, iPhone charger

  • 160 external hard drive, USB (for moving files and dumping images)

  • Leatherman

  • A small handful of unlabeled customer access badges and keys

  • Three USB thumbdrives (1GB, 2GB (BitLockered) and 32GB)

  • Small metal business card holder

  • Sharpie and blue pen

  • Tape measure

Friday, April 16, 2010

How Big are those Mailboxes

One thing I truly miss about Exchange 2003 is the list of mailbox sizes that were easily accessible in the GUI. But things must move on and the display in the Exchange Management Console for both 2007 and 2010 lack the ability to populate and view this information.

Exchange Management Shell to the rescue! If you enter just the basic Get-MailboxStatistics command it will be sorely lacking (and the sizes will be in KB). The command below will get Exchange to cough up a full list and friendlier MB display suitable for analyzing in Excel.

Open Exchange Management Shell and run the following:
Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=”TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount

Sunday, March 28, 2010

HP tc4400 and Windows 7 Boot Failure

I've been using an HP tc4400 Tablet PC with Windows Vista for quite some time now and thought it was about time I started using Windows 7 for work and not just home.

Don't get me wrong, I do like Vista (I think I may be only one of eight people), but as an IT professional I should be using the latest operating system.

So I got started with swapping out the hard drive to start with a fresh install (always the best way to go), and tossed in the install DVD. The install went flawlessly and I followed with Windows Update, as one always should. Upon rebooting the system, it failed to start.

What followed was a large pain in the posterior: After attempting to do a System Restore (it failed, of course), I reinstalled. This time during Windows Update, I deselected some of the likely updates that may have caused the boot failure issue, same result. This process went on five times before I found the (in)correct update:Intel Corp - Display - Mobile Intel(R) 945 Express Chipset Family 16.6MB. Not surprising that it's a video driver, since those are typically the drivers that will hose a Windows system most often (rather embarrassed it took five tries to find out the obvious). Anyway, the update was released in September, 2009 and is one version behind what is available on the Intel website.

Once I skipped the Windows Update version of the driver and installed latest display driver from Intel, I was in business, actually Windows 7 Professional (can't MS marketing decide on a consistent nomenclature?).

Tuesday, March 2, 2010

Free PowerShell Editor

Yesterday I began to really dive into a new user script (which uses Exchange Management Shell) to bring it up to date and include more fields and features. As the script complexity grew, Notepad was no longer cutting the mustard.

I thought I'd be using Notepad++ or TextPad, both fine in their own right, but instead found PowerGUI. This PowerShell editor which finds syntax errors, includes definitions and much more; all for the low, low price of free. This seems to be a community supported by Quest Software who has a bunch of fine (not so free) tools for SysAdmins.

I'm now able to work on, and run, the script off network (read: at home). It's a helluva deal for the price, try PowerGUI for your next PowerShell outing.