Monday, December 9, 2013

Mouse and keyboard stop working in Windows 7

Today I have witnessed a rare problem with mouse and keyboard being unresponsive in Windows 7, even though they work in BIOS, boot manager, mini-windows, etc.

If this happened to you, it may be due to an unsuccessful upgrade or installation of Kaspersky Antivirus 2013.

The solution is quite complex and involves editing the registry offline, if you have never edited the registry before - this may not be a good time to start.
There are numerous guides online how to get into your registry when you can't do it from your system, I will not go into this here.

When you load your registry hive, you need to check two keys. The first key has the settings for keyboard:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e96b-e325-11ce-bfc1-08002be10318}

and it should have a string called UpperFilters and it should have a value kbdclass (if there are any other values, delete them).

Second key has settings for the mouse:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e96f-e325-11ce-bfc1-08002be10318}

and in the same UpperFilters string we should have the value mouclass (again, if there is anything else inside this string, delete it).

Here's an example of what it looks like when there is a residual erroneous key from Kaspersky inside the UpperFilters string for the keyboard:


That value "klkbdflt" is the troublemaker.


Friday, December 6, 2013

How much power does my computer consume?




This is a very interesting question that is becoming more current with all the green power awareness nowadays.

In average, an office desktop workstation will consume 130 to 175 watts per hour. That includes the PC (with a 65w based CPU, HDD drive and a basic video card) and a 40 watt LCD monitor.
The consumption is quite variable because the CPU consumes power based on its load, so at near 95% of CPU load this kind of station will consume around 175 watts, and when idle - it goes down to 130 watts. The monitor also varies in power consumption based on the backlight luminance, so at max luminance this monitor will consume 40 watts.

But does the station consume any power when in sleep mode or powered off completely? Yes it does. The PC itself may consume around 6-7 watts when turned off but plugged in (some motherboards power off completely, while others still provide +5V to USB ports). Same goes for the monitor in standby mode (3-6 watts).

Now, what is important when choosing or building a computer that is energy efficient?

First we start with the CPU, which are currently Haswell based CPUs by Intel, or Piledriver based Richland CPUs by AMD.
The lowest power consuming models of these CPUs (35-45watts) will have the letter T at the end of the model name (i.e. Pentium G3420T by Intel or A10-6700T by AMD).

Power Supply Unit - Power supply quality matters when we're talking about power efficiency, because a lot of energy is wasted when the PSU converts AC to DC necessary to power the computer.  So the better the PSU quality - the less power will be consumed. A good indication of power supply quality is the 80 Plus certification.

Motherboards - regular motherboards usually consume less power than high-end ones because they have less features (slots, ports, etc). Some motherboard manufacturers provide power saving technology built into their products such as Gigabyte's Dynamic Energy Saver or Asus' EPU technology.

Video cards - a video card is usually necessary for gaming or advanced image processing (CAD, 3D or video editing), and usually is power consuming, so unless there's a specific need for it - it may not be used.

Hard Drive - SSD drives consume about 70% less power than HDD drives. However, some energy efficient HDD drives will spin down when idle (such as the Green drives by WD), so that is a plus when building an energy efficient workstation.

Optical Drive - DVD drives generally consume a bit less power than Blu-Ray drives. An external USB optical drive may be used when necessary.

Cooling - A low power CPU will require less cooling, however cooling fans are not very power consuming, generally 1-6 watts.

Monitor - LED backlight based monitors generally consume less power (over 50%) than conventional LCD monitors, so replacing an older LCD monitor with a new LED based LCD monitor may be a good idea.

Speakers - Unless sound quality is of high importance, it might be quite efficient to use USB powered speakers, not only to use one less power socket, but also to save power by having small speakers that do not have their own power supply that wastes power.

So, to summarize - the most energy efficient component replacements are CPU, PSU, hard disk (SSD), and the monitor.

Click HERE for a sample configuration of an energy efficient station.


Tuesday, December 3, 2013

Windows cannot currently check for updates because the service is not running



Sometimes Windows 7 may not let you download updates because of some issues with the Software Distribution folder. This may even happen soon after a fresh install of Windows.

Here's how to fix it.

Open command prompt in elevated mode and type:

net stop wuauserv

This will stop the Windows Update service.

Next enter this command:

ren %windir%\SoftwareDistribution softwaredistributionold

