Monday, 26 September 2011

Configure TCP/IP from the Command Prompt

TCP/IP from the Command Prompt

In order to configure TCP/IP settings such as the IP address, Subnet Mask, Default Gateway, DNS and WINS addresses and many other options you can use Netsh.exe.
Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh.exe also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer. Netsh.exe can also save a configuration script in a text file for archival purposes or to help you configure other servers.
Netsh.exe is available on Windows 2000, Windows XP and Windows Server 2003.
You can use the Netsh.exe tool to perform the following tasks:
  • Configure interfaces
  • Configure routing protocols
  • Configure filters
  • Configure routes
  • Configure remote access behavior for Windows-based remote access routers that are running the Routing and Remote Access Server (RRAS) Service
  • Display the configuration of a currently running router on any computer
  • Use the scripting feature to run a collection of commands in batch mode against a specified router.
What can we do with Netsh.exe?
With Netsh.exe you can easily view your TCP/IP settings. Type the following command in a Command Prompt window (CMD.EXE):

netsh interface ip show config

With Netsh.exe, you can easily configure your computer's IP address and other TCP/IP related settings. For example:
The following command configures the interface named Local Area Connection with the static IP address 192.168.0.100, the subnet mask of 255.255.255.0, and a default gateway of 192.168.0.1:

netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

(The above line is one long line, copy paste it as one line)
Netsh.exe can be also useful in certain scenarios such as when you have a portable computer that needs to be relocated between 2 or more office locations, while still maintaining a specific and static IP address configuration. With Netsh.exe, you can easily save and restore the appropriate network configuration.

First, connect your portable computer to location #1, and then manually configure the required settings (such as the IP address, Subnet Mask, Default Gateway, DNS and WINS addresses).
Now, you need to export your current IP settings to a text file. Use the following command:

netsh -c interface dump > c:'location1.txt

When you reach location #2, do the same thing, only keep the new settings to a different file:

netsh -c interface dump > c:'location2.txt

You can go on with any other location you may need, but we'll keep it simple and only use 2 examples.
Now, whenever you need to quickly import your IP settings and change them between location #1 and location #2, just enter the following command in a Command Prompt window (CMD.EXE):

netsh -f c:'location1.txt

or

netsh -f c:'location2.txt

and so on.
You can also use the global EXEC switch instead of -F:

netsh exec c:'location2.txt

Netsh.exe can also be used to configure your NIC to automatically obtain an IP address from a DHCP server:

netsh interface ip set address "Local Area Connection" dhcp

Would you like to configure DNS and WINS addresses from the Command Prompt? You can. See this example for DNS:

netsh interface ip set dns "Local Area Connection" static 192.168.0.200

and this one for WINS:

netsh interface ip set wins "Local Area Connection" static 192.168.0.200

Or, if you want, you can configure your NIC to dynamically obtain it's DNS settings:

netsh interface ip set dns "Local Area Connection" dhcp

BTW, if you want to set a primary and secondary DNS address, add index=1 and index=2 respectively to the lines of Netsh command.
As you now see, Netsh.exe has many features you might find useful, and that goes beyond saying even without looking into the other valuable options that exist in the command.

Friday, 23 September 2011

Error 1327 Invalid Drive: G:\


Please perform the following:

Click the Start Orb and type CMD in the search, Right Click the Command Prompt Icon and left Click Run as Administrator
In the Command Prompt type the following:
subst G: C:\
Hit Enter

Attempt to install desired software

Internet Email Configuration – Outlook Express

How to configure Outlook Express to send and receive Internet Email: 
1) Open Outlook Express
2) Go to Tools->Accounts->Mail
3) Click on Add->Mail. A dialog that looks like this will display:
4) Enter your name for display name – example, John Smith, then click Next 


 5) A dialog looking like this will display: Enter your email address – example, john.smith@mydomain.com, then click Next.


 6) The following dialog will display. For “My incoming mail server is a “ pull down, select POP3. Enter the POP3 server supplied to you with your emailbox information as the “Incoming mail (POP3, IMAP, or HTTP) server”. Enter the SMTP server supplied to you with your emailbox information as the “Outgoing mail (SMTP) server”. Click next after filling in all values. 

 
7) A dialog requesting user id and password information will display: Enter the user id supplied to you with your emailbox information for “Account name:”. Enter the password supplied to you with your emailbox information as the “Password:”. Make sure “Remember password” is checked otherwise you will need to supply your password every time you start up Outlook Express. Click on Next after you’ve entered this information. 


 8) A dialog will display congratulating you on successfully entering in all information and to click on Finish to save these settings. Click on Finish. You are nearly finished. 


 9) You will need to turn on one more check box in order to start using Outlook Express to send and receive email. From the main Outlook Express window, click on Tools->Accounts->Mail. You will see a list of email accounts. There will be an account named after the POP3 server you supplied in step 6. Click on this account, and then click on Properties. A dialog similar to this will display: Click on the “Servers” tab (second from left) at the top of the dialog box. 

 
10) Make sure the “My server requires authentication” check box is checked: Then click on OK. 


11) You will now be back at the dialog titled Internet Accounts. Click on Close. This will take you back to the Outlook Express main window.  
   12) You may now start sending & receiving email.

Monday, 19 September 2011

Acronis True Image Home 2010 on Clone HARD DISK to HARD DISK


Acronis True Image Home 2010 on Clone HARD DISK to HARD DISK

Start Acronis True Image Home 2010  


 
Select Tools & Utilities



§ Automatic (recommended in most cases). In automatic mode, you will only have to take several simple actions to transfer all the data, including partitions, files and folders, to a newer disk, making it bootable if the original disk was bootable.
§ Manual. Manual mode will provide more data transfer flexibility. Manual mode can be useful if you need to change the disk partition layout.

If the program finds two disks, one partitioned and another unpartitioned, it will automatically recognize the partitioned disk as the source disk and the unpartitioned disk as the destination disk. In such case, the next steps will be bypassed and you will be taken to the cloning Summary screen.

Selecting a source disk

You can determine the source and destination using the information provided in this window (disk number, capacity, label, partition and file system information). If the program finds several partitioned disks, it will ask you which is the source (i.e. the older data disk).
The current Acronis True Image Home 2011 version does not support cloning of dynamic and GPT disks.

§ Select the source disk and click Next to continue.




Viewing disk and partition information

§ Columns - selects the columns to display. You can change the width of a column by dragging its borders with the mouse.
Disk properties (duplicated in the context menu, invoked by right-clicking objects) - opens the selected partition or disk properties window.

This window contains two panels. The left panel contains the properties tree and the right describes the selected property in detail. The disk information includes its physical parameters (connection type, device type, size, etc.); partition information includes both physical (sectors, location, etc.), and logical (file system, free space, assigned letter, etc.) parameters.

Selecting a destination disk

After you select the source disk, you have to select the destination where the disk information will be copied to. The previously selected source becomes grayed-out and disabled for selection.
 Select the destination disk and click Next to continue.



At this point, the program checks to see if the destination disk is free. If not, you will be prompted by the Conformation window stating that the destination disk contains partitions, perhaps with useful data. To confirm deletion of the partitions, click OK. Note that no real changes or data destruction will be performed at this time! For now, the program will just map out cloning. All changes will be implemented only when you click Proceed. If any disk is unpartitioned, the program will automatically recognize it as the destination and bypass this step.