Windows Explored

Everyday Windows Desktop Support, Advanced Troubleshooting & Other OS Tidbits

Archive for the ‘Inside Windows’ Category

Attach A Task To A Windows Event

Posted by William Diaz on September 7, 2011


I often find myself needing to track events on various user workstations when some operation takes places that triggers a specific event. In XP, this required that you be proactive and periodically check the Event Viewer logs or wait for the user to reply if they encountered the issue you are tracking. Keeping track of this across several workstations can be a little overwhelming, especially if you are tracking different issues.

A new feature of the Windows Vista and 7 Event Viewer is the ability to be notified of a specific event. To do this: Read the rest of this entry »

Posted in Inside Windows | Tagged: | Leave a Comment »

Get the XP Event Viewer in Windows Vista\7

Posted by William Diaz on September 7, 2011


For the Windows minimalists, the classic XP style Event Viewer can be found in Windows Vista\7. To enable it, run an elevated command prompt and type regsvr32 els.dll. Now open the MMC and from File > Add/Remove Snap-in select Classic Event Viewer: Read the rest of this entry »

Posted in Inside Windows | Leave a Comment »

Printing Directory & File Lists In Windows 7

Posted by William Diaz on September 1, 2011


There is no native built-in way (still) in Windows to print a list of files displayed in Windows Explorer from Windows Explorer. For occasional use, though, there is a command line method which utilizes the DIR command and piping the results to a text file. To do this:

  • Open the command shell
  • Navigate to the directory you want to print a list of using the cd\ path command
  • Then use the Dir >listing.txt to pipe the results to a file
  • The file can be found in the directory you where the command was run
  • If access is denied, you will need to run the command shell with elevated rights, even if you are already an administrator

If you have user that is going to need to do this frequently, you can need to create a context menu option, which can be used for any folder, on the desktop or Explorer. If you had done this previously in Windows XP, the method is slightly different, since in Windows 7 you do not have the File Types tab available in the Folder Options menu of Explorer.

There is a Microsoft KB article on how to perform this for both operating systems, but the Windows 7 method does not seem to work as advertised … for me at least. I have modified the bat file so that directory list remains open in Notepad so it can be quickly printed in addition to creating a listing.txt file in %temp%.

The steps for doing this involve: Read the rest of this entry »

Posted in Inside Windows | Tagged: | 1 Comment »

Registry Tips & Tricks

Posted by William Diaz on September 1, 2011


Opening multiple instances of the registry

I often find myself needing to compare registry data between different workstations using the remote registry but you cannot simply run regedit.exe more than once to open multiple regedit windows. To work around this, run regedit –m or /m to your heart’s content to open multiple registry edit windows.

Connect to the registry of another computer or an online user

You probably already know this one. In case you don’t, File > Connect Network Registry. You won’t see the same hive you do on the local computer and there is no HKCU. Not to worry, HKCU is a subkey of HKEY_USERS. It contains the active profile on the remote computer. The profile name is based on its security identifier, or SID, e.g. S-1-5-21-156…
Read the rest of this entry »

Posted in Inside Windows, Troubleshooting | Leave a Comment »

Making Sense of Memory Metrics in the Windows 7 Task Manager

Posted by William Diaz on August 1, 2011


In an earlier blog, I covered memory metrics in the Windows XP Performance tab. Here, I’ll be covering this in Windows 7. Read the rest of this entry »

Posted in Inside Windows | Tagged: | Leave a Comment »

Running the System File Checker From A Network Share

Posted by William Diaz on July 1, 2011


I recently found myself needing to run the Microsoft Windows System File Checker on a workstation. If you don’t already know, the default behavior is to “Insert your Windows XP Professional Service Pack 3 CD now” if that is how the operating system was installed or imaged.
image
To workaround this, create a drive mapping to the network share that contains the XP installation files, e.g. \\xx-fs1\Setups\Microsoft\Windows\Windows XP\32 Bit\SP\SP3\i386. Afterwards, go into the registry and navigate to HKLM\Software\Microsoft\Windows\CurrentVersion\Setups and edit the SourcePath & ServicePackSourcePath to the new network drive:
image

Posted in Inside Windows | Leave a Comment »

Inside Windows – Rundll32.exe

Posted by William Diaz on July 1, 2011


In an earlier blog, I spoke about Windows services and how they are hosted by svchost.exe so that functionality within these dll files can be executed. But what about non-Windows services? How do they execute functions within dynamic link libraries without the need to execute the program that it belongs to? By using the rundll32.exe process (commonly described as Run DLL as an App). An example can be easily demonstrated by opening any Control Panel extension such as the Internet Explorer options panel for IE (inetcpl.cpl).

When rundll32.exe starts, it looks into shell32.dll and launches the function (or executes the code) that is responsible for opening the Internet options panel with no need for Internet Explorer to open. You can see this by adding the Command Line column to the Windows Task Manager:
Read the rest of this entry »

Posted in Inside Windows | Tagged: | Leave a Comment »

Inside Windows – svchost.exe

Posted by William Diaz on July 1, 2011


Think of svchost.exe as a container for all the various services that run in Windows. An example of some these services are the Windows Task Scheduler, the DNS service, and the Plug & Play service. It use to be that all these services ran as programs (.exe) but Microsoft eventually decided to start moving all this functionality into the Dynamic Link Libraries (.dll), where they could run more efficiently. The only problem with this is that dlls cannot be launched like programs, they need to run from within an executable, hence the creation of the generic service host process.

Because svchost.exe is host to many services, you often see half a dozen or more svchost.exe’s running in the Windows Task Manager:
Read the rest of this entry »

Posted in Inside Windows | Tagged: | Leave a Comment »

Making Sense of Memory Metrics in the Windows XP Task Manager

Posted by William Diaz on July 1, 2011


Sometimes you want to make sense of memory usage to gauge its impact on system performance or to just get a better understanding how memory is being allocated. For that, we can turn to the Performance tab in the Windows Task Manager. Here is a quick rundown of the memory metrics the Windows XP Task Manager. Read the rest of this entry »

Posted in Inside Windows | Tagged: | 1 Comment »

Inside Windows – Office Repair vs. Reinstall

Posted by William Diaz on February 3, 2011


All of you have at one point or another had to troubleshoot an issue with Office that required you to repair or reinstall Office. Have you ever wondered why these two options exist and what they do differently from the other? The answer is in a single parameter attached to the command and this parameter can sometimes make all the difference.

Microsoft KB article 298027 states:

There is a subtle difference between these two options and you will want to make sure you choose the appropriate option based on your situation. In either case, the Windows Installer /f command line switch is being called. The difference is in the parameters that are being attached to the /f switch.

Note You can also perform a Repair procedure from any of the Office programs by clicking Detect and Repair on the Help menu. This procedure is the same procedure that is performed when you click the Detect and repair errors in my Office installation command in Maintenance mode. Read the rest of this entry »

Posted in Inside Windows, Troubleshooting | Tagged: | Leave a Comment »