This works for me.
I stuffed it in a function because you may be busing it a few times and then a function may save some code lines and make it more readable.

 Code:
Break on

$connection = "Connection name goes here"
$state = "state goes here (Enabled or Disabled)"

SetConnectionState($connection, $state)


Function SetConnectionState($connection, $state)
	If Trim($connection) = ""
		Exit 87
	EndIf
	If $state <> "Enabled" And $state <> "Disabled"
		Exit 87
	EndIf

	$shellcommand = 'NetSH interface set interface "' + $connection + '" ' + $state
	Shell $shellcommand
	
	Exit @ERROR
EndFunction
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.