Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
strComputer = "."
strWins1 = "192.168.x.x"
strWins2 = "192.168.x.x"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set nics = objWMIService.ExecQuery _
("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")
For Each nic In nics
intSetWINS = nic.SetWINSServer(strWINS1, strWINS2)
If intSetWINSServer = 0 Then
WScript.Echo "Success! WINS servers configured."
ElseIf intSetWINSServer = 1 Then
WScript.Echo "WINS servers configured, please reboot."
Else
WScript.Echo "Error!! Unable to configure WINS servers."
End If
Next