You can use this tool: SetProxy. On Windows 7, it works still to set IE's proxy.
Note that the proxy setting is for IE only. If you need to configure the proxy for other services like Windows Update or other programs that use WinHTTP, you can import settings from Internet Explorer into WinHTTP by using the following command:
netsh winhttp import proxy source=ie
And to reset it:
netsh winhttp reset proxy