Deploying Office 365 Pro Plus via SCCM

Hi

I am trying to deploy Office 365 Pro Plus via SCCM, I followed this process https://gallery.technet.microsoft.com/How-To-Deploying-Office-70e8b1eb#content , we don't use the application catalogue but I made the application available to be run via system center.

Though can't get it deployed, I keep getting some errors about checking internet connections ...though I can run the command manually and it'works.

Does anyone managed to install it via SCCM ?

February 26th, 2015 6:26pm


Though can't get it deployed, I keep getting some errors about checking internet connections ...


Please provide details or a screenshot please.
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2015 2:06am

Though can't get it deployed, I keep getting some errors about checking internet connections ...though I can run the command manually and it works.

on the client, check the c:\windows\temp\<computername>......log files (this should be where C2R setup.exe creates the setup logfiles.

Usually, this symptom occurs when the configuration.xml file you have authored is incorrect, or the downloaded files from setup.exe /download steps are incomplete,  so setup.exe will try to connect to MSFT cloud to get the files via web.

February 27th, 2015 4:42am

Sorry for the delay, 

here is a screenshot, edit looks like I can't add screenshot

the error says : 

Office

Couldn't Install

We're sorry, we had a problem installing your Office program(s)

...

same as here https://support.microsoft.com/kb/2696484

The command sccm runs is

Setup.exe /configure Install.xml

my install.xml file is

<Configuration>
  <Add SourcePath="\\Servername\Applications\Microsoft Office 365 ProPlus" OfficeClientEdition="32" >
    <Product ID="O365ProPlusRetail">
			<Language ID="en-us" />
			<ExcludeApp ID="Access" />
			<ExcludeApp ID="Groove" />
			<ExcludeApp ID="Lync" />
			<ExcludeApp ID="Project" />
			<ExcludeApp ID="SharePointDesigner" />
			<ExcludeApp ID="Visio" />
    </Product>
  </Add>
  <Updates Enabled="FALSE" />
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>

if I run the command directly from the laptop, it asks me admin password and then it installs it fine.

The log file under C:\Windows\Temp\ shows this

03/03/2015 15:31:31.010 SETUP (0xfc) 0x166c Click-To-Run aqdco Monitorable TryCheckNetworkCost::HandleStateAction: Failed to initialize NetworkCostManager for \\Server name\Applications\Microsoft Office 365 ProPlus. Assuming low cost and proceeding.

03/03/2015 15:31:31.010 SETUP (0xfc) 0x166c Click-To-Run aoh9i Medium TryGetVersionDescriptor::HandleStateAction: Getting Cab: v32.cab

03/03/2015 15:31:31.028 SETUP (0xfc) 0x166c Click-To-Run ap6e1 Unexpected FileDownload::Download: Download failed for "\\ServerName\Applications\Microsoft Office 365 ProPlus\Office\Data\v32.cab", try 0. {"MachineID":"96c0d74a37f2714fa79778ee82ebd362","SessionID":"1ef1d5ce-94c0-4621-b9f9-fe77fdfaecf1","GeoID":"244","Ver":"15.0.4623.1001","ErrorCode":"5","ErrorMessage":"ErrorCodeOnly (Failed to copy file src: \\ServerName\Applications\Microsoft Office 365 ProPlus\Office\Data\v32.cab, dest: C:\WINDOWS\TEMP\OfficeC2RFB93F726\v32.cab , Error:0x5)","AppVErrorSource":"","ErrorType":"5"} 03/03/2015 15:31:31.028 SETUP (0xfc) 0x166c Click-To-Run aoh71 Medium BootstrapperState::OnError: Error has occured. Go to ExitBootStateMachine.

  • Edited by Anne Li Tuesday, March 03, 2015 5:50 AM
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2015 5:44am

Sorry for the delay, 

here is a screenshot, edit looks like I can't add screenshot

the error says : 

Office

Couldn't Install

We're sorry, we had a problem installing your Office program(s)

...

same as here https://support.microsoft.com/kb/2696484

The command sccm runs is

Setup.exe /configure Install.xml

my install.xml file is

<Configuration>
  <Add SourcePath="\\Servername\Applications\Microsoft Office 365 ProPlus" OfficeClientEdition="32" >
    <Product ID="O365ProPlusRetail">
			<Language ID="en-us" />
			<ExcludeApp ID="Access" />
			<ExcludeApp ID="Groove" />
			<ExcludeApp ID="Lync" />
			<ExcludeApp ID="Project" />
			<ExcludeApp ID="SharePointDesigner" />
			<ExcludeApp ID="Visio" />
    </Product>
  </Add>
  <Updates Enabled="FALSE" />
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>

if I run the command directly from the laptop, it asks me admin password and then it installs it fine.

The log file under C:\Windows\Temp\ shows this

03/03/2015 15:31:31.010 SETUP (0xfc) 0x166c Click-To-Run aqdco Monitorable TryCheckNetworkCost::HandleStateAction: Failed to initialize NetworkCostManager for \\Server name\Applications\Microsoft Office 365 ProPlus. Assuming low cost and proceeding.

03/03/2015 15:31:31.010 SETUP (0xfc) 0x166c Click-To-Run aoh9i Medium TryGetVersionDescriptor::HandleStateAction: Getting Cab: v32.cab

03/03/2015 15:31:31.028 SETUP (0xfc) 0x166c Click-To-Run ap6e1 Unexpected FileDownload::Download: Download failed for "\\ServerName\Applications\Microsoft Office 365 ProPlus\Office\Data\v32.cab", try 0. {"MachineID":"96c0d74a37f2714fa79778ee82ebd362","SessionID":"1ef1d5ce-94c0-4621-b9f9-fe77fdfaecf1","GeoID":"244","Ver":"15.0.4623.1001","ErrorCode":"5","ErrorMessage":"ErrorCodeOnly (Failed to copy file src: \\ServerName\Applications\Microsoft Office 365 ProPlus\Office\Data\v32.cab, dest: C:\WINDOWS\TEMP\OfficeC2RFB93F726\v32.cab , Error:0x5)","AppVErrorSource":"","ErrorType":"5"} 03/03/2015 15:31:31.028 SETUP (0xfc) 0x166c Click-To-Run aoh71 Medium BootstrapperState::OnError: Error has occured. Go to ExitBootStateMachine.

  • Edited by Anne Li Tuesday, March 03, 2015 5:50 AM
March 3rd, 2015 5:44am

Anne, your install.xml for Office setup, and your setup logfile, both show that you have mis-configured your install.xml.

As a result, ConfigMgr agent is trying to download the setup files (v32.cab etc) from a network server location, and, the client agent can't access that location (error 5), so, setup.exe defaults to trying to download the setup files from MSFT web address, and that is also failing, resulting in the total failure of the installation attempt.

Please refer back to the guide you are using, particularly step #8 - you need to correctly edit your install.xml as per the guide :)

<Configuration>
     <Add Sourcepath="" OfficeClientEdition="32" >
etc...

Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2015 8:45am

Hi DonPick,
Thank you for your reply. I tried changing the install file as suggested, it works, except that in Software Center it says "failed"as status, but Office is installed.
Does this mean it downloaded the files from internet ? if so what's the advantage pushing it via SCCM ?

Also still doesn't explain why I can install it if I run the command manually (with the server path on it) and not when it's from SCCM
Could it be that the laptop doesn't have access to the folder ? though I would have issue with other applications.

March 4th, 2015 4:58am

Hi DonPick,
Thank you for your reply. I tried changing the install file as suggested, it works, except that in Software Center it says "failed"as status, but Office is installed.
Does this mean it downloaded the files from internet ? if so what's the advantage pushing it via SCCM ?

Also still doesn't explain why I can install it if I run the command manually (with the server path on it) and not when it's from SCCM
Could it be that the laptop doesn't have access to the folder ? though I would have issue with other applications.

If SC is showing a status of failed, you will need to examine the Office setup logfile (should be atc:\windows\temp\<computername>-abcxyz.log) to find out what the result was from setup.exe.

You should also check the CCM logs (either ccmexec.log or App*.log) to find out the result code CCM was given from your application, you may need to check your Application/DeploymentType, are you performing detection logic correctly etc

There is no need for download from internet for Office C2R at all.

Manually testing is good, but is not representative of exactly how CCM performs the tasks, e.g. CCM will use the LocalSystem account on the client computer to perform the installation.

If your install.xml (incorrectly) contains the SourcePath of a servershare, instead of "", the client computer account (LocalSystem) will need to be granted read permissions to that servershare (as documented in the TechNet library), you can do this by granting "Domain Computers" the Read permission to that share.

(this context switch, only occurs on O365 C2R setup.exe. It doesn't happen for other packages/installers)

(when you are logged on manually, the share is accessed by your logon account permissions to that share. A client computer, does not use your account, it uses the LocalSystem i.e. the computer$ ac

Free Windows Admin Tool Kit Click here and download it now
March 4th, 2015 8:19am

I forgot to paste the log from the Office set up log file

03/04/2015 10:51:16.228	SETUP (0xf10)	0x107c		Click-To-Run	aoh9t	Medium	TryLaunchClient::HandleStateAction: Launching OfficeClickToRun.exe with parameters: scenario=unknown acceptalleulas="True" cdnbaseurl="http://officecdn.microsoft.com/pr/39168D7E-077B-48E7-872C-B232C3E72675" productreleaseid="none" displaylevel="False" culture="en-us" baseurl="C:\WINDOWS\ccmcache\5l" lcid="1033" platform="x86" updatesenabled="False" o365proplusretail.excludedapps="access,groove,lync,project,sharepointdesigner,visio" version="15.0.4675.1003" productstoadd="O365ProPlusRetail_en-us_x-none" trackedduration=280	

March 6th, 2015 1:14am

Thank you for the reply,
Where I am lost is where it downloads the Office C2R from ? 

Logs from the Temp folder

03/04/2015 10:51:15.947 SETUP (0xf10) 0x107c Click-To-Run anhmm Medium Prereq::PrereqsFailed: No prereqs have failed.

03/04/2015 10:51:16.228 SETUP (0xf10) 0x107c Click-To-Run aoh9t Medium TryLaunchClient::HandleStateAction: Launching OfficeClickToRun.exe with parameters: scenario=unknown acceptalleulas="True" cdnbaseurl="http://officecdn.microsoft.com/pr/39168D7E-077B-48E7-872C-B232C3E72675" productreleaseid="none" displaylevel="False" culture="en-us" baseurl="C:\WINDOWS\ccmcache\5l" lcid="1033" platform="x86" updatesenabled="False" o365proplusretail.excludedapps="access,groove,lync,project,sharepointdesigner,visio" version="15.0.4675.1003" productstoadd="O365ProPlusRetail_en-us_x-none" trackedduration=280

03/04/2015 11:01:12.393 SETUP (0xf10) 0x107c Click-To-Run aoh72 Medium ExitBootStateMachine::HandleStateAction: Bootstrapper workflow exiting with result: 0x0

Logs from SCCM AppEnforce shows this (can't see it failing)

<![LOG[+++ Starting Install enforcement for App DT "Install - Microsoft Office 365 ProPlus" ApplicationDeliveryType - ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, Revision - 7, ContentPath - C:\WINDOWS\ccmcache\5l, Execution Context - System]LOG]!><time="10:50:45.222-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:1702">
<![LOG[    A user is logged on to the system.]LOG]!><time="10:50:45.243-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:2083">
<![LOG[    Performing detection of app deployment type Install - Microsoft Office 365 ProPlus(ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, revision 7) for system.]LOG]!><time="10:50:45.247-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:2148">
<![LOG[+++ Application not discovered. [AppDT Id: ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, Revision: 7]]LOG]!><time="10:50:45.287-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="localapphandler.cpp:291">
<![LOG[    App enforcement environment: 
Context: Machine
Command line: Setup.exe /configure Install.xml
Allow user interaction: No
UI mode: 1
User token: null
Session Id: 1
Content path: C:\WINDOWS\ccmcache\5l
Working directory: ]LOG]!><time="10:50:45.288-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appcontext.cpp:85">
<![LOG[    Prepared working directory: C:\WINDOWS\ccmcache\5l]LOG]!><time="10:50:45.290-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appcontext.cpp:189">
<![LOG[    Prepared command line: "C:\WINDOWS\ccmcache\5l\setup.exe" /configure Install.xml]LOG]!><time="10:50:45.340-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appcontext.cpp:338">
<![LOG[    Executing Command line: "C:\WINDOWS\ccmcache\5l\setup.exe" /configure Install.xml with user context]LOG]!><time="10:50:45.341-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:201">
<![LOG[    Working directory C:\WINDOWS\ccmcache\5l]LOG]!><time="10:50:45.341-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:215">
<![LOG[    Post install behavior is BasedOnExitCode]LOG]!><time="10:50:45.529-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appcommon.cpp:1094">
<![LOG[    Waiting for process 3856 to finish.  Timeout = 120 minutes.]LOG]!><time="10:50:45.533-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:1958">
<![LOG[    Process 3856 terminated with exitcode: 0]LOG]!><time="11:01:12.428-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:1967">
<![LOG[    Looking for exit code 0 in exit codes table...]LOG]!><time="11:01:12.429-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:505">
<![LOG[    Matched exit code 0 to a Success entry in exit codes table.]LOG]!><time="11:01:12.430-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:584">
<![LOG[    Performing detection of app deployment type Install - Microsoft Office 365 ProPlus(ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, revision 7) for system.]LOG]!><time="11:01:12.621-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:2148">
<![LOG[+++ Application not discovered. [AppDT Id: ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, Revision: 7]]LOG]!><time="11:01:12.739-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="localapphandler.cpp:291">
<![LOG[++++++ App enforcement completed (627 seconds) for App DT "Install - Microsoft Office 365 ProPlus" [ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479], Revision: 7, User SID: ] ++++++]LOG]!><time="11:01:12.748-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:2448">

Free Windows Admin Tool Kit Click here and download it now
March 6th, 2015 1:25am

Ok, so AppEnforce.log is showing that the installation was launched, then office installed, resulted in exitcode=0 (success), but then your app detection logic failed to find success.

this matches your latest symptom, i.e. Office is installed but CM says failed.

This strongly suggests that your AppModel detection method/logic is defective.

March 6th, 2015 3:11am

ok I ll have a look at that.
So where I can see where is office downloaded from ?

Free Windows Admin Tool Kit Click here and download it now
March 8th, 2015 7:10pm

ok I ll have a look at that.
So where I can see where is office downloaded from ?

you should be able to see that, early in the Office setup logfiles on the client machine.

e.g.: baseurl=c:\windows\ccmcache\5l

if there is any downloading occurring by fallback to MSFT cdn, you should see that in setup logfiles too.
there are usually several Office C2R setup logfiles - check them all.

March 8th, 2015 7:40pm

Hi Thanks for your reply, I changed the detection method, adding the reg key, I am trying an install again and see how I go.
I tried to have a look at all the log files and couldn't find where it gets the Office files from.
I am still confused, because from reading here 

https://technet.microsoft.com/en-nz/library/jj219422.aspx

It says we can download from a network share, so I am wondering if in my case will download it from internet instead, which is not what we want.

Free Windows Admin Tool Kit Click here and download it now
March 9th, 2015 1:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics