Thats a big subject, with lot’s of potential answers. The “general” answer is that you provide scripts to manage all these functions for you. If you are proficient in a scripting language, you can write them yourself, otherwise there are commercial (and free) scripts available to provide all (or some) of these functions.
Hotscripts.com is a good place to start. One version of a script that provide most of this is available at cyberscript.net (there is even a “free” version available. This is just one of several of these types of scripts that are out there.
As with anything like this, security is a major concern, so you should carefully evaluate that aspect of any such script you intend to use, or write yourself.