This will rename the Software Distribution folder so the system will have to recreate a new empty one.

Now all we have to do is restart the Windows Update service by entering:

net start wuauserv

Now we can retry downloading updates from Windows Update.


Saturday, November 9, 2013

Make Windows 8 look like Windows 7

I know this topic has been discussed many many times, but I would just like to throw in my two cents.

I tested many different ways to incorporate the Start button many users are used to into Windows 8, including ViStart, StartW8 and others, but Classic Shell provides the best start button. It is multilingual, which means it adopts to almost any Windows 8 UI language, it provides drag-ability to items that are inside it, search bar shows items in real time, basically every feature you'd want in your Start button is present here.

Now, Windows 8.1 already comes with the Start button, which in my opinion is far from what the Start button should be - it simply throws you back into Start Screen (the one with the tiles).
In this case, Classic Shell doesn't create a secondary Start button but simply replaces the current one:

Windows 8.1 start button


It is, of course, programmed to start up right into desktop like Windows 7 would. So now, the Start Screen is simply an optional feature that you can use when you feel like it, and your default interface closely resembles Windows 7. This, in my opinion, is what Windows 8 should be like - you choose your default interface depending on your device. There is no need for touch interface on a desktop computer - same as it's quite hard to use the Desktop with the icons on a 7-10 inch tablet.

Anyway, the desktop is still draggable downwards like it used to be, which will bring you back into Start Screen, and you can also access it via the Classic Shell Start button, its right up there on top of the recently used apps.

For those who'd want their Gadgets back - there's a program called 8GadgetPack which brings back all of the old gadgets plus some new interesting ones, and it even comes with the sidebar for the Vista die-hard fans.

Now, all that's left is modifying the default way your files are opened, because by default most picture files will open with the default photo app which is in full screen. Granted it now looks better than it did in Windows 8, it may still be burdensome for those who want their picture in an actual 'window'.
So to make sure our files aren't opened with Apps but rather with Programs - we should modify our Default Programs inside Control Panel. Click on Set Default Programs, scroll down to Windows Photo Viewer and set it as the default program for opening pictures and photos.


