Thursday, October 29, 2009

Why Repair/Reset Winsock settings?

Most of the Internet connectivity problems arise out of corrupt Winsock settings. Windows sockets settings may get corrupted due to the installation of a networking software, or perhaps due to Malware infestation. You will be able connect to the Internet, but the packets won't transfer back and forth. And errors such as Page cannot be displayed may occur when using Internet Explorer. This article lists the methods (with links to third-party websites) to reset/repair the Winsock configuration to defaults.


Windows XP Service Pack 2 - New Winsock NETSH commands
These Two new Netsh commands are available in Windows XP Service Pack 2.


1.    netsh winsock reset catalog.
This command resets the Winsock catalog to the default configuration. This can be useful if a malformed LSP is installed that results in loss of network connectivity. While use of this command can restore network connectivity, it should be used with care because any previously-installed LSPs will need to be re-installed. The output results to this in Command Prompt (CMD.EXE) “netsh winsock reset”


2.    netsh winsock show catalog.
This command displays the list of Winsock LSPs that are installed on the computer. The output results to a file type this in Command Prompt (CMD.EXE) “netsh winsock show catalog >D:\Winsock.txt”


There are also some Tools available to reset.


WinSock XP Fix offers a last resort if your Internet connectivity has been corrupted due to invalid or removed registry entries. It can often cure the problem of lost connections after the removal of Adware components or improper uninstall of firewall applications or other tools that modify the XP network and Winsock settings. If you encounter connection problems after removing network related software, Adware or after registry clean-up; and all other ways fail, then give WinSock XP Fix a try. It can create a registry backup of your current settings, so it is fairly safe to use. We actually tested it on a test machine that was having a Winsock problem due to some Adware removal, and after running the utility and rebooting, the connectivity was restored.

Pros: May save you hours of headaches; can fix tricky connection problems
Cons: Not actively supported or developed
Type: Freeware.
OS: Win XP

gpedit.msc or (Group Policy Editor) access denied

When running a Resultant Set of Policy from the Group policy management Console (GPMC) the following error is displayed or Also, the following ‘access denied’ error appears when running gpresult.exe from a command prompt on the server:



Running on other servers seems okay, but on these specific servers there is a problem.
 
Resolution
This can be resolved by doing the following:
Go to “start menu”, “Run”, type “CMD” and Enter.
c:
cd\windows\system32
regsvr32 /n /I userenv.dll
cd\windows\system32\wbem
mofcomp scersop.mofs
gpupdate /force

or create a .cmd file and copy the script below

cd /d %windir%\system32
start /wait regsvr32 /n /I userenv.dll
cd wbem  
start /wait mofcomp scersop.mof
gpupdate /force
gpresult

Information on How to Use the Group Policy Results (GPResult.exe) Command Line Tool:
Intended for administrators, the Group Policy Results (GPResult.exe) command line tool verifies all policy settings in effect for a specific user or computer. Administrators can run GPResult on any remote computer within their scope of management. By default, GPResult returns settings in effect on the computer on which GPResult is run.

Using GPResult Command Line Tool:
Parameters: /s Computer        
Function: Specifies the name or IP address of a remote computer. (Do not use backslashes.) The default is the local computer.
Parameters: /u Domain\User
Function: Runs the command with the account permissions of the user that is specified by User or Domain\User. The default is the permissions of the current logged-on user on the computer that issues the command.
Parameters: /p Password
Function: Specifies the password of the user account that is specified in the /u parameter.
Parameters: /user TargetUserName
Function: Specifies the user name of the user whose RSOP data is to be displayed.
Parameters: /scope {user|computer}
Function: Displays either user or computer results. Valid values for the /scope parameter are user or computer. If you omit the /scope parameter, gpresult displays both user and computer settings.
Parameters: /v
Function: Specifies that the output display verbose policy information.
Parameters: /z
Function: Specifies that the output display all available information about Group Policy. Because this parameter produces more information than the /v parameter, redirect output to a text file when you use this parameter (for example, gpresult /z >policy.txt).
Parameters: /?
Function: Displays help at the command prompt.
      

How to unregister a dll file in Windows XP or Vista?

Unregister DLL in Windows XP or Vista
Sometimes we need to unregister a dll file to troubleshoot a problem in Windows XP or Vista.
Here’s how to do it:
From Start –> Run, type “cmd” then click on Open. (Where is RUN in Windows Vista?)


Type “regsvr32 /u filename.dll” where “filename” is the name of the file that you like to unregister.

Please keep in mind that this involves system modification and can be highly risky. It’s always recommended to keep a system backup handy, in case things go wrong.

Where is RUN in Windows Vista?

Windows Vista does not have RUN in Start Menu by default, but you can easily access it by pressing “Windows” + “R” keys simultaneously.

You can also customize the Start Menu by:
Right-click on the task-bar, then select “Properties“.
    Click on “Start Menu” tab, then click on “Customize“.
      Check “Run command“ and Click “OK”.


        Simple isn't it? Try it yourself...

        Tuesday, October 27, 2009

        How to use the command line for uninstalling an Application?

        Description:    
        By using the Windows Instrumentation command-line interface (WMIC), you can easily uninstall an application without having to use the GUI. Once you become familiar with the steps, it will be much faster than having to access the Add/Remove Programs applet in the Control Panel.

        Steps:
        1. Open CMD and Type WMIC or Directly Type WMIC on Run command and press Enter/Return key.
        2. Type product get name and press Enter/Return key. (You will find list of applications installed in the computer, choose your application.e.g.: Windows live Toolbar).
        3. Type Product where name="Windows Live Toolbar" call uninstall and press Enter/Return key.
        4. When prompted for an input Y to confirm that you wish to uninstall the application and press Enter/Return key.

        Applies to: Windows XP Professional, Windows Vista, Windows Server 2003 and Windows Server 2008.

        This information is provided as per my Blog Visiter's Requirement...

        Thanks

        Tuesday, October 13, 2009

        How to Change your Folder Background Theme.



        How to Change your Folder Back Ground Theme:

        It is true that lots of people want their Computer customized as per their requirement. To help these people, i am going to share an information on how to Change your "folder's background" with an image as per your requirement.

        CODE:
        [ExtShellFolderViews]
        {BE098140-A513-11D0-A3A4-00C04FD706EC}
        [{BE098140-A513-11D0-A3A4-00C04FD706EC}]
        Attributes=5
        IconArea_Image=C:\Documents and Settings\Administrator\My Documents\Jackie Chan.jpg
        IconArea_Text=0x00FFFFFF

        Copy and paste the above given codes in a notepad, change the "image location" as per your requirement and save this file as Desktop.ini. in my documents or any other preferred folder..
        Note: Keep your "Save as type" as "All Files"
        I have Hidden my image file as well as the desktop.ini file in my my documents folder so that no one identifies how i did so...

        More information;
        Fonts you can change for the IconArea_Text=
        Black- 0x00000000
        White- 0x00FFFFFF
        Green- 0x0000FF00
        Blue- 0x00FF0000
        Purple- 0x00C000C0
        Red- 0x000000FF
        Yellow- 0x0000FFFF
        Indigo- 0x00FFFF00


        Choose the font color that is best for your Image.

        Start rocking your folders.............