Monday, January 10, 2011

How to fix "network location cannot be Reached" error in Windows XP

Sometime we face issue in accessing network share of other computers through UNC path e.g. \\192.168.1.1 .
we get following error even if network is working fine and the same share cane be accessed from other machines.
Error Message : The network location cannot be Reached. For information about network troubleshooting, see Windows Help.

Please find below solution If you face issue of getting above error message when accessing any network share through UNC path (e.g. \\192.168.1.1) 
  1. Run Registry Editor (regedit.exe), and check the following registry key:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
  2. Please find if the "TransportBindName" value exists. If either of them does not exist, create it. If either one is incorrect, change the data. The values should be like this:

    Name: TransportBindName
    Type: REGSZ
    Value: \Device\
  3. Under the same registry key ([HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]), if you find the "SMBDeviceEnabled" value exists and is 0, it means Direct Hosting is disabled. You may change it to 1 to turn on it unless there are requirements that this should be disabled.

    Name: SMBDeviceEnabled
    Type: REG_DWORD
    Value: 1
  4. Go to Start--> Run--> Type Services.msc and make sure that " Computer Browser " and " Workstation " services are running.

This should resolve above error.

-
Sumit

Sunday, December 26, 2010

Block Website in Windows without any additional Software


There are three different methods to block websites in windows 7 without installing any additional software.

Method 1: Use Parental Control
Method 2: Use Content Advisor in Internet Options. Go to Internet Options . You should see a "Content" tab; click it and configure it and add sites to block and set content advisor password
This method will only be useful if you are using Internet Explorer as a browser.

Method 3 : This is the simple and easy method to block any site in windows 7.
The best way to do this is by telling windows to resolve wrong ip address ( e.g. 127.0.0.1) for particular site which you want to block . Follow below steps to do so.

Step1 : Go to Start--> All Programs--> Accessories--> Right Click on " Notepad " and click on " Run as Administrator ". This will open Notepad with administrative privilege.

Step2 : From the Notepad , click File--> Open-> point to C:\Windows\System32\drivers\etc\hosts file and click on Open.

Step3 : At the bottom of the file, add the line as shown below for each site which you want to block.
127.0.0.1 website3.com

Step4 : Once you are done with above, Save and close the file.

Now sites which you listed in hosts file will no longer be accessible on that computer.

--
Sumit

Thursday, December 23, 2010

Access / Mount Linux NFS share under Windows 7

Windows 7 has inbuilt Client for NFS  which enables Windows-based computers to access files on Linux/UNIX  Network File System (NFS) servers.

By default Client for NFS Feature does not install when you install Windows 7. You need to install it manually. Follow below steps to enable windows 7 to mount NFS shares.

  1. Go to Start--> Run --> Type " appwiz.cpl "  and press ENTER. It will open  " Program and Features  " having list of all installed softwares. You can open this from Control Panel also. From Control Panel, click on  " Program and Features".
  1. Now from the left pane click on " Turn Windows features on or off ". It will open up the box having list of all features which are available in windows 7. Scroll Down and find out feature named " Service for NFS ". Once you find it , expand it and click the Checkbox to enable the feature. Select both sub features  " Administrative Tools " and " Client for NFS "  and click on OK.

  1. Now you can access NFS shares directly from Run Menu same way you access other windows shares . Start--> Run --> \\ipoflinuxserver\nameofnfsshare  and press ENTER and it will open up the NFS share OR you can map it as a network drive the same way you do for any windows share !!

This is beneficial to users who are working in heterogeneous environment who frequently need to use both linux and windows shares.

--
Sumit