|
-
Jun 6th, 2000, 05:00 PM
#1
Thread Starter
Junior Member
Hi,
I am looking for some help using MS WMI, I am trying to enable WINS within a Win 9.x environment using WMI.
Having not used this before, I have no idea on how to code this, Has anyone used this before, and if possible got any "code" which would be of help. Below is the code I'm trying to use, but everytime this is run, it comes back with Failed. Am I not declaring something ?, or doing something horribly wrong ??!!. Help........!
Many thanks in advance,
Hutchie.
The code I'm trying to use is:
Dim DNSEnabledForWINSResolution As Boolean
Set Adapter = GetObject("winmgmts:Win32_NetworkAdapterConfiguration=1")
RetVal = Adapter.EnableWINS(True)
If RetVal = 0 Then
MsgBox "Enabled"
Else
MsgBox "Failed"
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|