Advice 1: How to add a line to the hosts file

In the composition of the operating systems Windows series there are a number of files that perform a specific task, for example, hosts. This file has no extension and is positioned as a text document. It is designed to store lists of domains that should not be allowed access to the Internet.
How to add a line to the hosts file
You will need
  • Computer with Windows operating system.
Instruction
1
To find the hosts file, you must open Windows Explorer, navigate to the root of the system drive and open the folder at the following path: WindowsSystem32Driversetc. Run the file by double clicking on it. In the opened window select the program which will open the document. It is recommended to use any text editor, e.g. Notepad or Notepad.
2
In the opened document you will see a list of domains that was paid by you or by the system. The standard list usually consists of several lines: first, lines beginning with the characters "#", and secondly that contain themselves directly ' (via 127.0.0.1).
3
If the document cannot be opened with standard programs, it is recommended to change the file properties. Just right-click on it and select "Properties". In the window that appears, uncheck the item "read Only" and hit button "Apply" and "OK".
4
To add your line, creating an exception for a site, you must copy the line "127.0.0.1 localhost" and paste it on the next line (press Enter). Localhost should be changed to the domain of the blocked website. Thus, the line will look as follows: 127.0.0.1 site.ru. In some cases, before the domain, you should specify the www is generally typical of older sites.
5
Now press Ctrl + S to save the amendments made to the hosts file. Restart the computer, if you want to try this file. To cancel the blocking of the site you want to remove the entire string with the name of the domain from this file. After the removal of a specific ' the problem of the impossibility of maintaining such a file. In this case, you must delete the file and restart the computer.

Advice 2: How to add computer to domain

Connect a local computerrunning Windows^ to the domain is a standard operation performed by the normal operations of the system. The procedure does not require in-depth knowledge and the use of additional software.
How to add computer to domain
Instruction
1
Connection of the local computer that is running Windows to a domain is done in the dialog "system Properties". There are several ways to open this dialog: bring up the main system menu by pressing the button "start" and open the context menu of the element "My computer/Computer" click right mouse button. Select "Properties";- go to "Run". Type sysdm.cpl in the Open box, and confirm the selected actions by clicking the OK button;- go to "control Panel". Expand the "Performance and maintenance" double click the mouse and select the "System".
2
Go to the tab "computer Name" dialog box and type the name of your domain in "Domain". Use the "Advanced" button to change the DNS suffix and save the made changes by pressing three times the button OK. Restart the system to apply the changes.
3
Use an alternative method of adding computer to the domain using the built-in utilities Netdom.exe. To do this, return to the main menu start and click All programs. Open the link to "Standard" and call the context menu item "Command prompt" by right-clicking the mouse. Select "Run as administrator" and напечатайтеnetdom join %ComputerName% /domain:domainname /userd:DOMAINadministrator /password:parolu text box with a command shell. Confirm the selected action by pressing the function key Enter.
4
Please note that by default Windows 7 utility Netdom.exe not available. To activate this built-in tool from the RSAT package, available for free download on the official website of Microsoft.
Is the advice useful?
Search