Set Proxy during SCCM Task Sequence

Last week we had to activate Windows 7 by using a MAK license key. The only way to access internet was using a proxy, based on IP-address & Port. As know the SCCM task sequence runs under the local system account and group policy objects wont be applied until its fully finished. 

To be able to access the internet within a Task Sequence for example to activate Windows you can add the following commands:

  1. Set Proxy
    Command: netsh winhttp set proxy proxy-server=”<IPADDRESS>:<PORT>”

    Set_Proxy_SCCM_TaskSequence

  2. Set Product Key Windows
    Command: cscript %windir%\system32\slmgr.vbs /ipk <LICENSEKEY>
  3. Activate Windows
    Command: cscript %windir%\system32\slmgr.vbs /ato
  4. Activate Office
    Command: cscript “%ProgramFiles%\Microsoft Office\Office14\OSPP.VBS” /act
  5. Clear Proxy
    Command: netsh winhttp reset proxy

Leave a Reply

Your email address will not be published. Required fields are marked *