Yet another silly set of Windows tweaks

Dwight Silverman takes a closer look at some XP tweaks that made it to the front page of Digg and says, Don’t Digg that XP tweak. His conclusion bears repeating:

It’s not a great idea to apply random tweaks you spot on the Web to your system, even if you spot them on a high-profile tech site such as Digg. Get a second opinion by doing some searching, and do some research at sites such as XP Myths.

Dwight’s absolutely right. Many so-called Windows tweak sites are filled with misinformation. (See the prefetch myth for a prominent example.) I’m certain the people who pass this stuff along are well-meaning, but they don’t understand the internals of memory management, and so they’re easily misled. They’re convinced that there’s some secret group of Registry settings that can magically improve performance (one Microsoft engineer called this the “make rocket go now” urban legend).

In particular, Dwight wonders whether it’s OK to enable a Registry change to the DisablePagingExecutive setting. Here’s my take:

For the average person, making a chance to the DisablePagingExecutive setting is like trying to perform a lobotomy on yourself with a pair of knitting needles.

What this setting does is to prevent drivers and kernel code from being written to the pagefile. Now, think this through logically. If you’re running so many programs that you exceed the amount of physical memory in your system and you start up a new program or process, the operating system has to move some program code and data out of memory and into the pagefile to make room for the bits you just requested. You could let the OS make intelligent choices about which bits to swap. Or you could constrain it by saying, “Don’t ever swap this type of code out.” If you enable this tweak, you limit the flexibility of the OS and force it to throw something else out, which in this case is one of the other programs you’re running. That increases the delay you’ll encounter when you switch back to the other app.

This setting is provided for use in servers, where administrators run a limited and well-known set of applications and need to debug or tune for performance in a controlled environment. Using it in a workstation is asking for trouble.

In general, I recommend against trying to change the way Windows memory management works. It’s a system. Tweaking one aspect of it runs the risk of destabilizing the entire system. It’s also worth noting that this setting has been around since the Window NT era. Now, Microsoft’s engineers are obsessive about performance. They know that reviewers will put a stopwatch to every new release, and so they tune and tune and tune to get the memory paging system working effectively. If this setting really made a difference in performance, don’t you think it would be enabled already?

If you’re really concerned about performance, the smartest thing you can do is monitor memory usage in your environment. If you’re consistently exceeding the amount of physical RAM in your system, either do less (shut some programs down before running memory-intensive applications) or install more memory.

If the MacOS is so great, why do I need Windows…?

Charlie Owen takes note of the buzz surrounding the Apple Boot Camp announcement and asks the logical question:

If the MacOS is so wonderful why do I need to even consider running Windows?

I can think of a couple of good, non-snarky answers.

Some people genuinely prefer the Mac interface (pick your reason: it’s better looking than Windows XP, it’s more secure, your friends like it). But given the demand to make a binary choice, they pick Windows because the productivity software they want or need is only available for Windows.

If you think the Mac OS is wonderful, but you’re also a gamer, you’ve got no choice but to live in two worlds.

Maybe I don’t think the OS is all that wonderful, but the hardware is slick and stylish. If I don’t care about paying a premium, I might be willing to buy, say, a Mac Mini and run Windows Media Center on it. (Personally, I think the AOpen Mini PC would be a better choice, but hey …)

Welcome, Macsurfer visitors! Be sure to also read these posts:

A better Windows than Windows?

Apple’s Boot Camp is just the start

Dual-boot, no; virtualization, yes

 

Yes, Windows Media Center runs on Intel-based Macs

PC World’s Harry McCracken has some questions about Apple’s new Boot Camp software, which lets Intel-based Macs run Windows XP. Like: “Does Boot Camp let you run Windows Media Center?”

Microsoft’s Sean Alexander has some answers:

MCE (and an unreleased player) are running like champs.  I’m hearing reports of Vista running as well.  Battery life still stinks compared to my sony but hey, this is a desktop replacement riight?

Windows Vista running on Apple hardware? The mind boggles:

Venkman: This city is headed for a disaster of biblical proportions.
Mayor: What do you mean, biblical?
Ray: What he means is Old Testament, Mr. Mayor… real Wrath-of-God-type stuff. Fire and brimstone coming down from the skies.
Venkman: Rivers and seas boiling!
Egon: 40 years of darkness, earthquakes, volcanos.
Winston:The dead rising from the grave!
Venkman: Human sacrifice, dogs and cats, living together… mass hysteria!

PC World also has more details on the new $50 virtualization software from Parallels, which claims to allow Intel-based Macs to run Windows XP, several flavors of Linux, and even OS/2 Warp in a virtual machine without dual-booting.

