I'm in the process of automating configuration for Windows at installation, like disabling services that are exploitable or that I just don't use. I wrote a batch file script for disabling the services, but now I would like to disable NetBIOS over TCP/IP using a batch file command. This is how to do it by hand:
wmic nicconfig get caption,index,TcpipNetbiosOptions
then, using the retrieved index number:
wmic nicconfig where index=1 call SetTcpipNetbios 2
how do I assign a variable to the resulting index number in step 1, then use that variable in the next command?
Thanks!
wmic nicconfig get caption,index,TcpipNetbiosOptions
then, using the retrieved index number:
wmic nicconfig where index=1 call SetTcpipNetbios 2
how do I assign a variable to the resulting index number in step 1, then use that variable in the next command?
Thanks!
My Computer
System One
-
- OS
- windows 8.1
- Computer type
- Laptop
- System Manufacturer/Model
- ASUS
- Browser
- firefox
- Antivirus
- avast