#NEWLINE# def DisableInterfaces( interface ) : #NEWLINE# #INDENT# 'Tries to disable an interface.  Only works on Vista and 7.\n\n  Args:\n    interface: Name of the interface to disable.\n\n  Returns:\n    res which is a tuple of (stdout, stderr, exit_status, time_taken).\n  ' #NEWLINE# set_tested_versions = [ 'vista' , '2008' ] #NEWLINE# set_args = [ '/c' , 'netsh' , 'set' , 'interface' , set_tested_versions , 'DISABLED' ] #NEWLINE# host_version = platform . platform ( ) . lower ( ) #NEWLINE# for version in set_tested_versions : #NEWLINE# #INDENT# if ( host_version . find ( version ) != ( - 1 ) ) : #NEWLINE# #INDENT# res = client_utils_common . Execute ( 'cmd' , set_args , time_limit = ( - 1 ) , bypass_whitelist = True ) #NEWLINE# return res #NEWLINE# #UNINDENT# #UNINDENT# return ( '' , 'Command not available for this version.' , 99 , '' )