Lmhosts sam что за файл windows 10

Файл lmhosts.sam считается разновидностью DLL-файла. DLL-файлы, такие как lmhosts.sam, по сути являются справочником, хранящим информацию и инструкции для исполняемых файлов (EXE-файлов), например appidpolicyconverter.exe. Данные файлы были созданы для того, чтобы различные программы (например, Microsoft Office Access 2010) имели общий доступ к файлу lmhosts.sam для более эффективного распределения памяти, что в свою очередь способствует повышению быстродействия компьютера.

К сожалению, то, что делает файлы DLL настолько удобными и эффективными, также делает их крайне уязвимыми к различного рода проблемам. Если что-то происходит с общим файлом SAM, то он либо пропадает, либо каким-то образом повреждается, вследствие чего может возникать сообщение об ошибке выполнения. Термин «выполнение» говорит сам за себя; имеется в виду, что данные ошибки возникают в момент, когда происходит попытка загрузки файла lmhosts.sam — либо при запуске приложения Microsoft Office Access 2010, либо, в некоторых случаях, во время его работы. К числу наиболее распространенных ошибок lmhosts.sam относятся:

  • Нарушение прав доступа по адресу — lmhosts.sam.
  • Не удается найти lmhosts.sam.
  • Не удается найти C:\Windows\Temp\527D94AF-D053-4381-B105-0D815D53791E\amd64_microsoft-windows-lmhsvc_31bf3856ad364e35_10.0.16299.371_none_602935ae5b3a5254\lmhosts.sam.
  • Не удается зарегистрировать lmhosts.sam.
  • Не удается запустить Microsoft Office Access 2010. Отсутствует требуемый компонент: lmhosts.sam. Повторите установку Microsoft Office Access 2010.
  • Не удалось загрузить lmhosts.sam.
  • Не удалось запустить приложение, потому что не найден lmhosts.sam.
  • Файл lmhosts.sam отсутствует или поврежден.
  • Не удалось запустить это приложение, потому что не найден lmhosts.sam. Попробуйте переустановить программу, чтобы устранить эту проблему.

Файл lmhosts.sam может отсутствовать из-за случайного удаления, быть удаленным другой программой как общий файл (общий с Microsoft Office Access 2010) или быть удаленным в результате заражения вредоносным программным обеспечением. Кроме того, повреждение файла lmhosts.sam может быть вызвано отключением питания при загрузке Microsoft Office Access 2010, сбоем системы при загрузке lmhosts.sam, наличием плохих секторов на запоминающем устройстве (обычно это основной жесткий диск) или, как нередко бывает, заражением вредоносным программным обеспечением. Таким образом, крайне важно, чтобы антивирус постоянно поддерживался в актуальном состоянии и регулярно проводил сканирование системы.

The LMHOSTS (LAN Manager Hosts) file is used to enable Domain Name Resolution under Windows when other methods, such as WINS, fail. It is used in conjunction with workgroups and domains. If you are looking for a simple, general mechanism for the local specification of IP addresses for specific hostnames (server names), use the HOSTS file, not the LMHOSTS file.

The file, if it exists, is read as the LMHOSTS setting file. A sample file (lmhosts.sam) is provided. It contains documentation for manually configuring the file.

Windows 95, 98, Millennium Edition

The file is located in %windir%, and a sample file (lmhosts.sam) is installed here. Note that %windir% is an environment variable pointing to the Windows installation directory, usually C:\Windows.

Windows NT 4.0, Windows 2000, Windows XP, Vista, 7, 8, 10, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2016+

The file is located in %windir%\system32\drivers\etc\, and a sample file (lmhosts.sam) is installed here. Note that %windir% is an environment variable pointing to the Windows installation directory, usually C:\Windows.
  • HOSTS file
  • NetBIOS
  • Domain Browsing with TCP/IP and LMHOSTS Files
  • LMHOSTS File Information and Predefined Keywords Microsoft knowledgebase article
  • Using LMHOSTS Files on Windows NT

Permanent link:

https://auditsquare.com/advisory/windows/how-to-setup-uac

In Windows system there are many configuration files, two of them are hosts” and “lmhosts.sam” files.

What is the “hosts” file?

