My Server is Sick!
Tales of woe and geekyness from the server-room
Skip to content
  • Home
  • My CV
  • RSS Feed
  • Privacy Policy
  • Login

How to set proxy settings for the LocalSystem and NetworkService accounts

By NickC | 2010-05-28
0 Comment

Sometimes you need to set the proxy settings for the System account or NetworkService account on a server. There’s a super easy way to do this using bitsadmin.

Set accounts to use a static proxy server with exclusions:

bitsadmin /util /setieproxy localsystem MANUAL_PROXY proxysrv:8080 ";*.consoto.com"
bitsadmin /util /setieproxy networkservice MANUAL_PROXY proxysrv:8080 ";*.consoto.com"
bitsadmin /util /setieproxy localservice MANUAL_PROXY proxysrv:8080 ";*.consoto.com"

Set accounts to use proxy.pac file:

bitsadmin /util /setieproxy localsystem AUTOSCRIPT http://contoso.com/proxy.pac
bitsadmin /util /setieproxy networkservice AUTOSCRIPT http://contoso.com/proxy.pac
bitsadmin /util /setieproxy localservice AUTOSCRIPT http://contoso.com/proxy.pac

Just replace the contoso.com and proxysrv bits with your own organisation’s servers and pac file addresses. Then run the commands for the relevant accounts you want to change from an administrative command-line window.

More info can be found here: https://msdn.microsoft.com/en-us/library/aa362813(VS.85).aspx

Category: Guides IT Stuff Tags: proxy servers, system account
Post navigation
← Removing Troublesome Crapware Get your own IPv6 address range →

Recent Posts

  • Latest Visual Studio C++ Redistributables
  • Invalid Namespace with Start-ManagementAgent from LithnetMIISAutomation on a MIM Server
  • A great blog post about Exchange Online PowerShell and MFA
  • Subscribing to script notifications using Pushbullet
  • SQL Server 2017 Reporting Services Download

Categories

  • IT Stuff (22)
    • Downloads (6)
    • Fixes (2)
    • Guides (10)
    • Issues (3)
    • Scripts (4)
    • Security (3)
  • Reviews (2)
    • Books (1)
    • Gadgets (1)
  • Uncategorized (10)
Copyright 2017
Iconic One Theme | Powered by Wordpress