According to examples, an apparatus may include a processor that may access an assignment of a capability to a hardware port such as a Universal Serial Bus (“USB”) port. The apparatus may virtualize a USB port, assign capabilities to the virtual USB port, and provide electrical communication via the USB port subject to the assigned capabilities. The electrical communication may include power delivered via the USB port, or data communicated via the USB port.