+ Post New Thread
Results 1 to 4 of 4
Windows 7 Thread, Can't Get SCCM 2012 Client to Install with Script in Technical; Hey Everyone, Wasn't sure if I should put this here or in the scripting section since I'm not sure if ...
  1. #1

    Join Date
    May 2008
    Thank Post
    Thanked 2 Times in 2 Posts
    Rep Power

    Question Can't Get SCCM 2012 Client to Install with Script

    Hey Everyone,

    Wasn't sure if I should put this here or in the scripting section since I'm not sure if my problem is with my script or possibly some group policy setting. Anyway, here is the problem. Our license agreement with Sophos is ending within the next month and I have been tasked with setting up a SCCM server (our districts first...finally!!) and using Microsoft Endpoint Protection to replace Sophos since it is a much better deal than what we spend with Sophos. So, I wanted to use a script that would uninstall Sophos and then go ahead and install our SCCM client and point it to our site server. (If you know of a better/easier way, let me know as I am just now starting to get up to speed with SCCM).

    Now for the weird part. I am able to run the script both from the local desktop of the machine and from the network by double-clicking it and running it as Administrator (I'm talking mostly Win7Pro 32bit here) and it successfully uninstalls Sophos and installs the SCCM client (which then in part installs Endpoint Protection). However, when I set it up as a start up script, I can see that it uninstalls Sophos, but it does NOT install the SCCM client. I have provided the script below in case that is the problem (I'm not the best coder, but it seemed right to me) or if someone else finds it useful. Or if the problems is perhaps some weird group policy setting let me what you think as I am a little under the gun here to get this rolling before school lets out and our license for Sophos ends. Thanks in advance for any help

    REM --- Created by: Scott Powers
    REM --- Purpose:  Remove Sophos and Install SCCM 2012 Client
    REM --- Date: 5/25/2012
    REM --- Version: 1
     @echo OFF
    REM Add detection script to see if its installed
    REM --- Check for an existing installation of Sophos AutoUpdate
    if exist "C:\Program Files\Sophos\Sophos Anti-Virus\SavMain.exe" goto RemoveSophos
    if exist "C:\Program Files (x86)\Sophos\Anti-Virus\SavMain.exe" goto RemoveSophos
    goto InstallSCCMClient
    REM Remove Sophos AutoUpdate
    start /wait MsiExec.exe /X{15C418EB-7675-42BE-B2B3-281952DA014D} REBOOT=SUPPRESS /qn
    REM Remove Sophos Remote Management System
    start /wait MsiExec.exe /X{FED1005D-CBC8-45D5-A288-FFC7BB304121} REBOOT=SUPPRESS /qn
    REM Remove Sophos Anti-Virus
    start /wait MsiExec.exe /X{9ACB414D-9347-40B6-A453-5EFB2DB59DFA} REBOOT=SUPPRESS /qn
    REM Install SCCM Client and Assign to SC1 Site
    \\SCCM\SMS_SC1\Client\CCMSetup.exe /logon SMSSiteCode=SC1
    REM --- End of the script

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    East Lancs
    Thank Post
    Thanked 283 Times in 261 Posts
    Rep Power
    It might be timing out on the startup script there is a time limit to how long a script can run and I have noticed the SCCM client can take a long time to install especially the .net 4 bits if you don't already have them on.

  3. #3

    Join Date
    May 2008
    Thank Post
    Thanked 2 Times in 2 Posts
    Rep Power
    I was thinking maybe the same thing, however, I do have a couple Group Policy settings in place that (I thought) were supposed to help alleviate that. The ones I have in place are:

    Computer Configuration > Administrative Templates > System > Group Policy > Startup Policy Processing Wait Time: Set to 60
    Computer Configuration > Administrative Templates > System > Logon > Always wait for the network at computer startup and logon: Enabled

    Should there be another policy that I should be setting that would help make this script work? I seem to recall something about there being a limit on scripts only being able to run for up to 10 minutes before they officially time out. Also, does my script look correct to everyone? Been a while since I made a batch file and wanted to be sure that it at least seemed like it would work.

    Thanks for the quick response too

  4. #4

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Thank Post
    Thanked 1,036 Times in 794 Posts
    Blog Entries
    Rep Power
    This is going to sound perhaps a little simplistic, but by default, the installation of forefront removes existing AV software unless you tell it otherwise. Is there something I'm missing (i.e it only works for certain products) or are you overcomplicating it?

+ Post New Thread

Similar Threads

  1. [MS Office - 2010] Can't get outlook 2010 settings to stick for network users
    By reggiep in forum Office Software
    Replies: 2
    Last Post: 31st January 2012, 02:46 PM
  2. Can't get my localhost site to install on webhost
    By speckytecky in forum EduGeek Joomla 1.5 Package
    Replies: 7
    Last Post: 23rd May 2011, 01:55 PM
  3. Replies: 2
    Last Post: 2nd September 2010, 05:10 PM
  4. Can't get mysql and PHP to play together on IIS
    By dagza in forum Web Development
    Replies: 5
    Last Post: 20th January 2008, 03:38 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts