Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How can i Enable or Disable my Lan Card vise versa in using DOS commands?  (Read 6455 times)

0 Members and 1 Guest are viewing this topic.

wizmerlin

  • Guest
How can i Enable or Disable my Lan Card vise versa in using DOS commands?

i have seen the DOS command Enable, but i dont know if its the right command for the job. and i dont know how to use the Enable command.

GuruGary



    Adviser
    What OS are you running?  If Windows XP, try:
    Code: [Select]
    netsh interface set interface "Local Area Connection" DISABLED

    wizmerlin

    • Guest
    yup, im using XP
    there is an error on the command
    netsh interface set interface "Local Area Connection" DISABLED

    One or more essential parameters not specified
    The syntax supplied for this command is not valid. Check help for the correct sy
    ntax.

    Usage set interface [name = ] IfName
                [ [admin = ] ENABLED|DISABLED
                  [connect = ] CONNECTED|DISCONNECTED
                  [newname = ] NewName ]

          Sets interface parameters.

          IfName  - the name of the interface
          admin   - whether the interface should be enabled (non-LAN only).
          connect - whether to connect the interface (non-LAN only).
          newname - new name for the interface (LAN only).

          Notes:
          - At least one option other than the name must be specified.
          - If connect = CONNECTED is specified, then the interface
            is automatically enabled even if the admin = DISABLED
            option is specified.
    « Last Edit: May 11, 2007, 01:38:44 AM by wizmerlin »

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    From a command prompt...ipconfig /release.

    To turn back on ...ipconfig /renew.

    p.s. It's not DOS in XP...
    " Anyone who goes to a psychiatrist should have his head examined. "

    wizmerlin

    • Guest
    it does not work

    C:\>ipconfig /release
    Windows IP Configuration
    The operation failed as no adapter is in the state permissible for this operation.

    C:\>ipconfig /renew
    Windows IP Configuration
    The operation failed as no adapter is in the state permissible for this operation.


    by the way im using the admin account

    i have tried 
    netsh interface set interface "Local Area Connection" connect = DISCONNECTED
    but the error is
    connect=DISABLE is not acceptable value for admin.
    the parameter is incorrect.
    « Last Edit: May 11, 2007, 08:28:54 PM by wizmerlin »