All pastes #348312 Raw Edit

Mine

public text v1 · immutable
·published 2007-02-10 02:01 UTC
rendered paste body
C:\Documents and Settings\danny>netsh
netsh>help

The following commands are available:

Commands in this context:
..             - Goes up one context level.
?              - Displays a list of commands.
abort          - Discards changes made while in offline mode.
add            - Adds a configuration entry to a list of entries.
alias          - Adds an alias.
bridge         - Changes to the `netsh bridge' context.
bye            - Exits the program.
commit         - Commits changes made while in offline mode.
delete         - Deletes a configuration entry from a list of entries.
diag           - Changes to the `netsh diag' context.
dump           - Displays a configuration script.
exec           - Runs a script file.
exit           - Exits the program.
firewall       - Changes to the `netsh firewall' context.
help           - Displays a list of commands.
interface      - Changes to the `netsh interface' context.
offline        - Sets the current mode to offline.
online         - Sets the current mode to online.
popd           - Pops a context from the stack.
pushd          - Pushes current context on stack.
quit           - Exits the program.
ras            - Changes to the `netsh ras' context.
routing        - Changes to the `netsh routing' context.
set            - Updates configuration settings.
show           - Displays information.
unalias        - Deletes an alias.
winsock        - Changes to the `netsh winsock' context.

The following sub-contexts are available:
 bridge diag firewall interface ras routing winsock

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

netsh> dump

[ Masse context .. ]

# -----------------------------------------
# RAS IP Configuration
# -----------------------------------------
pushd ras ip

delete pool

set negotiation mode = allow
set access mode = all
set addrreq mode = deny
set broadcastnameresolution mode = disabled
set addrassign method = auto

popd

# End of RAS IP configuration.



# -----------------------------------------
# RAS IPX Configuration
# -----------------------------------------
pushd ras ipx

set negotiation mode = allow
set access mode = all
set nodereq mode = allow
set netassign method = autosame

popd

# End of RAS IPX configuration.




# -----------------------------------------
# RAS NBF Configuration
# -----------------------------------------
pushd ras netbeui

set negotiation mode = allow
set access mode = all

popd

# End of RAS NBF configuration.




# -----------------------------------------
# RAS AAAA Configuration
# -----------------------------------------
pushd ras aaaa

set authentication provider = windows
set accounting provider = windows

delete authserver name = *
delete acctserver name = *



popd

# End of RAS AAAA configuration.


# Routing Configuration
pushd routing
reset
popd

#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#                                                         #
#   BEFORE running this script                            #
#                                                         #
# To restore IPX router configuration, you must first     #
# UNINSTALL IPX from the Network connections folder and   #
# then REINSTALL it.                                      #
#                                                         #
#   This deletes the old IPX router configuration         #
#   and restores the IPX router configuration to its      #
#   default                                               #
#                                                         #
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#

#----------------------------------------------------------
# IPX configuration
#----------------------------------------------------------

pushd routing ipx

#----------------------------------------------------------
# IPX Interface configuration
#----------------------------------------------------------


#----------------------------------------------------------
# IPX Traffic Filter configuration
#----------------------------------------------------------


#----------------------------------------------------------
# IPX Static Route configuration
#----------------------------------------------------------


#----------------------------------------------------------
# IPX Static Service configuration
#----------------------------------------------------------


popd

# End of IPX configuration

#----------------------------------------------------------
# IPX RIP configuration
#----------------------------------------------------------

pushd routing ipx rip
popd


# End of IPX RIP configuration

#----------------------------------------------------------
# IPX SAP configuration
#----------------------------------------------------------

pushd routing ipx sap
popd


# End of IPX SAP configuration

#----------------------------------------------------------
# IPX NETBIOS configuration
#----------------------------------------------------------

pushd routing ipx netbios
popd


# End of IPX NB configuration
# IP Configuration
pushd routing ip
reset
set loglevel error
add preferenceforprotocol proto=LOCAL preflevel=1
add preferenceforprotocol proto=NetMgmt preflevel=10
add preferenceforprotocol proto=STATIC preflevel=3
add preferenceforprotocol proto=NONDOD preflevel=5
add preferenceforprotocol proto=AUTOSTATIC preflevel=7
add preferenceforprotocol proto=OSPF preflevel=110
add preferenceforprotocol proto=RIP preflevel=120
add interface name="Local Area Connection" state=enable
set filter name="Local Area Connection" fragcheck=disable
add interface name="1394 Connection" state=enable
set filter name="1394 Connection" fragcheck=disable
add interface name="Internal" state=enable
set filter name="Internal" fragcheck=disable
add interface name="Loopback" state=enable
set filter name="Loopback" fragcheck=disable
popd
# End of IP configuration



# ----------------------------------
# DNS Proxy configuration
# ----------------------------------
pushd routing ip dnsproxy
uninstall


popd
# End of DNS proxy configuration



# ----------------------------------
# IGMP Configuration
# ----------------------------------
pushd routing ip igmp
uninstall


popd
# End of IGMP configuration



# ----------------------------------
# NAT configuration
# ----------------------------------
pushd routing ip nat
uninstall


popd




# ----------------------------------
# OSPF configuration
# ----------------------------------

pushd routing ip ospf
uninstall

popd
# End of OSPF configuration




# ----------------------------------
# DHCP Relay Agent configuration
# ----------------------------------
pushd routing ip relay
uninstall


popd
# End of DHCP Relay configuration



# ----------------------------------
# RIP configuration
# ----------------------------------
pushd routing ip rip
uninstall


popd
# End of RIP configuration



# ----------------------------------
# Router Discovery Configuration
# ----------------------------------
pushd routing ip routerdiscovery
uninstall
add interface name="Local Area Connection" disc=disable minint=7 maxint=10 life=
30 level=0
add interface name="1394 Connection" disc=disable minint=7 maxint=10 life=30 lev
el=0
add interface name="Internal" disc=disable minint=7 maxint=10 life=30 level=0
add interface name="Loopback" disc=disable minint=7 maxint=10 life=30 level=0


popd


# ----------------------------------
# DHCP Allocator Configuration
# ----------------------------------
pushd routing ip autodhcp
uninstall


popd
# End of DHCP Allocator Configuration


# ------------------------------------
# Bridge configuration (not supported)
# ------------------------------------

# ------------------------------------
# End of Bridge configuration
# ------------------------------------