Archive for the ‘Windows XP’ Category

Script to Retrieve Last Logon Date and Time for Local User Accounts in Windows

In response to a script request recently from one of our readers, here is a VBScript that I came up with, that displays last logon date/time details for each local user account in a computer.

[Download lastlogon.vbs] (more…)

Using Default Programs Editor to Change File Type Icons in Windows 7 and Windows Vista

Changing the file type icons in Windows XP and earlier Operating Systems was a breeze, using the File Types tab in the Folder Options dialog. Unfortunately the File Types tab has been discontinued since Windows Vista and there is no alternate GUI provided to change a file type icon or to customize the right-click menu. Earlier we showed you how to change the file type icon manually using registry edits. In this article, we’ll see how to change a file type icon using the excellent Default Programs Editor utility, which we’ve covered before. (more…)

Install MSI Software Packages With Logging Using the Right-Click Menu

When a software installation which uses Windows Installer Package fails, you enable Windows Installer Logging and re-run setup to capture the output to a log file for troubleshooting. This can be done using three ways: using the Registry Editor, using the Group Policy Editor or by running the msiexec.exe command with required parameters.

The first two methods are documented in article How to Enable Windows Installer Logging. The third method uses the msiexec.exe command-line parameter. Here is an example:

msiexec /l*v d:\mylog.txt /i "C:\Users\Ramesh\Desktop\7z465-x64.msi"

This starts the 7-Zip .msi installation (7z465-x64.msi) and records all the results, including verbose output to a log file named mylog.txt located at D:\

Do you find it difficult to type the entire command-line everytime when you need to log application setups? No problem! You can implement this in the context menu for .msi files so that you can launch the installation with logging in a couple of mouse clicks. (more…)

Fix for Desktop Icons Layout Not Getting Saved Upon Restarting Windows

Windows saves the desktop icon layout when the user logs off, and the setting is read during logon. Recently I came across a case where the desktop icons rearrange to their default positions after a restart or logoff/logon cycle. This turned out to be a Permissions issue with a registry key, which kept Windows from writing to it. Are you experiencing the same problem in your Windows XP/2003/Vista/7 PC? If so, here is a solution that you can give it a go. (more…)

How to Install and Run the Windows Installer Cleanup Utility if Windows Installer Fails to Work

If you’re greeted with the Windows Installer setup screen for an existing product everytime when you try to install a new program, you usually repair the existing application, or use the Windows Installer Cleanup Utility to remove the installer information of the existing application before reinstalling it. The problem is the Windows Installer Cleanup Utility Setup itself uses Windows Installer and hence it may not run in the above scenario. Here is an option which can be used to launch the Windows Installer Cleanup Utility without installing it. (more…)

How to Remove Blank Entries From the MSConfig Startup Tab in Windows XP

Sometimes after uninstalling software, you may end up with blank entries in the System Configuration Utility (MSConfig.exe) in Windows XP. This happens if the startup entry is present in the registry with blank value data. This article tells you how to remove those orphaned entries by editing the registry.

(more…)

On Resume, Password Protect vs on Resume, Display Welcome Screen Setting in Windows XP

When you open the Display Settings Control Panel applet and click the Screensaver tab, one of the following options are shown:

  • On resume, display Welcome screen
  • On resume, password protect

The second option is seen in systems which are connected to domain (which disables the Welcome screen.) If you enable this option, you’ll see the "Unlock Computer" classic logon prompt when resuming from screensaver mode. Whereas the former displays the Welcome screen when resuming from screensaver mode.

What if the "On resume, password protect" option is shown in a standalone system where the Welcome screen is enabled? What causes the "On resume, password protect" option to be shown in standalone systems and systems in a Workgroup?

This was asked by many Windows XP users over these years in various forums where I participate, but no entire explanation for this observation has been found anywhere. Hence this article was written.

The "On resume, password protect" is displayed if at least one the following conditions is true:

  1. Fast User Switching is disabled. (REF Enable Fast User Switching in Windows XP)
  2. There is only one user account in the system (not taking the "Guest" account into consideration)
  3. There are more than one user account, but only one is shown in the Welcome Screen and all others hidden.
  4. Terminal Services is not running. This in turn disables Fast User Switching. (To start Terminal Services, launch Services.msc, double-click Terminal Services, set its start type to Manual. Restart Windows.)

Fix Services MMC Extended View Is Blank in Windows XP

The Extended view of Services Management Console (services.msc) displays the service description and also has links to Start or Stop services. In some systems, the Extended view may appear blank, as in figure below:

This has to do with broken JScript.dll registration. To fix this problem, login as Administrator or equivalent, and then run the following command from Start, Run dialog:

regsvr32.exe  jscript.dll

Press {ENTER}

You should see the output message "DllRegisterServer in jscript.dll succeeded."

This fixes the Extended view. Close and re-open Services MMC.

Fix for Event Log Service Startup Error 1079

When you start the Event Viewer, the following error message may be shown.

Event Log service is unavailable. Verify that the service is running.

Any attempts to start the Event Log service results in the following error:

Windows could not start the Windows Event Log service on Local Computer.
Error 1079: The account specified for this service is different from the account specified for other services running in the same process.

As the Windows Event Log service isn’t running, starting Task Scheduler results in the following error:

Windows could not start the Task Scheduler service on Local Computer.
Error 1068: The dependency service or group failed to start.

This problem was reported by one of our readers via email, and it has been fixed. Service startup error 1079 occurs if the logon account for the service is incorrectly set. Usually this is resolved by fixing the service logon account (via the Log On tab in the Property sheet) via the Services MMC (services.msc)

This can’t be done in case of Windows Event Log, where the Log On tab controls remain grayed out by default.

So, we need to alter the ObjectName registry value in the following location:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog

Start the Registry Editor (Regedit.exe) and navigate to the above branch:

Double-click ObjectName value and set its data as NT AUTHORITY\LocalService {for Windows Vista & Windows 7}

Double-click ObjectName value and set its data as LocalSystem {for Windows XP}

Restart Windows.

Registry Fix

To automate the above setting, download eventlog-svc-fix.zip and run the REG file which is applicable for your Operating System. The zip file includes the REG fixes for Windows XP and Windows 7/Vista. Restart Windows after applying the fix.

Using the Mouse to Copy Command Prompt Text to Clipboard

A useful tip for mousers. Earlier we saw how to copy Command Prompt output to the Windows Clipboard. Did you know that you can accomplish the same using your pointing device (mouse)? Also, you can select a particular section (word or line) and copy it to the Clipboard. Here is how to do so.

1. Create a Command Prompt shortcut (cmd.exe) on the Desktop.

2. Right-click on the Command Prompt shortcut and choose Properties

3. In the Options tab, enable QuickEdit mode, and click OK.

4. Open a Command Prompt window (using the custom shortcut) and type a command.

5. To copy the output, select the text area using the mouse pointer and click the right-mouse button (or press ENTER.)

This tip applies to Windows Vista & Windows 7 as well.

Editor’s note: The above setting works only if you access the Command Prompt using the desktop shortcut that you created earlier. In one of the upcoming articles, we’ll instruct how to make the Quick Edit setting enabled by default, so that it works irrespective of the method you use to access the Command Prompt.