Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adding Static IP to Interface using VBS

Featured Replies

from my vb script, i need to add an ip address(+snmask) to an interface such as "local area connection" that already has several ip addresses assigned to it.

i have been searching and trying with wmi methods in the Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration classes and it seems there is no method for *adding* an ip.

i would try to do it with registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{GUID})

but i have no way of finding the guid of the interface.

thanks in advance for your help


  • Author

thank you gunsmokingman, but this article has only code to *get* the tcp/ip configuration. i need to modify it.

*update*

so here is what i have found out from countless hours searching web. it seems that you cannot add one ip address without removing and adding all addresses for that interface. so i have to use a script like the one gunsmokingman referenced above to read out the current ip's/snm's to an array and then add my ip address onto the end of that array and re-enter teh entire array using enableStatic().

the problem i am running into is adding my ip address to the array. i have tried several syntax and will not accept my array into enableStatic() function.

any help would be great because i really do not want to shell out and use netsh. its slow and cumbersome.

cheers

Edited by SimonSez07

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.