Yanir Goren was kind enough to share the following QTip, which allows you to completely disable a network adapter: Dim i Dim adptCount , objDrvs ,sMACAddress i = 0 sMACAddress = “Enter MAC Address Here” ‘The adapter’s Mac Address ‘**** create instance of network adapters*** set objDrvs = GetObject(“winmgmts:”).InstancesOf(“Win32_NetworkAdapter”) adptCount = objDrvs.count ‘**** object contain [...]
Posts in category Network
Disabling a Network Adapter
Ping a Specified Server
The Network Class belongs to Microsoft.VisualBasic.Devices namespace. The .NET Ping method is overloaded, the return value is always Boolean. ( Conversion Required ) String. The URL, computer name, or IP number of the server to ping. Required. Uri. The URI of the server to ping. Required. Int32. Time threshold in milliseconds for contacting the destination. [...]
Create and Save a Word Document
Demonstration script that retrieves network adapter data from a computer, displays that data in a Microsoft Word document, and then saves the document as C:\Word\Network Adapter Report.doc. Set word = CreateObject( “Word.Application” ) word.Caption = “Test Caption” word.Visible = True Set doc = word.Documents.Add() Set selection = word.Selection With selection .Font.Name = “Arial” .Font.Size = [...]




Recent Comments