Monday, June 25, 2012

Users are facing delay in logging in to a Terminal server via RDP client. After entering the credentials, they are seeing a long delay before they get the desktop

Problem:

In Windows 2003 SP2 x64 bit R2 server, faced issue with Terminal services.
Users are facing delay in logging in to a Terminal server via RDP client. After entering the credentials, they are seeing a long delay before they get the desktop

Also apart from above, amazing part has been observed that few initial users were able to access desktop and taskbar after credential in terminal session but from next user onwards, noone will get desktop, just a blank screen and almost to wait for 30 to 40 minutes.

More info: While troubleshooting, we found that few users who RDP to the server will get a desktop and few of them actually never get a desktop. The users who get the 3rd party application launched when the login will never get a desktop. Rather they get the application which will close the explorer.exe as soon as it starts off. The application has an option to logoff within the tool bar of the application itself and that will trigger the log off process and close the RDP session.

So, for users who gets desktop, we see delay in getting the desktop. For the users who gets the application interface, we see delay in getting the application interface.

Cause: We found two different issues in this case. The first  one is due to couple of 3rd party HP services running, namely “Net Driver HPZ12” and “PML Driver HPZ12” which has bloated the registry entries under following registry locations.
[ HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software\Hewlett-Packard\ ]
[ HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\RefHive\Hewlett-Packard\ ]
[ HKU\.DEFAULT\Software\Hewlett-Packard ]

When the user logs into RDP session, due to the above bloated registry, we were waiting for the enumeration of the subkeys / entries under the above keys. Once we enumerate all entries here, the login process will then complete and eventually user will get desktop or application interface.

Due to the large number of entries here, it was taking a long time to complete this process. However, these entries are not required for regular working for the users as they got created by the above mentioned HP services.

We also found another issue being caused by the 3rd party application init.exe which will be initiated for those users who get the application interface. Randomly the init.exe stops responding at the startup when the users login. In this instance, we see that userinit.exe which will start the explorer.exe is done with its job and exited. But the init.exe which is supposed to close the explorer.exe and initiate the Application Interface is not completing and is hung. We are not sure what exactly it is doing and this has to be investigated by the application owner / vendor. But we see this issue very randomly and during our testing we found this init.exe getting stuck only once.

Solution:
For the registry bloat issue by HP service, we followed the action plan outlined below.

1.      Stop and disable HP services “Net Driver HPZ12” and “PML Driver HPZ12”
2.      Rename the associated .msi file (cioum64.msi) of the above service under C:\windows\system32\spool\drivers\x64\3\ to cioum64.old and created a blank dummy cioum64.msi (created blank cioum64.txt and renamed it as cioum64.msi)
3.      Deleted the following bloated registry entries which are actually not required for server operation and deleting them won’t cause any harm to the server.
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software\Hewlett-Packard
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\RefHive\Hewlett-Packard
HKU\.DEFAULT\Software\Hewlett-Packard

After doing this, we successfully logged in with couple of users who gets the desktop (not the application interface when they login) and did not see anymore delay in getting desktop. We logged them in within 1 min which is good enough.
We tried logging in around 4 – 5 users who get the application interface, at one instance we found that “init.exe” hung and did not get interface. Killing that hung init.exe will close the session for the user.
For all other attempts to login the same user and other users who gets application interface, we did get the application launched without any problem.

So if you see similar issue of such users not getting application when they login and their session getting stuck on “Init.exe” which spikes CPU to 25%, we have to engage application owner / vendor.
 

Tuesday, January 24, 2012

Error - "Consider replacing your Battery" displayed immediately after you upgrade to Windows 7 on certain LG notebooks

