This library provides functions for the computers interfaces
from PyNetsh.Interface import *
-
enableInterface(strInterface, setEnabled=True)
enables or disables specified interface
strInterface: a string with the profile's name
setEnabled: [Optional] if true, sets the interface administrative state enabled
throws NotAdminException if user is not administrator
returns nothing -
getInterfacesJSON()
reads the current status of the interfaces on the computer
returns a JSON-string containing the interfaces -
getInterfacesList()
reads the current status of the interfaces on the computer
returns a list of strings containing the interfaces
- httpstunnel_configScript()
gets the configuration script of the Httpstunnel
returns a string
-
IPv4_configScript()
gets the configuration script of the IPv4
returns a string -
IPv4_globalParameters()
reads the global parameters encoded in JSON of the IPv4
returns a JSON-string containing the parameters
-
IPv6_configScript()
gets the configuration script of the IPv6
returns a string -
IPv6_globalParameters()
reads the global parameters encoded in JSON of the IPv6
returns a JSON-string containing the parameters
- IPv6to4_configScript()
gets the configuration script of the IPv6to4
returns a string
- isatap_configScript()
gets the configuration script of the isatap
returns a string
- portproxy_configScript()
gets the configuration script of the portproxy
returns a string
-
tcp_configScript()
gets the configuration script of the tcp protocol
returns a string -
tcp_globalParameters()
reads the global parameters encoded in JSON of the tcp protocol
returns a JSON-string containing the parameters
-
Teredo_configScript()
gets the configuration script of the Teredo Client
returns a string -
Teredo_showState()
reads the state of the Teredo-Client
returns a JSON-string containing the state of the Teredo Client