I have a Windows GPO that runs a batch file startup script to disable NetBIOS. It normally looks like this:
wmic nicconfig where (TcpipNetbiosOptions!=null and TcpipNetbiosOptions!=2) call SetTcpipNetbios 2
However, I just found out that I have one particular computer that needs NetBIOS enabled. I didn't want to make an entire new GPO for this one machine and I also wasn't sure if it would override the other one, which is global. Excuse my Pseudo-code, but How can I make it so this command will only execute if the computers IP is not a certain one?
IF(<This IP Address> != 192.168.1.1)
wmic nicconfig where (TcpipNetbiosOptions!=null and TcpipNetbiosOptions!=2) call SetTcpipNetbios 2
Or is there a better idea?
IF NOT "%IP%"=="192.168.1.1"
.