How would I use a transistor to switch my DSL modem?
You (may) need a high-side switch to do this, which requires two transistors. Assuming the grounds are connected together (eg. a USB cable between the modem and the computer) you can use this circuit (left), or if the grounds are not connected, the right-hand circuit. :







simulate this circuit &ndash; Schematic created using CircuitLab