A PowerShell script to detect and disable NetBios on all Interfaces.
Report Bug
·
Request Feature
Table of Contents
A script that can be deployed with Intune as a remediation to detect clients with NetBios enabled on any interface. This is done by checking for the registry key for each interface for the value of the key NetbiosOptions
. If NetBios is detected as enabled the Disable-NetBios.ps1
script will loop through all the interfaces and set the value to 2
which will disable NetBios after a system restart.
To get a local copy up and running follow these simple example steps.
None
- Browse to the folder you store your scripts
e.g. cd C:\Script
- Clone the repo
Invoke-WebRequest -Uri https://raw.githubusercontent.com/ELLISB1000/Disable-NetBios/main/Detect-NetBios.ps1 -OutFile .\Detect-NetBios.ps1 Invoke-WebRequest -Uri https://raw.githubusercontent.com/ELLISB1000/Disable-NetBios/main/Disable-NetBios.ps1 -OutFile .\Disable-NetBios.ps1
For information on how to set this up as a remediation script in Intune please see the following guide:
- Create detection script so this can be deployed as a remediation
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.