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.

Source: http://www.mydigitallife.info/2007/12/19/fix-vista-winodws-update-error-code-80004002/

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.

Source:
http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=339270746

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
or
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.

Source: http://windowssecrets.com/comp/070315/#story1

Monday, November 19, 2007

Fix for Windows Update Error 0xC80003FB

1. Click Start, select Run, type "services.msc" and press enter

2. Now look for the "Automatic Updates" service and stop it

3. Click Start, select Run, type in: "%windir%\SoftwareDistribution" and press enter

4. Open the Datastore folder and delete its contents.

5. Try running the Windows Updates again.

Thursday, October 4, 2007

How to install Oracle 10g in Vista

Run the setup.exe in Windows XP Compatibility Mode
  1. Right-click the setup executable "setup.exe" and choose Properties from the context menu that appears
  2. Click on the Compatibility tab
  3. Check the [ ] Run this program in compatibility mode for: box and select Windows XP (Service Pack 2)
  4. Under privilege level check Run this program as an administrator
  5. Click Apply
  6. Click OK

Friday, September 21, 2007

How to Disable Secure Desktop When Prompting for Elevation


If you have the User Account Control turned on, you have noticed that it causes a sudden change in the desktop display everytime it prompts for elevation. This can become annoying for some users. You can disable the secure desktop when prompting for elevation while keeping the UAC turned on. Follow these steps:

1. Press the WinKey+R to bring up the Run dialog box
2. Type secpol.msc
3. Click OK
4. When the UAC prompt appears, select Continue
5. The Local Security Policy window will appear
6. In the left pane, expand Local Policies
7. Select Security Options
8. In the right pane, scroll down to the bottom
9. Double-click User Account Control: Switch to the secure desktop when prompting for elevation
10. Under the Local Security Setting, select the Disabled radio button.
11. Click OK
12. Close the Local Security Policy window

Wednesday, September 19, 2007

Hello World!

public class HelloWorld
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}

FizzBuzz in different languages

Java: import java.util.TreeMap ; public class Main { public static void main (String[] args) { System. out .println( &...