The hosts file is used by an operating system to map hostnames to IP addresses. It is a plain text file, and is conventionally named hosts.

The hosts file contains lines of text consisting of an IP address in the first text field followed by one or more host names. Each field is separated by white space (blanks or tabulation characters). Comment lines may be included; they are indicated by a hash character (#) in the first position of such lines. Entirely blank lines in the file are ignored. For example, a typical hosts file may contain the following:

# This is an example of the hosts file
127.0.0.1  localhost loopback
::1        localhost
127.0.0.1  www.unwantedsite.com

The Hosts file today seems to be more used for blocking unwanted web sites.

What is the “lmhosts.sam” file?

The LMHOSTS (LAN Manager Hosts) file is used to enable Domain Name Resolution under Windows when other methods, such as WINS, fail. It is used for NetBIOS name resolution.
[Source: Wiki, DCIT]

Why is it a security issue?

These configuration files could be misused for unwanted redirection to a phishing site by malware applications. User could type well-known address of his bank, but is redirected to bank phishing site, because of record in the configuration file.

How to fix it?

Using GUI

There is no special GUI for these settings, you have to use Windows Explorer or some File manager application.

  • Host file is in Windows located in %SystemRoot%\system32\drivers\etc\, where %SystemRoot% is usually C:\Windows
  • LMHOSTS file is in Windows located in %windir%\system32\drivers\etc\ , where %windir% is usually C:\Windows

These files should be empty or each line should begin with “#“ character. There are exceptions, for example if you are using some “immunization” software like Spybot Search & Destroy.

Using a group policy

It is not possible to easy setup this policy in group policy. You can use some scripts, but it is over this manual (you can try to contact us).

Файл Lmhosts предназначен для разрешения имен в протоколе Net BIOS в локальной подсети. Этот файл содержит список соответствия между Net BIOS именами и IP-адресами компьютеров в локальной сети, LAN Manager hosts .
Файлы lmhosts, без расширения! и lmhosts.sam находятся в зависимости от версии Windows в папках

Windows XP -> C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K -> C:\WINNT\SYSTEM32\DRIVERS\ETC
Windows 98\ME -> C:\WINDOWS

Синтаксис файла подробно описан в файле lmhosts.sam. Согласно его правилам :

  • Каждый элемент должен располагаться в отдельной строке.
  • IP-адрес должен начинаться с первой позиции строки.
  • После IP адреса через пробел или символ табуляции следует соответствующее Net BIOS имя компьютера.
  • Знак «#» используется обычно для указания на начало комментария за некоторыми исключениями.
    • В частности, символы #PRE используются для занесения записей из файла в кэш.

Редактируется файл lmhosts программой notepad.exe Блокнот.

Пример записи в файле :
192.168.0.1 comp1 #PRE
Эта запись означает что компьютеру comp1 соответствует IP адрес 192.168.0.1 и запись будет занесена в кэш при загрузке компьютера.

В случае, если в домашней локальной сети используется статическая IP адресация, этот файл может найти применение в качестве замены DHCP-серверу, поскольку является составной частью системы разрешения Net BIOS имен. Если указать в нем имена и IP адреса компьютеров сети с директивой #PRE, то просмотр компьютеров в папке «Сетевое окружение» будет заметно ускорен. Связано это с тем, что процесс разрешения Net BIOS имен будет значительно укорочен.

Просмотреть список записей в кэше можно произвести с помощью команды nbtstat -c

Нажмите "Пуск" - Выполнить - cmd - OK и введите команду

Командой nbtstat -R (c большой буквой R!) можно очистить кэш и перезагрузить записи из файла lmhosts, помеченные директивой #PRE. О наличии таких записей говорит значение -1 sec в графе Life. Для имен, разрешенных с помощью широковещательной рассылки, значение Life будет изменяться от 600 sec до 0.

Директивы, используемые в файле LMHOSTS

Директива

Описание

#PRE Данный адрес будет автоматически загружен в Net BIOS кэш при инициализации протокола. Используйте эту директиву для более быстрого разрешения имен наиболее часто используемых хостов.
#DOM:[domain_name] Содержит имя домена.
#NOFNR Позволяет использовать прямые запросы Net BIOS имени для старой версии LAN manager UNIX systems.
#BEGIN_ALTERNATE #END_ALTERNATE Определяет список альтернативных путей к LMHOSTS файлам
#INCLUDE Включение списка имен другого LMHOSTS файла.
#MH Добавление дополнительных значений для компьютера с несколькими сетевыми интерфейсами.


Линки по теме :
http://forum.ixbt.com/post.cgi?id=print:86:10 – Одноранговые сети на протоколе TCP/IP
http://support.microsoft.com/kb/314108/ – How to Write an LMHOSTS File for Domain Validation and Other Name Resolution Issues

lmhosts.sam — Repair Issues and Download

Sometimes Windows system displays error messages regarding corrupted or missing lmhosts.sam files. Situations like that can occur, for example, during a software installation process. Each software program requires certain resources, libraries, and source data to work properly. Corrupted or nonexistent lmhosts.sam file can therefore effect in failed execution of the started process.

lmhosts.sam file LMHOSTS Sample. The file was developed by Microsoft for use with Windows software. Here you will find detailed information about the file and instructions how to proceed in the event of lmhosts.sam related errors on your device. You can also download lmhosts.sam file compatible with Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista, Windows XP devices which will (most probably) allow you to solve the problem.

Compatible with: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista, Windows XP

User popularity

  • 1 Information about lmhosts.sam file
  • 2 Errors related to lmhosts.sam file
  • 3 How to fix lmhosts.sam related errors?
    • 3.1 Scanning for malicious software
    • 3.2 System and driver update
    • 3.3 System File Checker tool
    • 3.4 System recovery
  • 4 Download lmhosts.sam
    • 4.1 List of lmhosts.sam file versions

File info

General information
Filename lmhosts.sam
File extension SAM
Type Dynamic Link Library
Description LMHOSTS Sample
Software
Program Windows 10
Software Windows
Author Microsoft
Software version 10
Details
File size 3683
Oldest file 2006-09-18
Latest file 2017-03-18

lmhosts.sam

There are various types of errors related to lmhosts.sam file. lmhosts.sam file may be located in wrong file directory on your device, may not be present in the system, or may be infected with malicious software and therefore not work correctly. Below is a list of most common error messages related to lmhosts.sam file. If you encounter one listed below (or similar), please consider the following suggestions.

  • lmhosts.sam is corrupted
  • lmhosts.sam cannot be located
  • Runtime Error — lmhosts.sam
  • lmhosts.sam file error
  • lmhosts.sam file cannot be loaded. Module was not found
  • cannot register lmhosts.sam file:
  • lmhosts.sam file could not be loaded
  • lmhosts.sam file doesn’t exist

lmhosts.sam

Application could not be started because lmhosts.sam file is missing. Reinstall the application to solve the problem.

OK

Problems related to lmhosts.sam can be addressed in various ways. Some methods are meant only for advanced users. If you don’t have confidence in your skills, we suggest consulting a specialist. Fixing lmhosts.sam file errors should be approached with utmost caution for any mistakes can result in unstable or unproperly working system. If you have the necassary skills, please proceed.

lmhosts.sam file errors can be caused by various factors, so its is beneficial to try to fix them using various methods.

Step 1: Scan your computer for any malicious software

Windows files are commonly attacked by malicious software that prevents them from working properly. First step in addressing problems with lmhosts.sam file or any other Windows system files should be scanning the system for malicious software using an antivirus tool.

If by any chance you don’t have any antivirus software installed on your system yet, you should do it immediately. Unprotected system is not only a source of file errors, but, more importantly, makes your system vulnerable to many dangers. If you don’t know which antivirus tool to choose, consult this Wikipedia article – comparison of antivirus software.

Step 2: Update your system and drivers.

Installing relevant Microsoft Windows patches and updates may solve your problems related to lmhosts.sam file. Use dedicated Windows tool to perform the update.

  1. Go to the Windows «Start» menu
  2. Type «Windows Update» in the search field
  3. Choose the appropriate software program (name may vary depending on your system version)
  4. Check if your system is up to date. If any unapplied updates are listed, install them immediately.
  5. After the update has been done,restart your computer in order to complete the process.

Beside updating the system, it is recommended that you install latest device drivers, as drivers can influence proper working of lmhosts.sam or other system files. In order to do so, go to your computer or device producer’s website where you will find information regarding latest driver updates.

Step 4: Restoring Windows system

Another approach is to restore system to previous state, before the lmhosts.sam file error occured. In order to restore your system, follow the instructions below

  1. Go to the Windows «Start» menu
  2. Type «System Restore» in the search field
  3. Start the system restore tool – it’s name may differ depending on version of the system
  4. The application will guide you through the process – read the messages carefully
  5. After the process has finished, restart your computer.

If all the above-mentioned methods failed and the lmhosts.sam file problem has not been resolved, proceed to the next step. Remember that the following steps are intended only for advanced users.

Download and replace lmhosts.sam file

The last solution is to manually download and replace lmhosts.sam file in appropriate folder on the disk. Select file version compatible with your operating system and click the «Download» button. Next, go to your web browser’s «Downloaded» folder and copy the downloaded lmhosts.sam file.

Go to the folder where the file should be located and paste the downloaded file. Below is the list of lmhosts.sam file example directory paths.

  • Windows 10: C:\Windows\System32\drivers\etc\
  • Windows 8.1:
  • Windows 8:
  • Windows 7:
  • Windows Vista:
  • Windows XP:

If the steps did not solve your lmhosts.sam file problem, you should consult a professional. A probability exists that the error(s) might be device-related and therefore should be resolved at the hardware level. A fresh operating system installation might be necessary – a faulty system installation process can result in data loss.

File versions list

Filename
lmhosts.sam

System
Windows 10

File size
3683 bytes

Date
2009-06-10

File details
MD5 18413b90e1b291ec3e777a845c37cfee
SHA1 241c7d823d1842fc454ccfdd5d9d1965938fac56
SHA256 000fe9c924b4d155477cad15b4cfd30616c37523b4b848d6ecbd003507a55edf
CRC32 65f62828
Example file location C:\Windows\System32\drivers\etc\

Filename
lmhosts.sam

System
Windows 8.1

File size
3683 bytes

Date
2009-06-10

File details
MD5 18413b90e1b291ec3e777a845c37cfee
SHA1 241c7d823d1842fc454ccfdd5d9d1965938fac56
SHA256 000fe9c924b4d155477cad15b4cfd30616c37523b4b848d6ecbd003507a55edf
CRC32 65f62828
Example file location

Filename
lmhosts.sam

System
Windows 8

File size
3683 bytes

Date
2009-06-10

File details
MD5 18413b90e1b291ec3e777a845c37cfee
SHA1 241c7d823d1842fc454ccfdd5d9d1965938fac56
SHA256 000fe9c924b4d155477cad15b4cfd30616c37523b4b848d6ecbd003507a55edf
CRC32 65f62828
Example file location

Filename
lmhosts.sam

System
Windows 7

File size
3683 bytes

Date
2009-06-10

File details
MD5 18413b90e1b291ec3e777a845c37cfee
SHA1 241c7d823d1842fc454ccfdd5d9d1965938fac56
SHA256 000fe9c924b4d155477cad15b4cfd30616c37523b4b848d6ecbd003507a55edf
CRC32 65f62828
Example file location

Filename
lmhosts.sam

System
Windows Vista

File size
3683 bytes

Date
2009-06-10

File details
MD5 18413b90e1b291ec3e777a845c37cfee
SHA1 241c7d823d1842fc454ccfdd5d9d1965938fac56
SHA256 000fe9c924b4d155477cad15b4cfd30616c37523b4b848d6ecbd003507a55edf
CRC32 65f62828
Example file location

Filename
lmhosts.sam

System
Windows XP

File size
3683 bytes

Date
2009-06-10

File details
MD5 18413b90e1b291ec3e777a845c37cfee
SHA1 241c7d823d1842fc454ccfdd5d9d1965938fac56
SHA256 000fe9c924b4d155477cad15b4cfd30616c37523b4b848d6ecbd003507a55edf
CRC32 65f62828
Example file location

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как переустановить драйвера блютуз на ноутбуке windows 10
  • Как убрать программу из автозагрузки windows 10 в реестре
  • Где взять код активации windows
  • Способы восстановления реестра в windows 10
  • Windows phone экспорт контактов в файл