help interpreting /? help listinf of netsh


  1. Posts : 2
    Ubuntu Lucid Lynx 64, WIndows Vista 64 running virtually on aqemu/kvm
       #1

    help interpreting /? help listinf of netsh


    Code:
    netsh [-a AliasFile] [-c Context] [-r RemoteMachine] [-u DomainName\]UserName] [-p Password : *] [Command : -f ScriptFile]

    How does, say, this command:

    Code:
    netsh interface ipv6 show addresses
    fit into the above format? For example, what is "interface", is it an Alias, Context, RemoteMachine, ..., etc.?
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    It's a Command?

    Usage: netsh [-a AliasFile] [-c Context] [-r RemoteMachine] [-u [DomainName\]UserName] [-p Password | *]
    [Command | -f ScriptFile]

    The following commands are available:

    Commands in this context:
    ? - Displays a list of commands.
    add - Adds a configuration entry to a list of entries.
    advfirewall - Changes to the `netsh advfirewall' context.
    branchcache - Changes to the `netsh branchcache' context.
    bridge - Changes to the `netsh bridge' context.
    delete - Deletes a configuration entry from a list of entries.
    dhcpclient - Changes to the `netsh dhcpclient' context.
    dnsclient - Changes to the `netsh dnsclient' context.
    dump - Displays a configuration script.
    exec - Runs a script file.
    firewall - Changes to the `netsh firewall' context.
    help - Displays a list of commands.
    http - Changes to the `netsh http' context.
    interface - Changes to the `netsh interface' context.
    ipsec - Changes to the `netsh ipsec' context.
    lan - Changes to the `netsh lan' context.
    mbn - Changes to the `netsh mbn' context.
    namespace - Changes to the `netsh namespace' context.
    nap - Changes to the `netsh nap' context.
    netio - Changes to the `netsh netio' context.
    p2p - Changes to the `netsh p2p' context.
    ras - Changes to the `netsh ras' context.
    rpc - Changes to the `netsh rpc' context.
    set - Updates configuration settings.
    show - Displays information.
    trace - Changes to the `netsh trace' context.
    wcn - Changes to the `netsh wcn' context.
    wfp - Changes to the `netsh wfp' context.
    winhttp - Changes to the `netsh winhttp' context.
    winsock - Changes to the `netsh winsock' context.
    wlan - Changes to the `netsh wlan' context.
      My Computer


  3. Posts : 2
    Ubuntu Lucid Lynx 64, WIndows Vista 64 running virtually on aqemu/kvm
    Thread Starter
       #3

    Ok I see.

    Confusing though that there is also -c which precedes Context above, but down in the part you posted the command also refers to a context.
      My Computer


  4. Posts : 6,285
    Windows 10 Pro X64
       #4

    Agreed, not one of the better helps in Windows.
      My Computer


  5. Posts : 27
    Windows 7 Ultimate x86/x64 dual boot
       #5

    if my net dongle connection name is Reliance (as appearing in control panel - network,
    what would be the batch file netsh command to connect to net and to disconnect from net?
      My Computer


  6. Posts : 6,285
    Windows 10 Pro X64
       #6

    C:\Windows\system32>netsh interface /?

    The following commands are available:

    Commands in this context:
    6to4 - Changes to the `netsh interface 6to4' context.
    ? - Displays a list of commands.
    dump - Displays a configuration script.
    help - Displays a list of commands.
    httpstunnel - Changes to the `netsh interface httpstunnel' context.
    ipv4 - Changes to the `netsh interface ipv4' context.
    ipv6 - Changes to the `netsh interface ipv6' context.
    isatap - Changes to the `netsh interface isatap' context.
    portproxy - Changes to the `netsh interface portproxy' context.
    set - Sets configuration information.
    show - Displays information.
    tcp - Changes to the `netsh interface tcp' context.
    teredo - Changes to the `netsh interface teredo' context.

    The following sub-contexts are available:
    6to4 httpstunnel ipv4 ipv6 isatap portproxy tcp teredo

    To view help for a command, type the command, followed by a space, and then
    type ?.


    C:\Windows\system32>netsh interface ipv6 /?

    The following commands are available:

    Commands in this context:
    6to4 - Changes to the `netsh interface ipv6 6to4' context.
    ? - Displays a list of commands.
    add - Adds a configuration entry to a table.
    delete - Deletes a configuration entry from a table.
    dump - Displays a configuration script.
    help - Displays a list of commands.
    isatap - Changes to the `netsh interface ipv6 isatap' context.
    reset - Reset the IP configurations.
    set - Sets configuration information.
    show - Displays information.

    The following sub-contexts are available:
    6to4 isatap

    To view help for a command, type the command, followed by a space, and then
    type ?.
      My Computer


  7. Posts : 6,285
    Windows 10 Pro X64
       #7

    Hmmm, why would you want to do this? I don't understand what you are trying to accomplish.

    Perhaps ipconfig would be a better choice?

    ipconfig /release to drop the connection.
    ipconfig /renew to reestablish it.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:22.
Find Us