I am trying to have a USB powered device (lets just say a USB lamp, for example) be automatically turned on at a certain time of day, and then automatically turned off at a time later in the day. I want to leave the device plugged in and switched on at all times. It would be like the USB/computer approach to achieving what one of those wall-plug timer units does, the ones that you plug your lamp into when you go on vacation so that it looks like someone is still home due to the light turning on and off during the day.
I was wondering if it is possible to set a specific USB port (just one, so that all the other ports behave normally) to be turned on and off on a schedule (probably making use of the Task Scheduler)? The computer is on 24/7, however, the user may be logged off. So I would also want this to work when no user is logged in (so this would also have to be set to be a service as well).