Update: Screen shots and more info about Parallels Workstation 2.1 Beta for Mac OS X. Because it’s currently in beta, it’s free to use.

Dual-boot, no; virtualization, yes

Over at ZDNet, I’ve got some initial reactions to the announcement that Apple has released a utility called Boot Camp, which lets Intel-based Macs run Windows XP. 

I’m not a big fan of dual-booting, which represents a crude solution to compatibility problems. If you own a Mac, you bought it because you want to use your Mac applications. It’s an enormous hassle to shut everything down and boot into an alien operating system to perform a task that can’t be accomplished in the native environment. And while you’re running Windows on your Mac, you’ve lost all access to your familiar Mac desktop and programs. I’m also skeptical that drivers written for Windows XP will work seamlessly on this unfamiliar hardware platform. When you add it all up, this is a feature that diehard enthusiasts might experiment with, but it won’t be particularly useful in the real world.

[Read more: Apple’s Boot Camp is just the start.]

Among Windows geeks, dual-booting is a Very Big Deal. On one private forum I belong to, I recently got into a heated argument with another member, who was miffed that the latest beta builds of Windows Vista make it difficult to change the labels on the boot menu. (Short version: You have to master the syntax of the Bcdedit command line tool.) He had four separate installations of Windows on a single PC. For an average Windows user, that’s probably three too many.

In my opinion, there are really only two valid reasons to set up multiple versions of Windows on a single PC:

  1. You’re unable to get into your main OS. If a botched hardware install or a system configuration problem locks you out of your normal Windows installation, setting up a clean copy of Windows (ideally on a separate partition) is an essential troubleshooting step. By starting up in the new, clean copy of Windows, you can either fix the original, broken installation or at least get access to your data.
  2. You’re evaluating whether to install a new service pack or upgrade to a new release of Windows. The only sure way you can find out whether your existing hardware and critical applications will work properly is to install them on your hardware. A clean install (again, on a separate partition) lets you test everything without undue risk. You can even clone the existing partition (using Ghost or a similar tool) to test under absolutely identical conditions. After you finish your testing, you decide whether to upgrade or not and blow away the test installation.

So, what if you’re evaluating Windows Vista and you find that you have one or more applications that don’t work properly under the new OS? You could set your system up to dual-boot, but that means every time you want to use that one program you have to shut down everything you’re doing, boot into the other installation, do your work, shut down again, and restart to your regular Windows installation. Ugh.

A much, much, much better solution is to use software that lets you create virtual machines (VMs).

The concept of virtualization is hard to explain, but in essence, what it does is to allow you to use a single physical machine to create one or more environments that look and act just like they were separate physical boxes. The virtualization software is a regular Windows program (you can also find virtualization software for various Linux distributions). When you run the program, you get to define a virtual machine by telling the system how much disk space and RAM to set aside, what kind of network access you want to set up, and so on. You then “boot” the virtual machine using a bootable CD or DVD (or an ISO image file) and install the operating system in the VM. When you’re done, you can go to the window containing the VM and do anything you would do on a physical machine. With a keystroke combination, you can zoom the window to full screen and use the VM as if you had dual-booted. The difference? With another keystroke, you can go right back to your regular OS. No waiting around for your system to shut down and restart, and the Windows Clipboard works between the two environments.

The VM concept has some limitations. Performance is always an issue – VMs almost always run more slowly than physical hardware. In addition, all of the hardware is virtual. That’s an especially important limitation for display adapters. Your copy of Windows running in a VM won’t be able to access your super-fast video adapter, which means that games will run slowly and whizzy effects like Aero Glass won’t work properly. If you want to use Media Center features that depend on hardware such as TV tuners, you’ll probably be out of luck as well. But if you just want to run a program that has compatibility issues on your main OS, a VM is an ideal solution.

I’ve been a very happy VMWare user for some time now. As a technology writer, it’s an indispensable way to test operating systems and software without having to constantly tear apart and rebuild physical machines. I tried using Microsoft’s Virtual PC 2004, but was dissatisfied with its performance and have continued to stick with VMWare.

As I point out in my ZDNet column, Microsoft might actually welcome a virtualization solution that runs on Apple’s Intel-based hardware. Unlike Apple, Microsoft isn’t in the computer hardware business. If someone, anyone, comes up with a virtualization program that allows Windows to run in a virtual machine on an Intel-based Mac, Microsoft gets to sell another copy of Windows and another copy of Office. Think they’re going to complain?

Why doesn’t SyncToy work with Windows Vista?

New rule: Any software Microsoft releases must run on Windows Vista.

