Hey Optimxr,
1. You have to open Notepad as Administrator to be able to save the hosts file.
2. Make sure you save it as hosts and not hosts.txt (Notepad > File > Save as > File Types > All Files)
3. Yes, you entered the information correctly,
4. If you're not using static IPs, adding IP HOSTNAME to the hosts file can be problematic.
You can use the following script on your Win10 PC's to check/compare settings.
Code:
Note: The following script ....
1. Makes NO changes to your PC (For information only)
2. Only shows PC NAME (Does NOT reveal any personal info)
3. It creates a .txt file on your Desktop (Assumes your Desktop Folder has NOT been moved)
4. Upload the .txt file in your post if you need help with the output.
Open PowerShell as Admin. Copy/Paste the following, making sure to hit enter after the last line.
$(
write-output "CHECKING SMB FOR COMPUTER $($env:computername) @ $(get-date -format g)"
if((Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol).State -eq "Enabled" -OR (Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Client).State -eq "Enabled" -OR (Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Server).State -eq "Enabled" -OR (Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Deprecation).State -eq "Enabled") {
write-output "==================="
write-output "SMB1 FEATURES"
write-output "==================="
$scq10 = (sc.exe query mrxsmb10 | FINDSTR "SERVICE_NAME STATE")
$scqc10 = (sc.exe qc mrxsmb10 | FINDSTR "START_TYPE")
$scqb = (sc.exe query browser | FINDSTR "SERVICE_NAME STATE")
$scqcb = (sc.exe qc browser | FINDSTR "START_TYPE")
get-windowsoptionalfeature -Online -FeatureName SMB1Protocol | FINDSTR "FeatureName"
get-windowsoptionalfeature -Online -FeatureName SMB1Protocol | FINDSTR "State"
get-windowsoptionalfeature -Online -FeatureName SMB1Protocol-Client | FINDSTR "FeatureName"
get-windowsoptionalfeature -Online -FeatureName SMB1Protocol-Client | FINDSTR "State"
get-windowsoptionalfeature -Online -FeatureName SMB1Protocol-Server | FINDSTR "FeatureName"
get-windowsoptionalfeature -Online -FeatureName SMB1Protocol-Server | FINDSTR "State"
get-windowsoptionalfeature -Online -FeatureName SMB1Protocol-Deprecation | FINDSTR "FeatureName"
get-windowsoptionalfeature -Online -FeatureName SMB1Protocol-Deprecation | FINDSTR "State"
write-output " "
write-output "==================="
write-output "SMB PROTOCOLS"
write-output "==================="
get-smbserverconfiguration | Select EnableSMB1Protocol,EnableSMB2Protocol | FORMAT-LIST
} else {
write-output " "
write-output "==================="
write-output "SMB PROTOCOLS"
write-output "==================="
$scq10 = ""
$scqc10 = ""
$scqb = ""
$scqcb = ""
write-output "EnableSMB1Protocol : False"
get-smbserverconfiguration | Select EnableSMB2Protocol | FORMAT-LIST
}
write-output " "
write-output "=================="
write-output "SERVICES"
write-output "=================="
$scq10
$scqc10
$scqb
$scqcb
sc.exe query mrxsmb20 | FINDSTR "SERVICE_NAME STATE"
sc.exe qc mrxsmb20 | FINDSTR "START_TYPE"
sc.exe query fdphost | FINDSTR "SERVICE_NAME STATE"
sc.exe qc fdphost | FINDSTR "START_TYPE"
sc.exe query fdrespub | FINDSTR "SERVICE_NAME STATE"
sc.exe qc fdrespub | FINDSTR "START_TYPE"
sc.exe query ssdpsrv | FINDSTR "SERVICE_NAME STATE"
sc.exe qc ssdpsrv | FINDSTR "START_TYPE"
sc.exe query upnphost | FINDSTR "SERVICE_NAME STATE"
sc.exe qc upnphost | FINDSTR "START_TYPE"
sc.exe query dhcp | FINDSTR "SERVICE_NAME STATE"
sc.exe qc dhcp | FINDSTR "START_TYPE"
sc.exe query dnscache | FINDSTR "SERVICE_NAME STATE"
sc.exe qc dnscache | FINDSTR "START_TYPE"
sc.exe query iphlpsvc | FINDSTR "SERVICE_NAME STATE"
sc.exe qc iphlpsvc | FINDSTR "START_TYPE"
sc.exe query lmhosts | FINDSTR "SERVICE_NAME STATE"
sc.exe qc lmhosts | FINDSTR "START_TYPE"
sc.exe query lanmanserver | FINDSTR "SERVICE_NAME STATE"
sc.exe qc lanmanserver | FINDSTR "START_TYPE"
sc.exe query lanmanworkstation | FINDSTR "SERVICE_NAME STATE"
sc.exe qc lanmanworkstation | FINDSTR "START_TYPE"
write-output " "
write-output "================="
write-output "SMB REGISTRY KEYS"
write-output "================="
if (Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters -Name SMB1 -ErrorAction SilentlyContinue) {
Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters -Name SMB1 | FORMAT-LIST -Property SMB1
} else {
write-output "NO SMB1 KEY"
}
if (Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters -Name SMB2 -ErrorAction SilentlyContinue) {
Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters -Name SMB2 | FORMAT-LIST -Property SMB2
} else {
write-output "NO SMB2 KEY"
}
if (Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanWorkstation -Name DependOnService -ErrorAction SilentlyContinue) {
Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanWorkstation -Name DependOnService | FORMAT-LIST -Property DependOnService
} else {
write-output "NO DEPEND ON SERVICE"
}
if (Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\Browser\Parameters -Name MaintainServerList -ErrorAction SilentlyContinue) {
Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\Browser\Parameters | FORMAT-LIST -Property MaintainServerList
} else {
write-output "NO BROWSER MAINTAIN SERVER LIST KEY"
}
write-output " "
write-output "========================"
write-output "LANMAN SERVER PARAMETERS"
write-output "========================"
Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
write-output "============================="
write-output "LANMAN WORKSTATION PARAMETERS"
write-output "============================="
Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
write-output "================="
write-output "TCPIP4 PARAMETERS"
write-output "================="
Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
write-output "================="
write-output "TCPIP6 PARAMETERS"
write-output "================="
Get-ItemProperty -Path HKLM:SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
write-output "========================"
write-output "SMB CLIENT CONFIGURATION"
write-output "========================"
Get-SmbClientConfiguration
write-output "========================"
write-output "SMB SERVER CONFIGURATION"
write-output "========================"
Get-SmbServerConfiguration
write-output "==============="
write-output "IPCONFIG ALL"
write-output "==============="
ipconfig /all
) > "$($env:userprofile)\Desktop\$env:computername-SMB-CHECK.txt"