Skip to content

Latest commit

 

History

History
85 lines (62 loc) · 2.21 KB

README_INTERFACE.md

File metadata and controls

85 lines (62 loc) · 2.21 KB

PyNetsh.Interface

This library provides functions for the computers interfaces

from PyNetsh.Interface import *

Functions

  • 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

  • httpstunnel_configScript()
    gets the configuration script of the Httpstunnel
    returns a string

IPv4

  • 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

  • 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

  • IPv6to4_configScript()
    gets the configuration script of the IPv6to4
    returns a string

Isatap

  • isatap_configScript()
    gets the configuration script of the isatap
    returns a string

Portproxy

  • portproxy_configScript()
    gets the configuration script of the portproxy
    returns a string

TCP

  • 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

  • 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