Last active
October 19, 2023 19:04
-
-
Save 1ijack/bd5ed0da9bcaebb2a14e3698cefe7a49 to your computer and use it in GitHub Desktop.
Revisions
-
1ijack revised this gist
Sep 4, 2018 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,13 +2,15 @@ :: Original source -- https://computerstepbystep.com/turn-off-multicast-name-resolution.html#CMD @goto:argParser rem - JaCkd Note: this seems backwards, but per site instructions: Enable = 0; Disable = 1 rem ~ Posted on [unknown] at url [https://computerstepbystep.com/turn-off-multicast-name-resolution.html#PowerShellScript] rem *Description*: Local Link Multicast Name Resolution (LLMNR) is a secondary name resolution protocol. Queries are sent over the Local Link, a single subnet, from a client machine using Multicast to which another client on the same link, which also has LLMNR enabled, can respond. LLMNR provides name resolution in scenarios in which conventional DNS name resolution is not possible. rem If you enable this policy setting, Multicast name resolution or LLMNR, will be turned off for the machine across all available but un-configured network adapters. rem If you disable this policy setting, Multicast name resolution or LLMNR, will be turned on for the machine across all available but un-configured network adapters. rem If you do not configure this policy setting, Multicast name resolution or LLMNR, will be turned on for the machine across all available but un-configured network adapters by default. rem Supported on: At least Windows Vista. :enableCmd REG add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v EnableMulticast /t REG_DWORD /d 0 /f @goto:eof @@ -27,5 +29,6 @@ rem Supported on: At least Windows Vista. @for %%A in ( enable; yes; true ) do @if /i "%#pA%" equ "%%A" call :enableCmd @for %%A in ( disable; no; false ) do @if /i "%#pA%" equ "%%A" call :disableCmd @for %%A in ( unset; notconfigured; default; restore) do @if /i "%#pA%" equ "%%A" call :notConfiguredCmd @shift /1 &@set "#pA=%~1" @if not defined #pA @goto:eof @goto:argParser -
1ijack revised this gist
Sep 4, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ :: by JaCk (script struture/functions only) | Release 09/04/2018 | url https://gist.github.com/1ijack/bd5ed0da9bcaebb2a14e3698cefe7a49 | disable_multicast.cmd -- change DNSClient/LLMNR behavior [enable/disable/restoreDefault] using windows registry. Restart maybe required for the settings to take effect. :: Original source -- https://computerstepbystep.com/turn-off-multicast-name-resolution.html#CMD @goto:argParser -
1ijack created this gist
Sep 4, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ :: by JaCk (script struture/functions only) | Release 09/04/2018 | url https://tbd.tld/slug/id | disable_multicast.cmd -- change DNSClient/LLMNR behavior [enable/disable/restoreDefault] using windows registry. Restart maybe required for the settings to take effect. :: Original source -- https://computerstepbystep.com/turn-off-multicast-name-resolution.html#CMD @goto:argParser rem ~ Posted on [unknown] at url [https://computerstepbystep.com/turn-off-multicast-name-resolution.html#PowerShellScript] rem *Description*: Local Link Multicast Name Resolution (LLMNR) is a secondary name resolution protocol. Queries are sent over the Local Link, a single subnet, from a client machine using Multicast to which another client on the same link, which also has LLMNR enabled, can respond. LLMNR provides name resolution in scenarios in which conventional DNS name resolution is not possible. rem If you enable this policy setting, Multicast name resolution or LLMNR, will be turned off for the machine across all available but un-configured network adapters. rem If you disable this policy setting, Multicast name resolution or LLMNR, will be turned on for the machine across all available but un-configured network adapters. rem If you do not configure this policy setting, Multicast name resolution or LLMNR, will be turned on for the machine across all available but un-configured network adapters by default. rem Supported on: At least Windows Vista. :enableCmd REG add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v EnableMulticast /t REG_DWORD /d 0 /f @goto:eof :disableCmd REG add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v EnableMulticast /t REG_DWORD /d 1 /f @goto:eof :notConfiguredCmd REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v EnableMulticast /f @goto:eof :argParser @set "#pA=%~1" @if not defined #pA @call :disableCmd @for %%A in ( enable; yes; true ) do @if /i "%#pA%" equ "%%A" call :enableCmd @for %%A in ( disable; no; false ) do @if /i "%#pA%" equ "%%A" call :disableCmd @for %%A in ( unset; notconfigured; default; restore) do @if /i "%#pA%" equ "%%A" call :notConfiguredCmd @set "#pA=" @goto:eof