Configuring NetBIOS over TCP/IP
https://social.technet.microsoft ... forum=winservercore
You can edit the registry to change the NetBIOS configuration. Under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NetBT\Parameters\Interfaces, find the GUID(s) with NetbiosOptions set to 0 and set them to 2. This is the equivalent of selecting disabled in the GUI.
With Server Core you can use regedit and connect remotely to set this or use the reg.exe command line tool.
Andrew
And here is the VBS script to run.
You will need admin rights, or put in a GPO under Computer Configuration/Policies/Windows Settings/Scripts/Startup: - OPTION EXPLICIT
- Const HKEY_LOCAL_MACHINE = &H80000002
- Const sNetKey = "System\CurrentControlSet\Services\NetBT\Parameters\Interfaces\"
- Dim oReg ' Registry object
- Dim sSubKey ' SubKey instance
- Dim aSubKeys ' SubKeys array
- Dim dwValue ' registry value
- Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
- oReg.EnumKey HKEY_LOCAL_MACHINE, sNetKey, aSubKeys
- ' Top layer is interfaces
- For Each sSubKey in aSubKeys
- oReg.GetDWORDValue HKEY_LOCAL_MACHINE, sNetKey & sSubKey, "NetbiosOptions", dwValue
- If dwvalue <> 2 Then
- oReg.SetDWORDValue HKEY_LOCAL_MACHINE, sNetKey & sSubKey, "NetbiosOptions", 2
- End If
- Next
复制代码
|