Results 1 to 4 of 4

Thread: How to set the defaultipgateway object which is not a collection

  1. #1
    Join Date
    Feb 2009
    Posts
    81

    How to set the defaultipgateway object which is not a collection

    I am helpless in this matter when I search for Default Gateway and net mask, what it is? and where do I find out on my system, I am till now assuming that every computer has FTP setup that to enable it with our system, Please also let me know what is IP Sub netting Term in Networking. I think the only way to get it is to use WMI, and I have no experiencing in doing that.

  2. #2
    Join Date
    Feb 2009
    Posts
    105

    Re: How to set the defaultipgateway object which is not a collection

    Had you decided how you want to handle the situation where multiple IP addresses are defined on the same adapter? Returns a value of 0 (zero) for a successful completion when a reboot is not required, 1 (one) for a successful completion when a reboot is required, and any other value if there is an error.Load the tool and set Code Language to VB .Net from the Code Language menu. The issue you run into is that the foreach statement.

    In the drop down called Classes (Dynaminc or Static) select "Win32_NetworkAdapterConfiguration.

    This method only works when the Network Interface Card (NIC) is in the static IP mode. I'm seeing the same thing in my CSV file. How can we get the actual address to show up?

  3. #3
    Join Date
    Feb 2006
    Posts
    159

    Re: How to set the defaultipgateway object which is not a collection

    Replace the consolewrite with the variable or form control you want to store the parameter in. Assigns a value that ranges from 1 to 9999, which is used to calculate the fastest and most reliable routes. The values of this parameter correspond with the values in the DefaultIPGateway parameter. I try to create DefaultIPGateway and DNSServerSearchOrder properties in a Win32_NetWorkAdapterConfiguration object.

  4. #4
    Join Date
    Oct 2008
    Posts
    68

    Re: How to set the defaultipgateway object which is not a collection

    It appears that getting "Win32_NetworkAdapter" remotely on a win2000 server does not have the "NetConnectionID" property. I am understanding your request correctly, you could add a line at the top to create the 'WScript.Network' object and then use the 'oWNT.MapNetworkDrive "X:", "\\server\share"' syntax to map the drive.

Similar Threads

  1. Replies: 6
    Last Post: 06-06-2011, 01:34 AM
  2. How are Collection object in C# categorized?
    By Karumbu in forum Software Development
    Replies: 4
    Last Post: 11-01-2011, 06:53 AM
  3. Replies: 3
    Last Post: 08-01-2011, 06:20 AM
  4. Differents between object and static object
    By Sarfaraj Khan in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 01:11 PM
  5. Object test = new Object() <-- Java, best way in C++
    By ADISH in forum Software Development
    Replies: 3
    Last Post: 25-10-2008, 02:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,726,866,452.08916 seconds with 16 queries