Social Icons

Wednesday, August 14, 2013

How to Enable “Group Policy Editor” (gpedit.msc) in Windows 7 Home Premium, Home Basic and Starter Editions?

Many times we post tutorials which require Group Policy Editor (gpedit.msc). But some Windows 7 editions (Home Premium, Home Basic and Starter) don't come with Group Policy Editor. Only Windows 7 Professional, Enterprise and Ultimate editions come with Group Policy Editor installed.
Today we are going to share a simple installer which installs the required system files in Windows so that you can enjoy Group Policy Editor in all Windows 7 editions.

"jwils876" @ DA has shared a small setup file to enable Group Policy Editor in Windows 7 Starter, Home Basic and Home Premium editions.
The installer has been originally created by "davehc" @ Windows7forums, so thanks goes to him as well.
First download the setup file using following link:
Download Group Policy Editor Installer
Its a ZIP file, extract it using WinRAR or 7-Zip. Run the extracted setup.exe file. It'll install the files and you'll be able to access gpedit.msc command via RUN or Start Menu search box.
NOTE 1: For Windows 7 64-bit (x64) users! You'll also need to go to "SysWOW64" folder present in "C:\Windows" folder and copy "GroupPolicy", "GroupPolicyUsers" folders and gpedit.msc file from there and paste them in "C:\Windows\System32" folder.
NOTE 2: If you are getting "MMC could not create the snap-in" error message while running gpedit.msc, check out following steps to fix the problem. Basically it happens when your username in Windows contains more than one word.
1. Run the installer and leave it at the last step (do not click on the "Finish" button).
2. Now go to C:\Windows\Temp\gpedit\ folder.
3. If you are running 32-bit (x86) edition of Windows 7, right-click on x86.bat file and choose "Open With -> Notepad" option. If you are running 64-bit (x64) edition of Windows 7, right-click on x64.bat file and choose "Open With -> Notepad" option.
4. You'll find a total of 6 lines containing the following string in the file:
%username%:f
5. Edit those lines and replace %username%:f with "%username%":f
For example:
Original: icacls %WinDir%\SysWOW64\gpedit.dll /grant:r %username%:f
New: icacls %WinDir%\SysWOW64\gpedit.dll /grant:r "%username%":f
6. Save and run the file (right-click -> Run as Administrator).
7. That's it. You'll have working gpedit.msc.

Tuesday, August 13, 2013

(SOLVED) Unable to remove printer driver from Windows 7

I was contacted by a customer few days ago with yet another challanging problem. He called and said: “Luka hi, we can't upgrade or remove some printer drivers from one third of our Windows 7 x64 SP1 machines.”

The error message when we tried to remove different printer driver packages was:
Failed to remove driver HP Universal Printing PCL 6 (v5.2). The specified printer driver is currently in use.
Failed to remove driver HP Universal Printing PCL 6. The specified printer driver is currently in use.
Failed to remove package hpcu111u.inf. Driver package is in use.

and

Failed to remove driver Kyocera Classic Universaldriver. The specified printer driver is currently in use.
Failed to remove package oemsetup.inf. Driver package is in use.


I started troubleshooting this and tried almost all suggested solutions I could found on the net like:
- stop / start spooler
- reboot to safemode and unistall driver from there
- msconfig disabling all non Microsoft services
- cleanspl.exe
- logged on as every user, deleted both the printer and the driver
- disabling bidirectional support
- RUNDLL32 PRINTUI.DLL,PrintUIEntry /dd /c \\MachineName /m "AGFA-AccuSet v52.3" /h "Intel"
- printui /s /t2
- MS forum post: Deleting Printer drivers from Vista system 
- MS Answers question: Trying to un-ininstall print driver error message ...
- Skidzopedia post: How To Fix “Cannot remove or delete network printer” Error in Windows 
- and probably other solutions that also didn't help ...

At the end I found interesting workaround that went like this:
1. First I removed printer in "Devices and Printers"
2. Then I stopped print spooler
3. In registry I opened

HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows x64\Print Processors\

4. I renamed all Print Processors that were listed. Like Winprint to Winprint.old, Hpcpp107 to Hpcpp107.old, and so on ...
5. I started print spooler
6. Removed problematic driver pack in Print Management MMC
7. Reopened registry location

HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows x64\Print Processors\

8. Renamed back all Print Processors to original name. Like Winprint.old to Winprint, Hpcpp107.old to Hpcpp107, and so on ...
9. Restart print spooler
10. Installed new printer drivers
11. Tested printing

Maybe this procedure will also help someone else with similar problems :)

This is it for today. Have fun!

Thursday, May 16, 2013

Sreesanth: India has changed, Indians haven't, hence shocked


It is surprising how time and again we feel shocked by instances of corruption, financial or moral, as if they are happening for the first time. Take for example, the latest IPL 6 spot-fixing scandal allegedly involving three players of Rajasthan Royals, including one who has represented India at the highest stage. There is nothing to feel being let down by the latest scandal for it is not the first time that cricket has been tainted in this country. Just like terror attacks in our cities, which are no more something fresh to have occurred.
But yet we feel shattered and engage ourselves in witch-hunting. It is more disappointing. There is an unwritten law in this country that whenever something ‘bad' happens to us, we raise our finger at our western neighbour and other related elements. A terror attack means Pakistan's hands and betting in cricket means connection of the underworld.

Sree: Can we seek a structural change?

Witch-hunting has become a tiring game
These allegations might be true but how are we really going to get things rectified and put a much sought-after cleaner system in place? Just by creating an uproar each time we feel betrayed and blaming others? It is absolutely foolish to blame the IPL for whatever has happened on the 22 yards for match or spot fixings had happened in international games as well where national honour is at stake. We had seen how a much-revered captain like Hansie Cronje fell into the trap and could never come out of it till his mysterious death.
We had also seen how a popular coach from South Africa, Bob Woolmer, was mysteriously killed in the middle of the World Cup, the biggest cricket tournament held on this planet. We have seen how some of our cricketers were banned from playing cricket (one even fell one short of 100 tests) because of fixing allegations. These low-points in the history of the game were much more devastating than what has happened to a mediocre cricketer named Sreesanth today. Yet, we are behaving as if our trust has been breached for the first time.
Our hollow morality, shaped by the media, is not helping anything
It is a pathetic state of denial that we live in today. Our sense of morality has become so superficial and media-influenced that we fail to see things in the right perspective. If we are seeing a so-called steady degeneration of moral standards, it is not because suddenly as a people we have turned bad, but because our structural reality has changed.
The uproar over corruption is slowly turning into a farce in this country because corruption has emerged into a structural issue which has been internalized in our system and minds. External display of opposition can not change the prevailing state of affairs. Never. What will change is the subject of the media's ‘breaking news' section and the names that an Arvind Kejriwal takes every time. But even there is no guarantee that the crusaders against corruption will remain clean in times to one.
These issues are structural and we need a thorough approach
In post-liberalisation India, the socio-economic structure is undergoing a serious change. This transition has been unseen so far. After years of choking our own economic fortunes, India learnt the hard way that the path it had chosen was not tenable. It was an incredible situation where our political credentials improved but the economic capacity was crippled. The nationalistic passion suffocated a massive market and energy till it was obvious that they had to be exposed and unleashed, respectively. The disadvantage was that we weren't prepared to adapt ourselves to the sudden surge of libralising waves and the consequences were obvious.
We need to institutionalise our economy for the people, just like our politics
The problem we have got today is that we don't have an institutional mechanism to deal with economic matters as we have in our political sector. Just like we had nurtured our democratic political structure, we need to develop institutional ways to achieve a viable economic structure.
At the moment, the charm and attraction of a neo-liberal economy imposed on a half-feudal social structure are not doing much favour to our economic behaviour. This situation can not be changed just by making laws. India needs to think anew on its economic structure, just as it had done on its political structure over 60 years ago.
Corruption is not confined to a section: What we do? Punish all?
What we are doing at the moment is attacking people for trying to make good fortunes by utilizing the offers that the system offers. But it is not the tendency among the politicians, cricketers, filmstars or other VIPs only. The tendency is also widely seen among ordinary people in the society. Do we then punish the entire society for feeling an urge to make a few extra bucks fast? Or if it is better that we put into practice a viable economic model whereby all sections of the society get a valid share of what is in the offing, just like the political rights that our democracy offers?
Coming back to Sreesanth, people like him are vulnerable victims of the new half-developed system that India offers at the moment. This country has changed permanently since the 1990s and we can not afford a purist view to judge things in the black and white today. The IPL can't be called bad because of the cheerleaders' dance or bars are keeping open till late night. We must also see that it has emerged into a major industry and given a livelihood to many people. Do we curse the IT boom? If not, then we can't blame IPL either. These are all part and parcel of the new economy.
The real issue lies somewhere else and it is far more important than a Sreesanth involving himself with spot-fixing or a Dawood influencing bookies or one of Pawan Bansal's kin taking illegal money. Is there any leadership to take the bull by its horn?

Tuesday, April 2, 2013

Lost Administrator Password. (Windows XP)

Issue

How can i retrieve a lost administrator password?

Solution

  • First reboot Windows XP in safe mode by re-starting the computer and pressing F8 repeated as the computer starts up. Then (in safe mode) click Start and then click Run. In the open box type "control userpasswords2" without the quotes - I have just used quotes to differentiate what you have to type.
  • You will now have access to all the user accounts, including the administrators account and will be able to reset the lost password.
  • Just click the administrators user account, and then click Reset Password.
  • You will need to add a new password in the New password and the Confirm new password boxes, and confirm by clicking OK.
  • All done, you have recovered the lost administrators password!