network configuring through a script
Mats Wichmann
xyzmats at laplaza.org
Wed Jun 6 10:28:24 EDT 2001
On Wed, 06 Jun 2001 11:25:04 GMT, "Francis Meyvis"
<francis.meyvis at sonycom.com> wrote:
>Hi,
>
>I've W2k with ActiveState Py 2.1 on my notebook. Python provides some access
>to COM things.
>I'd like to have scripts that configure my notebook for networking at home,
>at work, ...
>This requires now going into the dialog for
>- TCP/IP settings to change the IP address to use DHCP or use a fixed IP
>address,
> automatic DNS or fixed DNS server
>- IE5 properties/connections to setup Dialup or LAN settings.
>- the IE5 LAN settings allow further automatic settings and proxy server
>settings.
>
>Are these two also possible from within COM?
>Or should one directly modify the registry?
>
>Can someone point me to MSDN documentation on the inners of these
>configuration dialogs?
>I look in it but do not find anything usefull (could be that the MSDN I'v
>access to is already to old).
>Just some pointer would do ...
There's an easier way.
W2k provides a tool called "netsh" which can change the network
settings from a shell prompt, and can also dump an existing setting
into a file for later reuse.
Mats Wichmann
(Anti-spam stuff: to reply remove the "xyz" from the
address xyzmats at laplaza.org. Not that it helps much...)
More information about the Python-list
mailing list