You’d think that would be obvious, for a company that has bet the farm on its upcoming upgrade. But apparently some folks haven’t yet gotten the memo. Today’s example is this week’s update to the SyncToy utility:

SyncToy is a free PowerToy for Microsoft Windows XP that provides an easy to use, highly customizable program that helps users to do the heavy lifting involved with the copying, moving, and synchronization of different directories. Most common operations can be performed with just a few clicks of the mouse, and additional customization is available without added complexity. SyncToy can manage multiple sets of folders at the same time; it can combine files from two folders in one case, and mimic renames and deletes in another. Unlike other applications, SyncToy actually keeps track of renames to files and will make sure those changes get carried over to the synchronized folder.

I wrote approvingly about SyncToy when it came out last August. And this release (version 1.2) fixes probably the biggest issue with the original release, which was the inability to use UNC network paths.

But even though this is an unsupported power toy (hosted on Microsoft servers, officially announced via the Microsoft Downloads list), I have to take issue with the team that released it. Why on earth should Microsoft be releasing any utility that doesn’t work with Windows Vista? Yes, I know its official name includes the words “for Windows XP.” But there are plenty of Windows XP-compatible apps that work just fine on Windows Vista. This one doesn’t. And it doesn’t just fail, it fails ugly, with a series of increasingly cryptic error messages that end with the program refusing to run.

Sometime next month, Microsoft is going to release a public beta of Windows Vista that will be installed by hundreds of thousands of people. If they download a six-week-old utility from Microsoft’s website, they should expect it to work. And if Microsoft programmers can’t get it together to think six weeks ahead, how can they expect third-party developers to do so?

Microsoft’s other synchronization utility, FolderShare, works just fine with Vista. Maybe Robert Scoble needs to bring his video camera over to both teams and find out why one group has a clue and the other doesn’t.

Tip of the day: Customize Disk Cleanup tasks

Last week I explained how to schedule the Disk Cleanup utility to perform basic maintenance tasks. But the Disk Cleanup utility can be overkill, and in some cases you might not want it to run through all its options. How can you tell it you just want it to just clean out the Windows Temp folder? The answer is found in some amazingly useful command-line switches that most Windows users know nothing about. (They’re documented in Windows XP Inside Out and in Knowledge Base article 315246, How to Automate the Disk Cleanup Tool in Windows XP.)

To control how the cleanup process works, you need to first know the executable command for the Disk Cleanup utility, cleanmgr.exe. Then you need to learn to use the following switches to modify its behavior:

  • /D driveletter  Runs Disk Cleanup using the drive letter you specify in place of driveletter (for example, type cleanmgr /d c:, to apply the utility to drive C). (This option is ignored if you use the /Sagerun switch.)
  • /Sageset:n  Opens a dialog box that lets you select Disk Cleanup options, creates a registry key that corresponds to the number you entered (where n is an arbitrary number from 0 through 65535), and then saves your settings in that key.
  • /Sagerun:n  Retrieves the saved settings for the number you enter in place of n and then runs Disk Cleanup without requiring any interaction on your part.

To put all the pieces together, follow these steps:

  1. Click Start, Run (or open a Command Prompt window) and type the command cleanmgr /sageset:200. (This number is completely arbitrary; you can choose any number from 0 through 65535.)
  2. In the Disk Cleanup Settings dialog box, choose the options you want to apply whenever you use these settings. In this example, I’ve cleared all the check boxes except the one in front of Temporary files.

    Cleanmgr

  3. Click OK to save your changes in the registry.
  4. Create a shortcut that uses the command cleanmgr /sagerun:200. Save the shortcut in the Windows folder using a descriptive name – Clean Temp Files, for instance.
  5. Open Control Panel’s Scheduled Tasks folder and start the Add Scheduled Task Wizard. When prompted to select the program you want Windows to run, click Browse and select the shortcut you just created. Follow the wizard’s remaining prompts to schedule the command to run at regular intervals.
  6. Repeat steps 1–5 for other Disk Cleanup options you want to automate.

That’s it. As long as the Task Scheduler service is running, your cleanup chores will be handled automatically on the schedule you specified.

Tip of the day: Schedule routine maintenance

Last week, I showed how to clean out your Windows Temp folder properly.

Today’s tip is a follow-up to that item, showing how you can schedule some routine maintenance chores to be performed automatically.

The secret is buried in the Scheduled Tasks folder, which you can find in Control Panel. (It’s in the Performance and Maintenance group, if you use the Category view of Control Panel.)

Open the Scheduled Tasks folder and double-click Add Scheduled Task. This launches the Scheduled Task Wizard, which walks you through the process of creating a new task. After you get past the opening screen, you’ll see a list of available programs on your PC. Select the Disk Cleanup entry and click Next.