If you get below error on your LG notebook (certain model's) as stated below, follow the steps mentioned.

A warning message is displayed immediately after you upgrade to Windows 7 on certain LG notebooks: "Consider replacing your battery"

This warning is displayed even if a new battery is inserted into the laptop.


CAUSE:


This problem occurs because of a code defect in the system firmware (BIOS) of some LG notebooks. These include the R500 family of notebooks.


The Advanced Configuration and Power Interface (ACPI) firmware does not correctly initialize and report the Design Capacity field of the static battery information structure that is retrieved by using the _BIF method. Therefore, the Design Capacity that is reported to Windows may be much larger than the Last Full Charge capacity that is also reported in the static battery information structure. The Windows Battery Meter divides the Last Full Charge capacity by the Design Capacity to determine battery health. The Windows Battery Meter displays the "Consider replacing your battery" message when the Last Full Charge Capacity is less than 40% of the Design Capacity. When this issue occurs, the Design Capacity is reported as much larger than Last Full Charge capacity. Therefore, the "Consider replacing your battery" message is always shown.


RESOLUTION:


To resolve this problem, You need to upgrade BIOS for your LG Notebook.
For more information, visit the following LG Web sites:

Internet Explorer Issue - Nothing happens when you click a link in Internet Explorer

When you click a hyperlink on a webpage or in an email message, nothing happens. Internet Explorer does not open the webpage.

CAUSE:


This behavior may occur for one or more of the following reasons:
  • A corrupted browser choice setting may cause Windows to misinterpret which browser is set as the default browser on your computer.
  • Settings were changed after a software installation that cause webpages not to work correctly.
  • A previously installed browser or add-on may be interfering with other software on your computer.
  • Registry key were changed or became corrupted.

RESOLUTION:

Method 1: Check your default web browser setting
In Microsoft Windows, you can select which web browser to use by default. To make Internet Explorer your default web browser, follow these steps:
  1. To open Internet Explorer, click Start, and then click Internet Explorer.
  2. If you are prompted whether you want Internet Explorer to be your default browser, click Yes. This is all that you have to do.
    If a message does not appear, go to the next step.
  3. Click the Tools button, and then click Internet Options.
  4. Click the Programs tab, and then click Make default.
  5. Click OK, and then close Internet Explorer.

    Note Your changes will take effect the next time that you start Internet Explorer.
Check whether the problem is resolved. If the problem is resolved, you are finished with this article. If the problem is not resolved, try the next method.

Method 2: Change the file types that Internet Explorer opens by default

For Windows 7 and Windows Vista

  1. Close any Internet Explorer windows that are open.
  2. Click Start, and then click Control Panel.
  3. Click Programs, and then click Set your default programs.
  4. On the Programs menu, click Internet Explorer, and then click Choose defaults for this program.
  5. Make sure that the check boxes for .htm, .html, and .url are selected, and then click Save.
  6. Click OK.

    Note Your changes will take effect the next time that you start Internet Explorer.
For Windows XP
  1. To open Windows Explorer, right-click Start, and then click My Computer.
  2. On the Tools menu, click Folder Options, and then click the File Types tab.
  3. Locate and select the HTM file type.
  4. Make sure that Internet Explorer is selected as the Opens with program. If Internet Explorer is not selected, click Change, select Internet Explorer as the recommended program, and then click OK.
  5. Repeat steps 3 and 4 for the following file types:

    HTML
    ITS
    MHT
    MTHML
    XML
    XSL
Check whether the problem is resolved. If the problem is resolved, you are finished with this article, If the problem is not resolved, go to the next method.
Although browser add-ons can improve your online experience, they can occasionally interfere or conflict with other software on your computer. However, be aware that some webpages, or Internet Explorer itself, might not be displayed correctly if an add-on is disabled. First, start Internet Explorer with add-ons temporarily disabled to see whether the problem is resolved. (Add-ons will be disabled only until you restart Internet Explorer in the usual way). To do this, follow these steps:

Method 3: Use the Internet Explorer (No Add-ons) mode


  • Click Start, type Internet Explorer in the Search box, and then click Internet Explorer (No Add-ons).

    Note For Windows XP, click Start, right-click the Internet Explorer icon, and then click Browse without add-ons.
If Internet Explorer No Add-ons resolves the problem, follow these steps to identify the browser add-on that is causing the problem:
  1. To start Internet Explorer, click Start, and then click Internet Explorer.
  2. Click the Tools button, and then click Manage add-ons.
  3. Click an add-on in the Name list, and then click Disable. Test Internet Explorer.
  4. Repeat step 3 until you identify the add-on that is causing the problem.
Check whether the problem is resolved. If the problem is resolved, you are finished with this article. If the problem is not resolved, try the next method.

Method 4: Reset Internet Explorer settings

If the problem is caused by damaged or incompatible Internet Explorer settings or add-ons, you can usually resolve the problem by resetting Internet Explorer settings to their default settings.

Resetting Internet Explorer’s settings is not reversible. After a reset, all previous settings are lost and cannot be recovered. When you restore Internet Explorer’s default settings, some webpages that rely on previously stored cookies, form data, passwords, or previously installed browser add-ons might not work correctly. However, resetting Internet Explorer to its default settings does not delete your favorites, feeds, or several other personal settings.

To Reset Internet Explorer Settings, follow these steps:

  1. Close all open Internet Explorer windows.
  2. Click Start, type inetcpl.cpl in the Search box and then click inetcpl.cpl in the programs list.
    The Internet Options dialog box appears.

    Note for Windows XP, click Start, click Run, type inetcpl.cpl in the Open box, and then click OK.
  3. Click the Advanced tab.
  4. Under Reset Internet Explorer Settings, click Reset. Then click Reset again.
  5. When Internet Explorer finishes resetting the settings, click Close in the Reset Internet Explorer Settings dialog box.
  6. Start Internet Explorer again.
    Your changes will take effect the next time you open Internet Explorer.

    Note Your changes will take effect the next time that you start Internet Explorer.

Method 5: Reregister the necessary Internet Explorer DLL files 

Note This information applies to Windows XP

To reregister the DLL files, follow these steps:

  1. Click Start, click All Programs, click Accessories, right-click cmd, and then select Run as administrator. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
  2. Type regsvr32 urlmon.dll in the Open box, and then click OK.
  3. Click OK when you receive the confirmation.
  4. Repeat steps 2 and 3 for the following commands:

    regsvr32 mshtml.dll
    regsvr32 shdocvw.dll
    regsvr32 browseui.dll
    regsvr32 msjava.dll
Check whether the problem is resolved. If the problem is resolved, you are finished with this article. If the problem is not fixed, go to the next section.

Error message when you try to install an Office program: "Error 1935. An error occurred during the installation of assembly component

When you install one of the Microsoft Office programs,the installation is not completed successfully. Additionally, you receive an error message that resembles the following: 


"Error 1935. An error occurred during the installation of assembly component {10CD20D2-733E-4174-9D02-2C6C26163DA5}"
The error message contains a global unique identifier (GUID) of an assembly that is contained in the 2007 Office program. The GUID in the error message may vary, depending on which assembly encounters the error.
CAUSE:
This issue may occur when the Microsoft .NET Framework installation on the computer is damaged or is missing.

RESOLUTION:
To resolve this issue, use one of the following methods, as appropriate for your situation. Then, try to install the 2007 Office program again.

These methods are supported on the following Operating System versions:

Methods 1 and 3:

  • Windows XP
  • Windows Server 2003
  • Windows Vista
  • Windows Server 2008
Method 2:
  • Windows XP
  • Windows Server 2003

Method 1: Repair the Microsoft .NET Framework version 2.0 installation

To repair the Microsoft .NET Framework version 2.0 installation, follow these steps:
  1. Click Start, click Control Panel, and then click Add or Remove Programs.
  2. In the Currently installed programs list, click Microsoft .NET Framework 2.0, and then click Change/Remove.
  3. Click Repair, and then click Next.

Method 2: Install the .NET Framework version 2.0

If a version of the .NET Framework is not installed on your computer, download and install the .NET Framework version 2.0 from this website (http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5) .

Method 3: Reinstall the Microsoft .NET Framework version 1.1

If the .NET Framework version 1.1 is installed, remove it, and then reinstall it.

To remove the .NET Framework version 1.1, follow these steps:

  1. Click Start, click Control Panel, and then click Add or Remove Programs.
  2. In the Currently installed programs list, click Microsoft .NET Framework 1.1 and then click Change/Remove.
  3. Click Yes to uninstall the .NET Framework version 1.1.
To reinstall the .NET Framework version 1.1, download and install the .NET Framework version 1.1 from this website (http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3)

 

How to determine whether you have a retail edition or a volume license edition of a 2007 or a 2010 Microsoft Office suite

To determine whether you have a retail edition or a volume license edition, use one of the following methods.

Method 1: Examine the contents of the installation disc

  1. Insert the 2007 or 2010 Office suite installation disc into the computer's CD drive or DVD drive.

    Note If you have multiple discs, use disc 1. Also, check the disc label for the DVD symbol. If you see this symbol, the disc must be inserted into a DVD drive.
  2. When the Setup window is displayed, close the Setup window.
  3. Click Start, and then click My Computer.
  4. Right-click the CD drive or the DVD drive that contains the disc, and then click Explore.
  5. Look for a folder that is named Admin.
    • If the Admin folder exists, this disc is a volume license edition.
    • If the Admin folder does not exist, this disc is a retail edition.
    Note Retail media includes a lowercase "r" before the ".WW" in the folder name and before the "WW.msi" in the msi file name. For example, Enterprise retail would be EnterpriserWW.msi in the Enterpriser.WW folder. Enterprise non-retail would be EnterpriseWW.msi in the Enterprise.WW. Notice the absence of the lowercase "r" in the non-retail names.

Method 2: Examine the registry on the computer

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
  1. On a computer that has a 2007 or a 2010 Office suite installed, click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\Software\Classes\Installer\Products
  3. Expand the Products entry node in the navigation area, and then click each 32-character {GUID} until you locate the one whose ProductName value in the topic area matches your version of the 2007 or 2010 Office suite. For example, the 32-character {GUID} for Microsoft Office Professional Plus 2007 appears as follows: 
    00002103110000000000000000F01FEC
  4. For more information about 2007 Office suite ProductName GUIDs, click the following article number to view the article in the Microsoft Knowledge Base:
    928516  (http://support.microsoft.com/kb/928516/ ) Description of the numbering scheme for product code GUIDs in 2007 Office suites and programs
    2186281 (http://support.microsoft.com/kb/2186281) Description of the numbering scheme for product code GUIDs in Office 2010
  5. Expand the selected 32-character GUID entry.
  6. Click the SourceList entry.
  7. In the topic area, examine the data for the PackageName string value.
    • If the data for this string value contains the letter "r" before "WW," this is a retail edition of a 2007 Office suite. For example, the data may be displayed as "ProrWW.msi" or as "StandardrWW.msi."
    • If the data for this string value does not contain the letter "r" before "WW," this is a volume license edition of a 2007 Office suite. For example, the data may be displayed as "ProWW.msi" or as "StandardWW.msi."
  8. Exit Registry Editor.

Friday, December 9, 2011

How to configure scavenging under DNS in Windows Server

Here are the step for configuring DNS scavenging 
-Go to the  server properties page and choose "Set Aging/Scavenging for All Zones".

-Choose the no-refresh and refresh interval as appropriate.

-Best practice is to choose a low no-refresh interval of 1 day.

-Refresh interval will be one more than the lease period of the client as a best practice.

-If we have a very large lease period, the results of scavenging will be visible after a long time.

-Example with a lease 5 days, no-refresh to be 1 day and refresh to be 6 days, we might not see any effects for  5+1+6 days' time.

-Identify the zone which you want to enable for scavenging and the ones you don't want to.

Scavenging configurations:

-Right click the specific zone, select Properties, and go to the General tab; click the Aging button. Set the no-refresh and the refresh intervals as per best practice above.

-There are 2 options to kick off scavenging.


a) Right click the server name, select Properties, and choose "Scavenge Stale Resource Records" (This should give an informational event in the application log telling if the scavenging was successful or not). Then, configure the scavenging engine to run automatically and periodically, go to the server's Properties, Advanced tab and check "Enable
Automatic scavenging of stale records".

b) If option 'a' fails, then first identify the manually created records in the specific zone by the following
    command:
    dnscmd /enumrecords <zone name> @ > manual.txt -The above command will pipe the output of the zone records to text file in the current directory.
-Then the records which do not have an aging value specified are the ones which have been manually created.

-Identify the static records that you want to keep from deleting.
-Run the following command:
    dnscmd /ageallrecords <zone name> @
-The above command will put a time stamp on each record including the static ones.
-Then go to the view menu on the server and enable advanced view.
-Go to the properties of static records you want to keep and uncheck the box 'Delete this record when it becomes stale'.

Windows Update issue-Prompting for Activex installation


If you face such situation where windows update unable to run and keep prompting for Activex control installation, you can follow the below steps.


1.
Register the following .dll files:
•
Jscript.dll
•
Msxml3.dll
•
Atl.dll
•
Wuapi.dll
•
Wuaueng.dll
•
Wuaueng1.dll
•
Wucltui.dll
•
Wups.dll
•
Wuweb.dll

To do this, follow these steps:

a.
Click Start, click Run, type cmd, and then click OK.
b.
At the command prompt, type cd %windir%\system32, and then press ENTER.
c.
Type the following commands, and then press ENTER after each command:
•
Regsvr32 Jscript.dll
•
Regsvr32 Msxml3.dll
•
Regsvr32 Atl.dll
•
Regsvr32 Wuapi.dll
•
Regsvr32 Wuaueng.dll
•
Regsvr32 Wuaueng1.dll
•
Regsvr32 Wucltui.dll
•
Regsvr32 Wups.dll
•
Regsvr32 Wuweb.dll
d.
Type exit, and then press ENTER to close the Command Prompt window.
2.
Stop the Automatic Updates service and the Background Intelligent Transfer Service (BITS). To do this, follow these steps:
a.
Click Start, click Run, type services.msc, and then click OK.
b.
In the list of services, right-click Automatic Updates, and then click Properties.
c.
In the Automatic Updates Properties dialog box, click the General tab, click Stop, and then click OK.
d.
In the list of services, right-click Background Intelligent Transfer Service, and then click Properties.
e.
In the Background Intelligent Transfer Service Properties dialog box, click the General tab, click Stop, and then click OK.
3.
Rename the SoftwareDistribution folder. To do this, follow these steps:
a.
Click Start, click Run, type %windir%, and then click OK.

Note The %windir% folder is the folder where you installed Microsoft Windows.
b.
Locate the SoftwareDistribution folder.
c.
Right-click the SoftwareDistribution folder, and then click Rename.
d.
Type OldSD, and then press ENTER.
4.
Start the Automatic Updates service and the BITS service. To do this, follow these steps:
a.
Click Start, click Run, type services.msc, and then click OK.
b.
In the list of services, right-click Automatic Updates, and then click Properties.
c.
In the Automatic Updates Properties dialog box, click the General tab, click Start, and then click OK.
d.
In the list of services, right-click Background Intelligent Transfer Service, and then click Properties.
e.
In the Background Intelligent Transfer Service Properties dialog box, click the General tab, click Start, and then click OK.