Link to home
Start Free TrialLog in
Avatar of trolley01
trolley01Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Install after RIS - Client Doesn't Install Under System Account

We have just upgraded our SMS 2003 installation to SCCM 2007.

As a part of our deployment, we have a script that is run after an RIS installation. This script installs the antivirus, the SMS client, waits until the install is finished, and then initiates the SMS actions. This all worked fine.

We then upgraded to SCCM2007. Since this point the installation of the SMS Client has failed. The ccmsetup.log file in C:\Windows\System32\ccmsetup shows the following at the bottom:

<![LOG[Source \\systems\SMS_TC1\Client is inaccessible (5)]LOG]!><time="14:28:30.390+-60" date="06-16-2008" component="ccmsetup" context="" type="2" thread="1500" file="ccmsetup.cpp:4785">
<![LOG[Failed to find accessible source. Waiting for retry.]LOG]!><time="14:28:30.390+-60" date="06-16-2008" component="ccmsetup" context="" type="2" thread="1500" file="ccmsetup.cpp:4909">
<![LOG[Next retry in 10 minute(s)...]LOG]!><time="14:28:30.390+-60" date="06-16-2008" component="ccmsetup" context="" type="0" thread="1500" file="ccmsetup.cpp:8191">

If I exit the script, and run the install manually as the user, then it will install fine.

After remembering that the RIS commands run under the system account, I changed our vbscript to run the install using the run as command. This does not work either, even when running as administrator through the script.

As a last ditch attempt, I even changed the NTFS permissions on the share to 'Everyone - Full Control' but this did not work either.

I'm guessing that whatever I do, something is still trying to run under the SYSTEM account, but I don't know what.

Anyone got any ideas on how to get round the problem?

Thanks.


Avatar of RobSampson
RobSampson
Flag of Australia image

Hi, under normal operations, the only reason a script would run under the system account is if it was either explicitly launched under it, or it ran as a StartUp script, instead of a Login script.

If the script runs as a Login script, it should, by default, run under that user context of the user who logged in.

Also, if you *are* launching it via the System account, you might find that account does not have the neccessary NTFS permissions to read the \\systems\SMS_TC1\Client folder. By default, the System account only has access to local computer resources, or domain controllers "NetLogon" share.

Regards,

Rob.
Avatar of trolley01

ASKER

The script runs as part of the RunOnce section of the RIS Setup Information File. The programs listed in this section of the SIF run as the SYSTEM account.
Ok. I think I have got it to work. Two fresh installations using RIS, both followed up with my antivirus and the SCCM2k7 client.

Instead of the original script, which was:

Set objShell=Wscript.CreateObject("WScript.Shell")
objShell.Run "\\SYSTEMS\InterChk\ESXP\setup.exe -user THOMASCLARKSON\SophosAV -pwd ********** -s",,True
objShell.Run "\\systems\SMS_TC1\Client\i386\CCMSETUP.EXE SMSSITECODE=TC1",3,True


I have changed it to be:

Set objShell=Wscript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objNetwork = WScript.CreateObject("WScript.Network")

'Install Sophos AV
objShell.Run "\\SYSTEMS\InterChk\ESXP\setup.exe -user THOMASCLARKSON\SophosAV -pwd ********** -s",,True

'Create a folder, and copy SCCM2k7 Installation Files
If objFSO.FolderExists("C:\SCCM2k7") = True Then
      objFSO.DeleteFolder ("C:\SCCM2k7")
End If
objFSO.CreateFolder("C:\SCCM2k7")
objNetwork.MapNetworkDrive "Y:", "\\systems\SMS_TC1", False
objFSO.CopyFolder "Y:\Client", "C:\SCCM2k7"
objNetwork.RemoveNetworkDrive "Y:"

'Wait for 30 seconds, whilst Sophos Installation Completes
Wscript.Sleep 30000

'Run the copied Client Setup
objShell.Run "C:\SCCM2k7\ccmsetup.exe"

'Wait for 3 minutes, then delete files
WScript.Sleep 180000
objFSO.DeleteFolder("C:\SCCM2k7")

I'm guessing there may be a better way to do this, but for now, this is working.

Anyone think of something better?





ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial