Category: Tips Tricks and Tweaks

Jul 23 2009

How To Control Disk Thrash From ccmexec.exe (SMS Agent).

Today started like any other day at work. I sat down, logged into my PC and was greeted by the thrashing sound of my hard drive. I’ve come to realize that the bottleneck in my work PC is by far the hard drive. I don’t need any bench marking software, I simple try to access a file or two. Sometimes, I simply open windows explorer and wait.

I finally got so disgusted I fired up procman and dug through the activity to find the culprit.

I had to scroll down to the bottom of a couple thousand lines of activity before I saw a clear pattern, but lo and behold what I saw was incredible!

There were literally thousands of disk writes to my pagefile - and all I had done was log in!

The bizarre part was that the files being read and written to the swap file were files I was not touching.

I saw that the process performing all this thrashing was something called “ccmexec.exe”. I’d actually never heard of this process, but after some quick googling I discovered its the exe for the SMS Agent service.

This service (the  Systems Management Server service) performs an indexing or cataloging of all the files on the disk so that windows update will have the latest info on versions of OS files that may need patching. Sounds great, but I’m not sure it’s worth the cost considering the downtime and aggravation I experience waiting for this thing to chew through my 150GB drive.

My first instinct was to disable the service in the services control panel applet, but I figured that the corporate IT staff would eventually get a tad upset when they realized my system didn’t have the latest patches installed because I disabled the service.

So, I was faced with my own kobayashi maru scenario : I was ineffective while this thing chewed threw my file system, but I couldn’t disable the service without sending up corporate red flags that I was a bad citizen.

Then I hit on a solution - a scheduled task to ensure the service did run, just not when I was busy working. I actually used two batch files, one for each task of starting and stopping the service.

Open up notepad (or your text editor of choice), and type the following:

net start CcmExec

save the file as “SMS Agent start.bat”

Now, start a new text file and enter:

net stop CcmExec

save the file as “SMS Agent stop.bat”

Note: you can also replace “net” with “sc”, to use the newer Service Control manager command line tool.

Then, set the startup type of the SMS Agent Host service to “Manual” in the services control panel applet.

sms-svc

Next, create a scheduled task to run after hours that runs the “SMS Agent start.bat” file, and another task that runs the  “SMS Agent stop.bat” before you get into the office.

sms-scheduler

The best of both worlds - you remain productive and a good corporate citizen (after hours)!

Blog Traffic Exchange Related Posts Blog Traffic Exchange Related Websites
  • How to Catch Ling Cod If you have never heard of the Ling Cod before, this is a fun fish to try to catch that can be found anywhere along the California coast, as far south as Baja. This is a popular fish that gives a lot of sport and the size is well worth......
  • More Tips for Serving Here are some more useful tennis tips for improving your serving game. If you want to make improvements in your ability to serve, these tips will prove useful. Tip #1: Be a little off center after your serve. When you are serving wide to your opponent in order to......
  • Possibly no filing extension for me this year Won't guarantee that yet, but there's a chance! If procrastination kills, I should have been dead a long time ago. ;) Fortunately my family, business associates, and friends have been very helpful. They've tracked down checks, organized donations, reproduced bank statements, and even offered to help with partnership returns (I'll......
  • How to Land a Prize Sturgeon Sturgeon are among the most sought after species of fish in the world and they require a great deal of skill to land. People spend their entire lives perfecting the art of landing a sturgeon. However, there are some easy tips that you can use to increase your chances of......
  • How to Soundproof a Room Whether you live by a busy road, you just had a new baby or your children have discovered the wonders of musical instruments, soundproofing a room has many benefits. Commonly, bedrooms are the rooms where soundproofing brings the most benefit, but literally any room can be soundproofed. It’s easier than......
Jul 07 2009

Dude, Where’s my Folder treeview?!

After a wee bit O’ overzealous registry cleaning last week, I had a minor panic. Well, a picture being worth a 1000 words, here’s what I saw when I opened windows explorer:

dude-missing-folder-treeview

The good news (I suppose) is that I knew the instant I hit the Delete key that I had selected the wrong key. The bad news was that I had no way of finding out what key that was.

So, I did some Googling for various permutations of “missing windows explorer folder treeview” and eventually stumble upon the following registry edit:

REGEDIT4

[HKEY_CLASSES_ROOT\CLSID\{EFA24E64-B078-11d0-89E4-00C04FC9E26E}]
@=”Explorer Band”

[HKEY_CLASSES_ROOT\CLSID\{EFA24E64-B078-11d0-89E4-00C04FC9E26E}\InProcServer32]
@=”C:\\WINNT\\SYSTEM32\\SHDOCVW.DLL”
“ThreadingModel”=”Apartment”

[HKEY_CLASSES_ROOT\CLSID\{EFA24E64-B078-11d0-89E4-00C04FC9E26E}\Implemented Categories]

[HKEY_CLASSES_ROOT\CLSID\{EFA24E64-B078-11d0-89E4-00C04FC9E26E}\Implemented Categories\{00021493-0000-0000-C000-000000000046}]

I saved that to a new notepad document, saved it with an “.reg” extension and double-clicked it. Voila, my missing treeview returned!

dude-missing-folder-treeview-after

It sure beats reinstalling the OS for something so simple.

Blog Traffic Exchange Related Posts Blog Traffic Exchange Related Websites
  • Tips to Improve Your Short Game For many golfers, the short game is the spot where an entirely terrific round of golf can go completely downhill. While some may find the short game the easy part of golf, the vast majority usually find that this is a definite trouble spot. There are quite a few things......
  • Chrome Compared With Explorer Google in the browser space with its Mars 'Chrome'! I was pleasantly surprised that almost immediately after starting a download link for Google Chrome appears on the search site Google, which is my home page my default Internet Explorer 8 (IE8) browser . Without hesitating how to link to my......
  • Ground Strokes Guide pt 2 Continued from part one. 3 - Standing Sideways Whenever it is possible to do so, you should play your ground strokes from a hitting position that has you standing sideways. You should be standing as if you are a write handed batter if you are hitting a forehand shot, or......
  • 4 Weight Loss Tips and Tricks The following weight loss tips and tricks are designed to help you lose weight more effectively and more efficiently than ever before. Following these weight loss tips and tricks is going to have a profound impact on your ability to lose weight quickly and healthfully. 1 - Find a weight......
  • 6 Tennis Tips and Tricks Tennis tips and tricks are like small tweaks that you can make to your game in order to improve your play. If you are looking for a way to improve your capabilities as a tennis player, consider these tennis tips and tricks and then move on to look at other......
Jun 25 2009

Annoying “next message” behavior in Thunderbird, and how to stop it!

I love the Thunderbird email client. I use the portable version on my thumb drive, but one thing has always bugged the hell out of me when I use it: whenever I delete an email that I have opened in a popup window, Thunderbird automatically opens the next message. Most of the quasi-official entries on the forums state that this is the default behavior, and how 90% of email users use the app anyway, so there is no simple check box for disabling the “feature”.

I must be an odd duck then, because it is most certainly not how I use my email client. I distinctly remember disabling the annoying feature in older versions of Outlook Express. Well, I am the type who will not be denied. I go through great pains to get around such roadblocks - out of principle alone!

So I went digging and found many dead ends, and tips & tricks pages that proved to be unrelated. A lot of forums suggest things like adding the delete button to the toolbar, but that only works if you delete it from the main window. I want to read the email first, then delete it. Reading, closing (clicking the “X”) then deleting seems more tedious than necessary.

Then I found this handy add-on. Only one problem: it was for pre 2.0 versions of Thunderbird. The solution: How to hack the add-on to make it work in 2.0+.

Open the install.rdf file, and locate the MaxVersion key:

annoying-next-message-behavior-in-thunderbird_unselect-message-thunderbird-add-on-install_before

Then change the 1.6 to 2.1, like so:

annoying-next-message-behavior-in-thunderbird_unselect-message-thunderbird-add-on-install_after

and voila!

Sweet!

It’s worked great ever since, and I no longer curse Thunderbird. For automatically advancing to the next message, anyway. ;-)

Blog Traffic Exchange Related Posts Blog Traffic Exchange Related Websites
  • Solaris Tips and Tricks Find a list of Tips and Tricks here.A nice trick to list the process which has opened a particular port is : #!/bin/ksh## 7-30-2003# find from a port the pid that started the port#line='-------------------------------------------------------------------------'pids=`/usr/bin/ps -ef | sed 1d | awk '{print $2}'`# Prompt users or use 1st cmdline argumentif [......
  • Wordpress Desktop Client for Mac I spend a good bit of my time writing content for my various websites. Logging into each separate Wordpress or Joomla instance can be time consuming and annoying - as good as web interfaces have become they are still no where near as responsive as a good desktop app. Being......
  • 13 Quick Tips for Better Tennis There are a lot of tennis tips and tricks floating around out there, but many are complicated and complex, and not at all easy for you to implement on your own without a dedicated trainer to walk you through them. The following article is designed to go over some quick......
  • Becoming an Internet Entrepreneur - Tips and Tricks To get you fast-tracked, we have included a vast selection of tips and tricks to make your online business a success that it deserves to be.1) First of all, choose a domain name that is somehow related to the business you are in. For example, if you are looking......
  • Basic Google SEO Optimization Tips and Tricks Basic Google SEO Optimization Tips and Tricks By Alwin Clores Basic Explanation: Search Engine Optimization or mostly called SEO is one of the component of Search Engine Marketing, this is the process of Search Engine Ranking to appear in high position when visitors or users conduct a search in specific......
Jun 11 2009

How to find what’s running under SVCHost.exe

My PC was behaving sluggishly the other day. I tried to be patient, but had to fire up the task manager when I could bear it no longer. That’s when I noticed great gobs of my swap file allocated to “SVCHOST.EXE”:

whats-running-under-svchost_exe_tasklist-ss

The problem is, SVCHOST is a catch all windows service container. Meaning, many windows services run under the same instance of SVCHOST. How was I going to figure out which services might be the culprit?

Enter the tasklist command.

Tasklist displays info about running tasks, including SVCHOST.

Simply running tasklist at the command prompt displays a laundry list of all running processes. This wasn’t going to do it, so I ran it with the “/?” switch to try and find how to narrow the info…

/SVC Displays services hosted in each process.
/FI filter Displays a set of tasks that match a given criteria specified by the filter.

Looks good so far, now I need to know what filter to apply:

Filters:
    Filter Name     Valid Operators           Valid Value(s)
    -----------     ---------------           --------------------------
    IMAGENAME       eq, ne                    Image name

OK, this gives us:

“C:\>tasklist /svc /FI “IMAGENAME EQ SCVHOST.EXE”

But it seems the filter is case sensitive, because when I run that command, I get this:

INFO: No tasks are running which match the specified criteria.

So, switching to lower case gives me what I want:

“C:\>tasklist /svc /FI “IMAGENAME EQ svchost.exe”

Image Name     PID        Services
=========== =====  =======================
svchost.exe     744        DcomLaunch
svchost.exe     844        RpcSs
svchost.exe     888        AeLookupSvc, AppMgmt,
                                    AudioSrv, BITS, Browser,
                                    CryptSvc, dmserver,
                                    EventSystem,lanmanserver,
                                    lanmanworkstation, Netman,
                                    Nla, RasMan, Schedule,
                                    seclogon, SENS,ShellHWDetection,
                                    Themes, winmgmt, wuauserv
svchost.exe     928         Dhcp, Dnscache
svchost.exe     976         LmHosts, W32Time
svchost.exe     1772       Net Driver HPZ12
svchost.exe     1816       Pml Driver HPZ12
svchost.exe     2424       TermService
svchost.exe     3312       TapiSrv
svchost.exe     2688       W3SVC

From there, it’s just a matter of shutting down or restarting each of the services listed under the process id 888 ( I got this from taskmanager).

Blog Traffic Exchange Related Posts Blog Traffic Exchange Related Websites
  • The Unmatched Windows XP Broadband - Cable Tweaks Guide Does your connection crawl? I bet it does buddy, just try these few simple tweaks, lets get you fixed today. The following tweaks and modifications are the ones I personally perform to my Cable connection after fresh installing windows.Note-This Guide works with DSL and Cable Connections!The first thing I......
  • The Movers Will Help You To Relocate The relocation has always been a hard chaotic task which would be worse if you do not have enough time for it. The tedious work of packing your precious goods and making sure that they are carefully moved would become a head pain for everyone. In addition, if you should......
  • Review Me This is a "Sponsored Post" for the Review Me website. What a great idea for a creating a win-win situation for promoting a service or website reviews used as an promotional tool where you bring advertisers and bloggers together by giving them both a place to share their thoughts critiques about each other......
  • Top 10 - SEO Do's & Don'ts SEO Do's Create a Useful, Content-Rich Website Properly Optimize Your Website Pages Have Relevant Websites Link to Your Website Analyze and Understand Your Website Statistics Revise Optimization Based on Feedback Create a Long-Term Content Strategy or Plan Do Learn Patience, Search Engine Success Takes Time Understand What Will and Will......
  • Toshiba TG01 – What More One Can Expect? The perfect way for describing the new Toshiba TG01 will be “beyond expectations”. The three most important things to be noticed about this marvelous piece of technology are the fact that, it has the largest screen in the industry at 4.1 inches, has the fastest processor in the form of......
Jun 04 2009

How to Delete Empty Folders - FREE!

While performing a disk cleanup recently, I had cause to locate and delete any empty folders under a root folder. I knew there had to be a batch file command to accomplish this, but I couldn’t for the life of me remember what it was!

Enter Google.

five minutes of some keyword searching with surgical precision and piecing together commands yielded my solution.

DIR /AD/B/S | SORT > FOLDERLIST.BAT

How It Works.

The Dir command is the familiar directory list command that comes standard with all versions of Windows since 95. The magic is in the switches:

/A Displays files with specified attributes.
When applied to the “D” attribute, it returns directories
/B Uses bare format (no heading information or summary).
/S Displays files in specified directory and all subdirectories.

SORT is an often overlooked command for, you guessed it, sorting. Here, the results of the Dir command are piped (”|”) into the SORT command as input. The result of the SORT command is then redirected from the command prompt to a file called FOLDERLIST.BAT.

Kick it up a notch.

Now that you’ve created this list, say you want to automate the deletion of each entry in the list. This is where pumping the output to a “.bat” file comes in. Open the bat file in textpad, or notepad, or your text editor

For example:

Typing:
DIR /AD/B/S | SORT > FOLDERLIST.BAT

in my C:\Program Files\Microsoft Visual Studio 8\VC folder yields the following results:

empty-file-results

Next, open the file in a text editor, word, or open office and replace the beginning of each line with the RD command followed by a space and a single quote. Like so:

empty-file-replace

This should give you the following:

empty-file-first-replace

Notice how each line now begins with “RD “” This is the old DOS Remove Directory command. Don’t worry, it only removes empty directories. But you still need to add an ending quote to each line. This is where Word or Open Office is handy. You can do another search and replace, but this time search for “^p” (new paragraph) and replace with ““^p” (end quote and new paragraph).

Save the file, and you’re all done except the double clicking.

Blog Traffic Exchange Related Posts Blog Traffic Exchange Related Websites
  • Weight Loss Tips and Tricks When it comes to losing weight, you probably know the drill. Burn more calories than you consume, eat healthy, and be healthy and the results will happen. Most diets and weight loss plans do not have much substance which is why dieting in general is far from healthy for you.......
  • Useless use of cat awards Here you will find some useless use of cat command in linux. Really interesting and quite informative. Useless Use of Cat Award If you've been reading comp.unix.shell or any of the related groups (comp.unix.questions inter alia) for any amount of time, this should be a familiar topic. I made this......
  • Wordpress Backup Wordpress Backup is an essential plugin for all Wordpress blog administrators by the Blog Traffic Exchange. It performs regular backups of your upload (images) current theme, and plugin directories. Backup files are available for download and optionally emailed to a specified email. Don't get caught without a recent backup of......
  • Anti Aging Makeup Tricks and Tips pt 1 There are all kinds of makeup tricks and tips out there, but choosing the right ones for your own personal needs is something that you need to figure out. Here are some unique makeup tricks and tips that are anti-aging in nature. What I meant to say is that there......
  • Solaris one liners http://www.unixguide.net/sun/sunoneliners.shtml Unix/Solaris: One-Liners Source: http://www.kevlo.com/~ebs/unix_commands.txt Listed here are a bunch of unix commands. --> change file date stamp touch –t 199906042020 filename --> move partitions ufsdump 0f - /dev/rdsk/c0t0s0s0 | (cd /home; ufsrestore xv -) --> lay down file system with 1% minfree and inode density newfs –m1 –i81920 /dev/rdsk/c0t0d0s0......