Enter a name for the task (the default should work just fine in this case) and specify how often you want the task to run – daily, weekly, etc. The next secreen in the wizard varies, depending on the option you choose. This screen, for instance, shows a task that has been scheduled to run once a week – at 2:30 AM every Monday.

In the next screen, enter the user name and password of the account whose credentials you want the task to use. This data (which is saved in encrypted format) allows a scheduled task to run even if you’re not logged on. It also allows a task that requires administrative privileges to run when a user with a limited account is logged on.

Finish the wizard to save the scheduled task.

Follow-up: I’ve put together instructions to help you customize the Disk Cleanup task so it performs only the options you want it to run.

Tip of the day: Find out whether you have an OEM copy of Windows

In the comments to a post entitled Everything you always wanted to know about Windows Product Activation, Tim asks:

How do you tell if a product has an OEM vs Retail install? … I have some integrated computers I am responsible for and when I call tech support, they sometimes ask which version of XP/2000 I am running, OEM or Retail.  I got thrown into this and the last guy didn’t keep up with things very well…any help is appreciated!

It’s easy to tell once you know where to look. Right-click the My Computer icon and choose Properties. (You can reach the same destination by starting in Control Panel and double-clicking System.) On the General tab of the System Properties dialog box, under the “Registered to” heading, you’ll see a product ID, which is divided into four groups of characters separated by hyphens. On an OEM installation, the second group of characters is always OEM; on a retail installation, you’ll see three numbers in this group.

That might be your only OEM fingerprint on a computer built in-house or by a “white box” system maker. But for systems from larger PC makers, including the so-called royalty OEMs, you should also see a product logo and the words “Manufactured and supported by” followed by the name of the company that built the PC. Here’s an example:

Oem_properties

One other piece of advice: If you’ve inherited a group of computers and don’t have a handy index to identify the product ID required to reactivate each one, use the wonderful Keyfinder utility to dig out Windows and Office keys, which you can copy to a database or print out and save for future reference. I first wrote about Keyfinder back in December 2002, and it’s still one of my most popular pages.

Tip of the day: Clean out your Windows Temp folder properly

Excel whiz John Walkenbach inspired today’s tip with this post:

I haven’t looked at my Windows \temp directory in a long time. I used to be pretty good about keeping it cleaned out, but I’ve ignored it lately. I just looked at it and found that it contains

  • 4,272 files
  • 95 folders
  • 721Mb

Yikes! Shouldn’t this stuff should be deleted by the apps that placed them there?

Well, yes and no. I just checked this system and discovered 95MB of disk space in use by 496 files and 103 folders, most of them empty. The entire collection dates back about 60 days, which must be the last time I cleaned out temp files.

Some of those files were ones I created or downloaded. (Putting them in the Temp folder is the best way of dealing with files you are positive you won’t want to keep.) When I play a media file directly from a browser or view a Word document or PDF page in the browser window, the downloaded WMV or DOC or PDF file is saved in my Temp folder. Microsoft Office creates a bunch of temp files as it works to keep track of changes and enable its automatic recovery features. I don’t bother deleting these files manually after I’m done, and I don’t expect any program to aggressively clean them up either. The whole idea of the Temp folder is to serve as a junk drawer for files, and any program that puts a file there should assume it’ll get tossed out with the trash sooner rather than later when I empty the Temp folder.

Here are three ways to do just that:

  • The hard way: delete files manually using Windows Explorer. As J-Walk discovered, Explorer quits abruptly as soon as you encounter a file that’s in use – and at least on my computer the Temp folder is usually filled with a dozen or more files in use. To avoid hitting one of those files, display the folder’s contents in Details view and then sort by date. That way you can delete files in groups. Select the oldest files and delete them, then select a newer group of files and delete those, until you get to a group that includes some files in use. At that point you can stop. You’ve probably cleaned out all that you can do.
  • The easier way: Use the Disk Cleanup Wizard. Click Start, All Programs, Accessories, System Tools, Disk Cleanup. Pick a drive, click OK, and wait for the quick analysis. Click OK again, and you’ll empty the Recycle Bin, clear out Internet Explorer’s cache, and empty all files from the Temp folder that are more than a week old.
  • Disk Cleanup wizard

  • The really easy way: Create a Scheduled Task to have your system clean out your Temp folder and perform other cleanup chores automatically. If you poke around in the Scheduled Tasks folder, you’ll see that this option is available with a wizard’s help.

To learn how you can schedule this bit of routine maintenance to run once a week (or on any schedule you prefer), see this tip.