Thursday, December 20, 2007

Fix for Vista Winodws Update Error Code 80004002

When running Windows Update in Vista to check for updates, Windows Update fails to check and search for any new updates or hotfixes available with the following error message:

Windows could not search for new updates

Error(s) found:
Code 80004002

Clicking on Try again button does not help, and the error page keeps coming back. Get help link meanwhile does not have much information regarding code 80004002 even from online help. Sometimes, error code 80004002 may also appear when Windows Update or Automatic Update detects new updates been released, and prompt to user notification about the new updates. However, user can or cannot download the updates, and updates will not install, with system generates error code 80004002.

Error 0×80040002 is a standard COM error that related to E_NOINTERFACE, which means some COM DLL components on the system is not correctly registered, or has become corrupted. It’s probably due to this reason that Windows Update process cannot find the interfaces that its dependencies DLL exports.

To solve and fix the 80040002 stop error on Windows Vista Update, try the following resolution to re-register the Windows Update related DLLs.

Open an elevated command prompt, and type the following commands. Press ‘ENTER’ key after each command:

regsvr32 wuapi.dll
regsvr32 wuaueng.dll
regsvr32 wuaueng1.dll
regsvr32 wucltui.dll
regsvr32 wups.dll
regsvr32 wups2.dll
regsvr32 wuweb.dll

There may be some errors on registering on the DLL, which can be ignored. Once re-registered, check for updates again. In most case, Automatic Update will work almost immediately. If trick does not work, try to disable UAC. You can always re-enable the UAC once the Windows Update gets working again.

If the WU 80004002 problem still persists, install Windows Vista Service Pack 1 (SP1) will probably solve all problems. Currently, Vista SP1 has RC version which is in near-complete stable stage. Users can download Vista SP1 RC via Windows Update or download Vista SP1 RC standalone setup package to install.


Monday, December 17, 2007

Get Vista and Samba to work

Early adopters of Microsoft’s new Vista operating system may notice that it will not connect to Samba share folders out of the box. This will be a bit of a pain for many enterprise customers. The technical reason is because Microsoft Vista’s default security policy is to only use NTLMv2 authentication. According to a Google search Samba doesn’t support this yet.

Update: Some readers have pointed out that NTLMv2 authentication is supported in Samba 3.0. However, this certainly wasn't an option to get this running in my instance.

To get Vista to work with Samba follow the simple instructions below:

1. Open the Run command and type "secpol.msc".

Vista and Samba

2. Press "continue" when prompted by Vista.

3. Click on "Local Policies" --> "Security Options"

Vista and Samba

4. Navigate to the policy "Network Security: LAN Manager authentication level" and open it.

5. By default Windows Vista sets the policy to "NTVLM2 responses only". Change this to "LM and NTLM – use NTLMV2 session security if negotiated".

Vista and Samba

Once you’ve done this Windows Vista will be able to view network drives based on Samba servers and should fix any issues around using Samba as a Primary Domain Controller.


Saturday, December 8, 2007

How to bypass Vista's activation more than 3 times

Step 1. While running a copy of Windows Vista that hasn't yet been activated, click the Start button, type regedit into the Search box, then press Enter to launch the Registry Editor.

Step 2.
Explore down to the following Registry key:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ SL

Step 3. Right-click the Registry key named SkipRearm and click Edit. The default is a Dword (a double word or 4 bytes) with a hex value of 00000000. Change this value to any positive integer, such as 00000001, save the change, and close the Registry Editor.

Step 4.
Start a command prompt with administrative rights. The fastest way to do this is to click the Start button, enter cmd in the Search box, then press Ctrl+Shift+Enter. If you're asked for a network username and password, provide the ones that log you into your domain. You may be asked to approve a User Account Control prompt and to provide an administrator password.

Step 5.
Type one of the following two commands and press Enter:
slmgr -rearm
rundll32 slc.dll,SLReArmWindows
Either command uses Vista's built-in Software Licensing Manager (SLMGR) to push the activation deadline out to 30 days after the command is run. Changing SkipRearm from 0 to 1 allows SLMGR to do this an indefinite number of times. Running either command initializes the value of SkipRearm back to 0.

Step 6.
Reboot the PC to make the postponement take effect. (After you log in, if you like, you can open a command prompt and run the command slmgr -xpr to see Vista's new expiration date and time.)

Step 7. To extend the activation deadline of Vista indefinitely, repeat steps 1 through 6 as necessary.


Fix for broken "Wireless Display Media Viewer" app in Win10 Creator's Update