Share via


Hyper-V: Tools NVSPBIND

About NVSPBIND

NVSPBIND (Network Virtual Service Provider Bind) is a tool for modifying network bindings from the command line. It is especially useful in Server Core environments, where the lack of the traditional Windows Network Adapter UI (NCPL.CPL) poses a challenge to configuring network bindings. NVSPBIND can be used to:

  • Query and change NIC (Network Interface Controller) connection order
  • Enable or disable specific bindings on any NIC
  • Set bindings for NICs used in Virtual Networks

NVSPBIND can be downloaded from the Technet Gallery at http://gallery.technet.microsoft.com/Hyper-V-Network-VSP-Bind-cf937850.

NOTE: As with any utilitiy you use to change network configurations, test before you use this in production because you may disrupt or even lose network connectivity if you are managing a machine remotely.  

Usage

To obtain a list of the parameters available with NVSPBIND, use the '/?' parameter.

C:\nvspbind.exe /?

Usage: nvspbind [option] [NIC|*] [protocol|*]

 

Options:

   -n   display NIC information only

   -u   unbind switch protocol from specified nic(s)

   -b   bind switch protocol to specified nic(s)

   -d   disable binding of specified protocol from specified nic(s)

   -e   enable binding of specified protocol to specified nic(s)

   -r   repair bindings on specified nic(s)

When invoking NVSPBIND, if no NIC is defined the specified operation is performed on all NICs.

If no protocol is included, the specified operationis performed on all protocols.

If no options are specified, the default actionis to enumerate all bindings for the specified NIC.

For more information on using NVSPBIND, see the readme.doc included in the download package.

NOTE: While the ncpa.cpl displays a combination of IPv4 and IPv6 simultaneously, NVSPBIND requires you to change each seperately. If you wish to change both, you must do so one at a time.

EXAMPLE:

To disable File and Printer Sharing for Microsoft Networks on an adapter.

  1. Obtain the GUID which uniquely identifies the adapter by running nvspbind.exe with no parameters on the command line. 
  2. {F93672D9-9085-4EEF-9669154AD4391ED7}
    "pci\ven_8086&dev_10c9&subsys_a03c8086"
    "Intel(R) Gigabit ET Dual Port Server Adapter":
       enabled:  ms_netbios       (NetBIOS Interface)
       enabled:  ms_server        (File and Printer Sharing for Microsoft Networks)
       enabled:  ms_pacer         (QoS Packet Scheduler)
       disabled: ms_ndiscap       (NDIS Capture LightWeight Filter)
       enabled:  ms_wfplwf        (WFP Lightweight Filter)
       enabled:  ms_msclient      (Client for Microsoft Networks)
       enabled:  ms_tcpip6        (Internet Protocol Version 6 (TCP/IPv6))
       enabled:  ms_netbt         (WINS Client(TCP/IP) Protocol)
       enabled:  ms_smb           (Microsoft NetbiosSmb)
       enabled:  ms_tcpip         (Internet Protocol Version 4 (TCP/IPv4))
       enabled:  ms_lltdio        (Link-Layer Topology Discovery Mapper I/O Driver)
       enabled:  ms_rspndr        (Link-Layer Topology Discovery Responder)
       enabled:  ms_pppoe         (Point to Point Protocol Over Ethernet)
       enabled:  ms_ndisuio       (NDIS Usermode I/O Protocol)
       disabled: vms_pp           (Microsoft Virtual Network Switch Protocol)
  3. To unbind the ms_server (File and Printer Sharing for Microsoft Networks) protocol run |NVSPBIND.EXE on the command line with the the -d parameter.

C:\nvspbind -d {F93672D9-9085-4EEF-9669154AD4391ED7} ms_server
Hyper-V Network VSP Bind Application 6.1.7672.0.
Copyright (c) Microsoft Corporation. All rights reserved.
acquiring write lock...success

Adapters:
{F93672D9-9085-4EEF-9669154AD4391ED7}
"pci\ven_8086&dev_10c9&subsys_a03c8086"
"Intel(R) Gigabit ET Dual Port Server Adapter":
    unbinding ms_server from Intel(R) Gigabit ET Dual Port Server Adapter
    unbinding ms_server from Intel(R) Gigabit ET Dual Port Server Adapter
    unbinding ms_server from Intel(R) Gigabit ET Dual Port Server Adapter
    unbinding ms_server from Intel(R) Gigabit ET Dual Port Server Adapter
    unbinding ms_server from Intel(R) Gigabit ET Dual Port Server Adapter
    unbinding ms_server from Intel(R) Gigabit ET Dual Port Server Adapter
applying changes...
cleaning up...releasing write lock...success
finished 

Community Resources

Demonstration