With PowerShell you can pretty much do anything. In this article we disabled Netbios using a registry key, however you can do the same using WMI and PowerShell as well as removing the tick box for Lmhosts on a Network Card.

To do this, you can run the following set of commands:

$NICS = Get-WmiObject win32_NetworkAdapterConfiguration
foreach ($NIC in $NICS){
$NIC.settcpipnetbios(2) # 2 = disable netbios on interface
$nicClass = Get-WmiObject -list Win32_NetworkAdapterConfiguration

Powershell:- list missing windows updates in windows 10(20h2)

The first part does netbios and the second part does lmhosts.

Hope it helps.


    Discover more from Everything-PowerShell

    Subscribe now to keep reading and get access to the full archive.

    Continue reading