Skip to content

Instantly share code, notes, and snippets.

@aherrman
Created February 3, 2010 21:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aherrman/294059 to your computer and use it in GitHub Desktop.
Save aherrman/294059 to your computer and use it in GitHub Desktop.
$devid = "*DEV_4236"
$status = devcon status $devid | Select-String "running"
if($status -eq $null)
{
write-host "Enabling wireless"
devcon enable $devid
}
else
{
write-host "Disabling wireless"
devcon disable $devid
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment