Исправить соединение

Тема в разделе "WASM.NETWORKS", создана пользователем calidus, 29 ноя 2009.

  1. calidus

    calidus Member

    Публикаций:
    0
    Регистрация:
    27 дек 2005
    Сообщения:
    618
    Подскажите как можно реализовать и автоматизировать процес который обычно выполняется вручную , описание тут http://www.microsoft.com/windowsxp/using/networking/maintain/repair.mspx

    Этапы должны быть примерно такие

    Step 1: DHCP Renew

    This step only occurs if the network connection is configured to receive its address automatically using DHCP. If you've configured the connection manually with a static IP address and other TCP/IP settings, this step is skipped. The command-line action that is being performed here is similar to but not identical to the following familiar command:
    ipconfig /renew

    Step 2: Flush ARP Cache
    The command-line action that is being performed in this step is as follows:
    arp –d *

    Step 3: Flush NetBIOS Cache
    The command-line action that is being performed in this step is as follows:
    nbtstat –R

    Step 4: Flush DNS Resolver Cache
    The command-line action that is being performed in this step is as follows:
    ipconfig /flushdns

    Step 5: Register again with WINS
    The command-line action that is being performed in this step is as follows:
    nbtstat –RR

    Step 6: Register again with DNS
    The last command-line action that is performed when you use the Repair feature is this:
    ipconfig /registerdns

    В Network Diagnostics Framework есть такая функция

    HRESULT Repair(
    [in] REPAIRINFO *pInfo,
    [out] LONG *pDeferredTime,
    [out] REPAIR_STATUS *pStatus
    );

    но там также написано

    Minimum supported client Windows Vista
    Minimum supported server Windows Server 2008
    Header Ndhelper.h

    http://msdn.microsoft.com/en-us/library/aa369869(VS.85).aspx

    Спасибо...