Friday, May 21, 2010

See Which Services Are Related to a Process

The Windows 7 Task Manager is useful to manage processes and services, check the CPU and networking usage, and shut down stuck programs that don't want to end. While using this tool, you may have noted many svchost.exe processes that act as Host Process for Windows Services. Curious about which services are related to which processes, especially if one is running amok, taking a lot of memory and/or CPU time?

1. In the "Processes" tab of the "Windows Task Manager", right-click a svchost.exe process.

(If you don't know how to access the "Windows Task Manager", right-click an empty area of the Taskbar and select "Start Task Manager".)

2. When the pop-up menu appears, select "Go to Service(s)".



Selecting "Go to Service(s)" for a svchost.exe image




3. The "Services" tab is now selected. Related services are now highlighted.



Viewing services related to a svchost.exe image

Thursday, October 15, 2009

'Free' Win 7 Upgrades Have Fee

The free Windows 7 upgrades that Microsoft has promised buyers of new PCs powered by Vista are not always free, a consumer watchdog Web site says.

"To me, whether it's $12.99 or $17.03, the charges are all outrageous," said Edgar Dworsky, the editor of Consumerworld.org and Mouseprint.org. "It's just a single disc they're sending, and with media mail rates, it costs just over a dollar to mail."

windows 7Last June, Microsoft kicked off a marketing campaign dubbed "Windows 7 Upgrade Option Program" to keep PCs sales ticking. The program, a rerun of a similar deal in 2006 before Windows Vista's launch, gives people who buy a PC equipped with Windows Vista Home Premium, Business or Ultimate a free or nearly-free upgrade to Windows 7 Home Premium, Professional or Ultimate once the new operating system ships Oct. 22.

Consumers who purchase an eligible PC between June 26, 2009 and Jan. 31, 2010 qualify for the upgrade.

Dworsky, however, found that while some computer makers are giving away Windows 7 upgrades, others are charging fees as high as $17 for what's characterized as "shipping, handling, and fulfillment fees."

"The problem is that a lot of this information is hidden, or impossible to find," said Dworsky today. "Disclose it, let the consumer know."

Only one major computer maker, Acer, charges nothing for the upgrade, Dworsky determined after spending hours tracking down information on vendors' Web sites and nagging public relations people to cough up numbers. Other brands -- Dell, Compaq, Hewlett-Packard, Sony and Toshiba -- waive the fee for some users, but not others, with total charges for the latter running from $11.25 to $14.99.

Lenovo, on the other hand, nails every buyer with a $17.03 fee for the Windows 7 upgrade.

The mystery over who pays what is frustrating, said Dworsky. "Both HP and Sony ... [said] that they negotiated with big retail chains offering them the opportunity to allow their customers to receive completely free upgrades," he said. "[But] neither would provide a list of which retailers signed up, nor what retailers had to pay or agree to. And retailers say the manufacturers decided pricing. So they are each pointing fingers at the other. Who's caught in the middle? The consumer."

Dell, which notes on its Web site that "select countries will be offering the upgrade for free," told Dworsky that it would not, in fact, charge U.S. customers.

"Someone seems to be profiting," Dworsky charged. "The fees are way beyond the actual cost to fulfill. It would be different if it's a boxed copy with a manual, but it's not."

Most computer makers have been vague about when customers will receive the Windows 7 upgrade. If history is any hint, it could be months before buyers see it. During a similar promotion in 2007 that provided Vista upgrades to people who purchased an XP PC, users grew increasingly frustrated by delays. A month after Vista's January 2007 launch, for example, Dell and HP customers slammed those vendors for failing to deliver timely upgrades.

"You would think that they'd all do this free," said Dworsky. "Consumers are really doing the computer manufacturers and retailers a favor, helping them get rid of inventory. You'd think they would bend over backwards."

PC Tools File Recover Brings Back Your Files

With that $30 price tag in my mind's eye, I went into my PC Tools File Recover (limited free demo) hands-on thinking that it would be just another over-priced undelete utility. Ten minutes in, I was thinking "By Grabthar's hammer... what a savings!" Most recovery programs that will scan on the sector level, such as Active @ File Recovery and R-studio Data Recovery, will set you back more money.

PC Tools File Recover

PC Tools File Recover performs the same sector-level functions that more expensive recovery programs do.

PC Tools File Recover is easy to use, and it works. It recovered all of the deleted files I threw at it by bulk search, or by specific file name/file type. The program did crash once while attempting to recover a large MPG file, but I was unable to replicate the incident.

File Recover also easily recognized a USB-attached hard drive from a RAID 0/1 array that had been overwritten with two Mac OS partitions--and it found a number of files there. Unfortunately, the vast majority of the files were false positives that restored as zero length entries. To be fair, no program that I'm aware of would do any better, though some will bypass false positives.

My only real problem with PC Tools File Recover came during the recovery stage. There's a button to select all and a button to deselect all, as well as selection by folder and type, however beyond that you're stuck selecting or deselecting files one at a time. You can't hold down the shift or control key and select/deselect groups or batches. Selecting files one at a time could get annoying when you have a lot of them in single directory. Also, although you may pause a scan, there's no way to save it so that you can continue or take action on a scan after closing the program.

PC Tools File Recover looks to be a bargain in my book. As is typical for this sort of program, the demo will find files but not restore them.

Tuesday, September 29, 2009

Windows Vista Secret #1: Open Command Prompt Here

I don't know about your workflow as a developer, but I often find myself switching back and forward between an Explorer window and the command shell. For example, sometimes I'm looking around the filesystem for a project that I created a while back and then I want to build it from the command line or rename some of the files or something.

Here's a trick that I don't think many people are aware of. Right-click on any folder on your Windows Vista machine while holding down the shift key. You'll see an extra context-sensitive menu item there: Open Command Prompt here. Just click on this menu and a command window will open with the current working directory set to the folder's actual location.


Figure: folder context-sensitive menu, with and without the shift key modifier.

In the past there was a Windows XP powertoy that did this; now it's built into the operating system (albeit hidden away to protect the unwary from themselves). What's really cool about this is that if the target folder is a network location, Windows Vista silently maps a network drive to that location before opening the folder (so that your command prompt has a valid path containing a drive letter) and then deletes the network drive once the command prompt is closed.

Windows Vista Secret #2: Copy as Path

Ever wanted to copy a link from a network file share into an email, and wound up having to traverse the path, click on the address bar, copy the details out, paste it in and then type the filename itself (with the appropriate quotation marks?

With Windows Vista, there's an easier way. In the same hidden context-sensitive menu I mentioned in the first secret, there's another helpful shortcut: Copy as Path. Unlike the command prompt trick, this menu item appears both for files and folders, so you can use this anywhere you want to quickly grab a shortcut to send someone else.

Windows Vista Secret #3: Bringing Back Start / Run

The Start menu got a big overhaul in Windows Vista, with a number of significant changes made as a result of usability testing and research. One of the nicest innovations to my mind is the search bar at the bottom, which searches through your programs, document files, emails and anything else for which a search provider is registered; this saves a lot of time hunting around. Want to run Powerpoint without having to browse around the "All Programs" menu? Just type "Powerpoint" in the searchbar. Can't remember which of the myriad dialog boxes and settings you have to go through to find the Device Manager? Just type "device" in the search bar.

Of course, there are times when you may still just want the fast but dumb Run dialog that Windows XP provided:

It seems that some people think we got rid of this altogether, when in fact we just removed it from the default settings since most people won't need it any longer. The quick way to get at it is to use the Win+R shortcut key combination at any time - this is what I tend to use most of the time.

If you want to restore it permanently to your Start menu, here's what you do:

  1. Right-click on the Start menu and choose Properties;
  2. Select the Start Menu tab and click on the Customize... button;
  3. Ensure the "Run command" option is checked.

Now the Start / Run command will be restored to its full glory. Of course, you can swap in and out a bunch of other choices (I like the Administrative Tools to be right there, but I don't much care for Pictures, Games and Music to be top-level items on my work machine.) Here's how I have my default menu configured - you'll see it's also docked to the left-hand side of the screen:

Windows Vista Secret #4: Disabling UAC

If you're a reader of this blog, I'm going to take a low-risk gamble and assert that you probably consider yourself a power user. You pride yourself in the responsibility of having full and absolute control over your machine environment and anything that comes between that perfect human-machine symbiosis is to be spurned. If only there were a way to turn User Account Control off on a Windows Vista machine, you'd upgrade immediately. Well, dear reader, I'm here to help.

Firstly, it's worth a brief digression into the benefits of this feature. Running as admin is a bad thing, as most of us know. Aaron Margosis has blogged extensively on this issue, and I won't rehash it here. But for reasons of compatibility, running as a standard user can still be a somewhat painful proposition. Windows Vista attempts to give you the benefits of both worlds by allowing administrators to execute most processes in the context of a standard user and only elevating the privileges on their user token by consent, in addition to allowing standard user accounts to perform administrative tasks by selectively elevating a process to use administrator-level credentials.

In general, UAC has turned out pretty well. It was pretty intrusive in early builds, prompting often and sometimes capturing focus at the wrong time. For the vast majority of users, UAC will offer a valuable level of security protection that will protect against malware: it simply won't have the rights to perform invasive actions like installing device drivers or services. Once a system is configured, you'll rarely see UAC prompts unless you're an inveterate settings tweaker. Incidentally, you can find out a great deal more about how UAC works, what you need to do to your own applications so that they co-operate well with UAC, and the rationale for its design at the official UAC blog.

It is possible to switch UAC off. I really don't recommend it - if you like full control over your machine, surely you want to know when something is attempting to perform an administrative-level action? Nevertheless, I'd prefer to have you run Windows Vista without UAC than having you run a different operating system.

There are two ways to disable UAC. The easy solution is through Control Panel. Type "UAC" into the search bar at the top of the screen and you'll see this task presented:

This approach is pretty brute-force, though. It just switches the whole thing off. There's a more subtle configuration choice that gives you some of the benefits of UAC without any of the prompting. You'll need to edit the local security policy to control this, as follows:

  1. From the Start search bar, type "Local Security Policy"
  2. Accept the elevation prompt
  3. From the snap-in, select Security Settings -> Local Policy -> Security Options
  4. Scroll down to the bottom, where you'll find nine different group policy settings for granular configuration of UAC.

Perhaps the best choice to select is to change the setting:
User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode
from Prompt for consent to Elevate without prompting.

What does this do? Despite the warning from the Windows Security Center, UAC isn't actually switched off. It's still there, and all your processes will still run as a standard user. To prove this, open a command prompt and try to save a file to the c:\ directory. You'll get an access denied error message. However, when a process is marked for elevation, instead of getting the secure desktop elevation prompt, the request will be silently approved. To show this in action, right click on a command prompt shortcut and choose "Run as Administrator". You'll see the command prompt open without elevation, but the window title will show that you're running with full administrative privileges.

Using this approach is better than nothing, but it's a bit like relying on everyone else having a vaccination against measles to protect yourself from infection. Read the explanations on the second page of the property sheet for each policy setting before tinkering, and be careful!