Some PowerShell to find all the VMs in an ESX environment which are powered on and running Windows XP or Server 2003.
In my VMware ESX environment I have a number of virtual machines still running Windows XP or Server 2003- usually performing very specific tasks or allowing access to legacy applications, but still part of the production environment. With the recent End of Support for Windows XP and the upcoming one next year for Server 2003 I need to look at each of these VMs and see if they can be upgraded or decommissioned. Listing these in the GUI is fiddly at best- I want VMs with one of these two OSes, from any datacentre and I only care about VMs which are powered on. So, PowerCLI to the rescue:
.PowerState -eq "PoweredOn" -and
.Guest -like "*Windows XP*" -or $_
.Guest -like "*Server 2003*")} |
MyServer1 Microsoft Windows Server 2003 Standard (32-bit)
MyServer2 Microsoft Windows Server 2003 Standard (32-bit)
MyServer3 Microsoft Windows Server 2003 Standard (32-bit)
MyXPVM1 Microsoft Windows XP Professional (32-bit)
MyXPVM2 Microsoft Windows XP Professional (32-bit)
Not the most complicated piece of scripting, but it’s answered my question and I can refer back to it as upgrades continue to see what systems remain.
I opened IE this morning (this machine is IE7 on Windows XP) and nearly all the text on every page was in italic. Now assuming that various companies including Microsoft, Google, and my employer hadn’t suddenly decided that italics was the new marquee I decided the fault was probably localised to my computer.
The solution turned out to be in the fonts. Continue reading
In Windows XP, the Scheduled Tasks system only offers the choice of “Daily”, “Weekly”, “Monthly”, “Once” or when the computer starts or the user logs on. It’s possible, however, to schedule tasks to occur much more frequently, for example every 15 minutes.
One of those UNIX commands that is oh-so-useful when working from the command line is “du” or disk usage. This command calculates the total size of all the files and subfolders within a folder.
Sysinternals have a Windows version available here- http://technet.microsoft.com/en-gb/sysinternals/bb896651.aspx
By default on a Windows XP pressing the Shift Key 5 times in a row turns on StickyKeys and brings up the warning dialog. In normal operation this doesn’t happen very often, but if you’re bashing someone with your rifle in Call of Duty it can pull you out of the game to show this dialog.
Normally you click on the proffered Settings button on the warning dialog and you can disable this feature. However on some configurations clicking on the Settings button does nothing. Continue reading