Same can be done regarding PDF files (after you've installed Adobe Reader), music files, videos, etc etc.


Wednesday, November 6, 2013

Windows 8 Single Language edition can have its language changed

When you buy a cheaper laptop you may have Windows 8 Single Language installed on it, which means there is a preinstalled interface language (or sometimes a few languages) and there is no official way to change them as you would in Windows 8 Core (the regular Windows 8).
This is similar to what happens when you buy a laptop with Windows 7 Home Premium preinstalled.

So, there is a way to change the Windows 7 Home premium (or Professional) interface language, and turns out it is the same for Windows 8 Single Language.

You need to have a language pack lp.cab file ready. You may find language packs distributed online for Windows 8, download one for your language and extract the lp.cab file.

The method for Windows 8 is as follows:

  • Put the lp.cab in some folder on your hard drive. Let's put it in C:\lp for example.
  • Open command prompt in elevated mode and type:

DISM /Online /Add-Package /PackagePath:C:\lp\lp.cab


Windows 8 will recommend restarting after successfully adding the package.

After restarting, go back to command prompt in elevated mode and type:


bcdedit /set {current} locale xx-xx (where xx-xx is the language and locale code, for example english US would be en-US)


And the last command:


bcdboot %WinDir% /l xx-xx (again xx-xx will have the language and locale code, for example en-US for english-US)


  • Now without closing command prompt type regedit to launch the registry editor and navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MUI\UILanguages

and delete the folders that have language-locale codes different from the ones you need. For example ru-RU or es-ES.

Restart the machine and the UI language will be changed to the one you installed. You may still see the remnants of the original language in the tiles or other Windows features, that will go away once you change the region to your locale inside Control Panel.

----
*(Update 15.10.14)
Method for Windows 8.1:


  • Download the appropriate (for your version of Windows 8.1) language pack listed further down in this post.
  • Rename the cab file to lp.cab
  • Put the lp.cab in some folder on your hard drive. Let's put it in C:\lp\
  • Open command prompt in elevated mode and type:

DISM /Online /Add-Package /PackagePath:C:\lp\lp.cab

Windows 8.1 may recommend restarting after successfully adding the package.

If returning from a reboot - go into elevated prompt again.

Now we need to remove the reference to the old language pack. To do that we need to find out the exact identifier of the language pack installed. For this we need to run:

DISM /Online /Get-Packages > C:\pack.txt

Because the list of installed packages is long, the command sends it to a file called pack.txt located in the root of the C: partition. Open the file and look for:

Package Identity : Microsoft-Windows-Client-LanguagePack-Package........
Status: Installed
Release Type : Language Pack

Make sure you find the identifier for your old language pack, so if we're getting rid of the English language - the identifier will have "en-US" in the name.
For example an English language pack that comes with your English based system will be something like:
Package Identity : Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~6.1.7601.17514 
Note the en-US in the name.

Now let's run a command to remove the old language pack (listed in the above example):

DISM /Online /Remove-Package /PackageName:Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~6.1.7601.17514

After the removal procedure is done, you will be prompted to reboot the computer. After the reboot you should be faced with the new language interface.


A big thank you goes to Irina Likhter for pointing out this method!


*Update (25.04.14):
I have uploaded language packs for certain languages for Windows 8 64bit here -

English (US)

Arabic (SA) (العربية)
German (Deutch)
Spanish (Espanol)
Finnish (Suomalainen)
Hebrew (עברית)
Korean (한국어)
Polish (Polski)
Portuguese (Brazil) (Português)
Romanian (Românesc)
Russian (Русский)
Thai (ภาษาไทย)

*Update (05.05.14):
More language packs for the following languages are available for download:

Bulgarian (български)
Czech (čeština)
Danish (Dansk)
Greek (ελληνικά)
Estonian (Eesti)
French (Francais)
Croatian (Hrvatski)
Hungarian (Magyar)
Italian (Italiano)
Japanese (日本語)
Latvian (latviešu)
Lithuianian (lietuvių)
Norwegian (Norsk)
Dutch (Nederlands)
Slovak (slovencina)
Slovenian (slovenšcina)
Swedish (svenska)
Turkish (Türk)
Ukrainian (український)
Chinese Standard (中国语文)
Chinese Hong Kong (中國語文)

*Update (07.05.14):

Working LP for Windows 8.1 will be uploaded in the near future.

*Update (02.08.14):

Here are the Windows 8.1 Language packs direct from Windows Update:

Windows 8.1 32-bit (x86) MUI language packs
Arabic
Bulgarian
Chinese - Simplified
Chinese - Traditional
Croatian
Czech
Danish
Dutch
English - United Kingdom
English - United States
Estonian
Finnish
French
German
Greek
Hebrew
Hungarian
Italian
Japanese
Korean
Latvian
Lithuanian
Norwegian
Polish
Portuguese - Brazil
Portuguese - Portugal
Romanian
Russian
Serbian - Latin
Slovak
Slovenian
Spanish
Swedish
Thai
Turkish
Ukrainian
Windows 8.1 64-bit (x64) MUI language packs
Arabic
Bulgarian
Chinese - Simplified
Chinese - Traditional
Croatian
Czech
Danish
Dutch
English - United Kingdom
English - United States
Estonian
Finnish
French
German
Greek
Hebrew
Hungarian
Italian
Japanese
Korean
Latvian
Lithuanian
Norwegian
Polish
Portuguese - Brazil
Portuguese - Portugal
Romanian
Russian
Serbian - Latin
Slovak
Slovenian
Spanish
Swedish
Thai
Turkish
Ukrainian


Saturday, November 2, 2013

How to recover Windows 8 product key when it's too late

When you buy a Windows 8 based laptop, it will not come with a Windows 8 product key sticker anymore, so finding your product key becomes more complicated. Especially when your hard drive becomes faulty and you can't boot into Windows anymore.

If Windows 8 is not booting, and the drive's health is low - you can always send your laptop back for warranty repair. But if warranty is not available anymore - you might have to replace the hard drive yourself. But you will need your product key to reinstall Windows 8 back onto a new hard drive. So to recover your product key you will need to take out the faulty hard drive (assuming the data is still accessible) and connect it to a working computer as an additional hard drive. You will then need a tool called ProduKey by NirSoft - available here free of charge. Run the tool and point it to the windows folder on the faulty drive. It will then recover and show your Windows 8 Product Key, all that's left is obtaining the installation image and using this product key to reinstall your OS.

recover lost product key


Wednesday, October 30, 2013

Rogue script ulbloqmeed.vbs removal


This is a rogue VBS script that uses flash media as its primary method of spreading. I stumbled upon it today and decided to write about it because it's not detected by most antivirus software and malware cleaners. It's not a real virus, it's a VBS script that messes with the data on your flash media by making all files and folders hidden and creating shortcuts with the same names as your files and folders. The shortcuts basically start the script that then gets inside the registry and creates keys for itself. The script may have different names, but the removal procedure is the same for all.

The removal itself is quite manual and I will describe the steps.
  • First off, kill the wscript.exe process that is running in the background, using Task Manager. 
  • Then start regedit in elevated mode and find any entries with "ulbloqmeed" and delete them. 
  • Close regedit. 
  • It is also wise to start msconfig and look for startup entries of this script here. Uncheck those entries and restart the computer. 
  • Now search the entire system partition for "ulbloqmeed", it will mainly be found inside %LOCALAPPDATA%\Temp - delete the file here when you find it.
This should get rid of the script running in the background and clean the system. Now all that's left is cleaning the flash media that brought it here in the first place.
  • Turn on the ability to see hidden files in windows explorer. 
  • Open the flash media drive to see the files and folders, you will now see two sets of files - the ones you originally had there that are now "hidden" and their visible shortcut duplicates that were created by the script.
  • Delete all of the shortcut files. 
  • Open CMD in elevated mode and run this command:
attrib -r -s -h /s /d [flash drive letter]:\

Assuming the flash drive letter is E: - the command will look like this:

attrib -r -s -h /s /d E:\

This will force the removal of the "hidden" attribute off of the files and folders inside the flash drive.

Sunday, October 27, 2013

Thursday, October 24, 2013

Internet Explorer shows a white page instead of a website.


This happens on Windows 7 64 bit running the 32 bit version of IE9 or IE10. This is a very rare problem and not many solutions are given online so I decided to post my own solution that works.

First off - let's eliminate malware and viruses, the system is clean and updated.
Second - a lot of people seem to have a problem with "Hardware rendering" in IE - so we should enable software rendering.


Third - resetting the browser, cleaning temp files and cookies, uninstalling and downgrading to a previous version should be done.

If none of this helps - then come the big guns.

Most people in this case would do a repair installation of Windows, which I think is like killing a mosquito with a shotgun. A repair may bring other problems to your already installed and configured software. So this problem should be dealt with directly using the following method.

The root of this problem is a corrupt DLL file called d2d1.dll which, in this case, is located in the %systemroot%\SysWOW64 folder.
To confirm this we should scan the system for corrupt system files by going into elevated command prompt and running:

sfc /scannow

If the above file is in fact corrupt - SFC may repair it and the problem goes away. But in many cases it does not repair it because the backup copy of this file may also be corrupt. In this case we need to replace it with a "healthy" version.

I have posted a healthy version of this file here. (Use at your own risk, it may not be compatible with your system). This is for Windows 7 Pro 64bit SP1.

Now the tricky part is to replace a system file in a protected system folder. In this case inside the aforementioned SysWOW64 folder. The key to this is to first take ownership of the file inside and then change the file access permissions. So we right click d2d1.dll and go into Properties > Security >Advanced > Owner > Edit. Make your user or the administrators group the owner of the file. Then, while still inside the file properties window, under Security click on Edit and click on the Administrators group or the current user and click Allow: Full control check-box.

This will now enable us to edit or replace the file. Now we rename the file's extention to something like ".old" instead of ".dll" for it to be easily recoverable in case something goes wrong.
Once it's renamed - we can now copy the "healthy" file here. After that's done, no need to restart, just run your IE and it should all go back to normal.

Wednesday, October 23, 2013

Word 2013 crashes on startup

word crashes on startup

If Word 2013 crashes right after it's finished starting up - usually the reason is an add-in that is causing this. Most of the time it's the ABBYY Finereader add-in that loads automatically, and your best bet is to disable it.
To do this we need to start Word (or Excel, or any other Office app that crashes this way) in its safe mode by bringing up the Run box by pressing [Windows Key] + R and then typing:

winword.exe /safe

This will load Word in safe mode which will let you disable the add-in. To do this click File > Options > Add-Ins. On the bottom where it says Manage: [COM Add-ins} click Go. This will bring up the Add-in list where you uncheck the add-ins you need to disable (again, usually by Finereader). Once it's done, click OK and restart Word in normal mode.

Sunday, October 20, 2013

Table of all Intel desktop CPUs for the last 10+ years.

I have been quite busy with this new project for the last couple of months. I had my mind set on creating a flow chart that shows all Intel desktop CPU sockets present in the last 10 or so years, and all processors that are supported for them. It covers Intel CPUs under LGA775, LGA1156, LGA1366, LGA1155, LGA2011 and LGA1150 sockets. 

The flow chart starts from the socket, continues onto microarchitecture, core code name, CPU brand name and ends with main specifications of the CPU. It covers Pentium, Celeron, i3, i5, i7 and Xeon CPUs. Very easy to compare and pick out the appropriate CPU model for the necessary task.

 This is a very large poster, high resolution print quality. In digital form it can be searched using your PDF software's search function to find the CPU you need.

 I have posted it here on Scribd.


Table of intel proccessors

Friday, October 18, 2013

File transfer over the network one day becomes very slow.

I've recently had this very interesting problem with a Windows 7 Pro 64bit workstation that suddenly had a very low speed when transferring files over the LAN. What happened was the speed of listing files dropped about 10-20 times the normal speed. The actual copying of the files - once initiated - was normal (about 90% of the 100mbps connection).

I started diagnosing and optimizing the network speed to no avail.

What didn't help:

1. Removing Remote Differential Compression from windows components.

2. Disable Autotuning by running the command:

netsh interface tcp set global autotuning=disabled

3. Removing IPv6 from Network Properties.

4. Clearing DNS cache.

5. Resetting the TCP/IP stack by running:

netsh int ip reset reset.log

6. Resetting Winsock by running:

netsh winsock reset catalog

7. Tweaking the registry based on this article on MSDN.

Finally I decided to check the NIC - which was Intel 82579V Gigabit Ethernet Card.

I disabled the Large Send Offload v2 for both IPv4 and IPv6. Didn't help.

The solution was quite simple (as I suspected).

Something went wrong with the NIC driver. It wasn't an automatic update from Microsoft either. This driver was never updated.

I decided to run the built in diagnostics on the driver window. Everything came back normal.

But when I switched the Link speed to 10mbps - immediately there was an improvement. But of course - we're limited to only 10mbps. So I switched back to 100mbps (auto) - back to the old speed problem.

I went to the Intel download center and got the latest driver for this card (4 day old!) After installing it - everything went back to normal, even better because of the small improvements I made trying to fix the problem.
So this shows that when copying or downloading files over the network takes too long (only on one particular station in the network) - it is best to start from setting the link & duplex speed of the NIC to 10mbps to check for improvement.

Slow network file transfer


Saturday, August 31, 2013

Language pack fails to install in Windows 8

language pack failed to install windows 8


Yesterday I have encountered a major problem with installing a language pack on a brand new Lenovo G585 laptop. The language pack would fail to install each time I tried. After hours of research, trial and error - I came to the conclusion that there is no way but to restore the factory image of the laptop to successfully install the language pack.

Cause:

What causes this problem are certain updates that you might install before installing the language pack. My suspicion is that the update KB2821895 is responsible for this problem, but I can not confirm it. I can only confirm that this update CANNOT be uninstalled and I uninstalled all new updates that came after it to no avail.

Which solutions do not work:

1. Trying to install the language pack again from Control Panel after you receive the error.
2. Trying to install the language pack in Safe Mode or using Clean Boot.
3. Disabling or uninstalling antivirus software or firewall.
4. Deleting or renaming the SoftwareDistribution folder inside the Windows folder.
5. Using LPKsetup or LPKinstall to install the language pack (if you have the language pack as the CAB file).
6. Using DISM to install the language pack inside command line interface.
7. Using DISM to restore the health of the system image.
8. Refreshing the Windows 8 installation without removing user files also does not help.
9. As mentioned above, uninstalling the updates that came after you started Windows 8 for the first time but before trying to install the language pack.

Also you might be successful in installing a different language pack from the one you initially planned to install.

What solution does work (as till today - 31/08/13):

Clean installation of Windows 8 or factory image restore of Windows 8.
Your goal is to install the language pack as the first thing you do when Windows 8 is operational for the first time after installation or restoration of the factory image.
Best idea is also to disable the Automatic Updates until you have finished successfully installing the language pack.