Thanks, I should be good now.

The registry key to stop the apps from updating worked, and allowed me to 
capture the image.



Chris Barnes

Coretek Services | Enterprise Consultant
* 248.767.4415 cell
* [email protected]
*   http://www.coretekservices.com<http://www.coretekservices.com/>

From: [email protected] [mailto:[email protected]] On 
Behalf Of Anjos, Valter Ângelo Brites, Vodafone Portugal (External)
Sent: Thursday, June 2, 2016 12:40 PM
To: [email protected]; [email protected]
Subject: [MDT-OSD] RE: MDT B&C Win 10 1511 issues

I'm using the script to remove the store apps offline and everything is working 
fine so far. Let me know if you face issues with the script and I will try to 
help you.

Thank you,

Best Regards,

Valter Anjos
Systems Engineer
Front End Services
Vodafone Portugal
Mobile: +351912104234
Phone: +351210914725
Email: [email protected]<mailto:[email protected]>


Sede: Av. D. João II, 36, Parque das Nações, 1998-017 Lisboa, Portugal
vodafone.pt <http://www.vodafone.pt/>



This message and any files or documents attached are strictly confidential or 
otherwise legally protected. It is intended only for the individual or entity 
named. If you are not the named addressee or have received this email in error, 
please inform the sender immediately, delete it from your system and do not 
copy or disclose it or its contents or use it for any purpose. Please also note 
that transmission cannot be guaranteed to be secure or error-free.



From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Chris Barnes
Sent: 2 de junho de 2016 17:08
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: [MDT-OSD] RE: MDT B&C Win 10 1511 issues

Thanks, I saw something similar, the script was slightly different, that was 
giving me problems. I am attempting a build right now of turning off the 
windows store updates using this reg key, and turn it back on by flipping the 
value back to 4 at the end of the build. If that gives me problems, I will use 
this script recommended to remove the apps offline.

Appreciate the help.

reg add 
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate /v 
AutoDownload /t REG_DWORD /d 2 /f





Chris Barnes

Coretek Services | Enterprise Consultant
* 248.767.4415 cell
* [email protected]
*   http://www.coretekservices.com<http://www.coretekservices.com/>

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Anjos, Valter Ângelo 
Brites, Vodafone Portugal (External)
Sent: Thursday, June 2, 2016 11:43 AM
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: [MDT-OSD] RE: MDT B&C Win 10 1511 issues

The best approach to avoid this issue is use a different method to remove the 
windows store apps:

https://blogs.technet.microsoft.com/mniehaus/2015/11/11/removing-windows-10-in-box-apps-during-a-task-sequence/

Why would you want to remove apps offline?  A couple of reasons:

  *   It's faster.  By removing the apps offline, the provisioned apps won't 
install when the OS boots up for the first time, so the first logon is faster 
and there's no need to remove the installed apps either.
  *   It avoids potential issues with the installation of provisioned apps.  
All apps provisioned in the image install asynchronously on Windows 10 with the 
first logon.  So it's possible that the task sequence starts removing apps 
while they are still being installed.  As a result, a script may fail to remove 
the app because it's not there yet, and removing the provisioned app may not 
prevent the pending install from completing.  It's a timing issue - your 
results may vary based on what happens in your specific task sequence.
  *   It avoids potential issues with Windows Update.   Sometimes while 
building an image, the Windows Update agent can update the apps while you're 
trying to remove them.  That can cause the removal to not work, and later if 
you try to sysprep and capture the image, that can fail.  (This is not a 
problem if you build your image on an isolated network with no internet access.)


Thank you,

Best Regards,

Valter Anjos
Systems Engineer
Front End Services
Vodafone Portugal
Mobile: +351912104234
Phone: +351210914725
Email: [email protected]<mailto:[email protected]>


Sede: Av. D. João II, 36, Parque das Nações, 1998-017 Lisboa, Portugal
vodafone.pt <http://www.vodafone.pt/>



This message and any files or documents attached are strictly confidential or 
otherwise legally protected. It is intended only for the individual or entity 
named. If you are not the named addressee or have received this email in error, 
please inform the sender immediately, delete it from your system and do not 
copy or disclose it or its contents or use it for any purpose. Please also note 
that transmission cannot be guaranteed to be secure or error-free.



From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Chris Barnes
Sent: 2 de junho de 2016 16:08
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: [MDT-OSD] RE: MDT B&C Win 10 1511 issues

Correct, that is the one that I found that describes the issue, and how to run 
a script that will list the apps in this state, where you can manually go 1 by 
1 and remove them. This doesn't work will in an automated B&C.

This is the script listed in the KB. I am looking for a way that I can automate 
this so that it is zero touch.

Import-Module Appx
Import-Module Dism
Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List 
-Property PackageFullName,PackageUserInformation
Remove-AppxPackage -Package <packagefullname>.
Remove-AppxProvisionedPackage -Online -PackageName <packagefullname>




Chris Barnes

Coretek Services | Enterprise Consultant
* 248.767.4415 cell
* [email protected]
*   http://www.coretekservices.com<http://www.coretekservices.com/>

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Anjos, Valter Ângelo 
Brites, Vodafone Portugal (External)
Sent: Thursday, June 2, 2016 10:39 AM
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: [MDT-OSD] RE: MDT B&C Win 10 1511 issues

Hi,

There is a KB for that issue:

https://support.microsoft.com/en-us/kb/2769827


Thank you,

Best Regards,

Valter Anjos
Systems Engineer
Front End Services
Vodafone Portugal
Mobile: +351912104234
Phone: +351210914725
Email: [email protected]<mailto:[email protected]>


Sede: Av. D. João II, 36, Parque das Nações, 1998-017 Lisboa, Portugal
vodafone.pt <http://www.vodafone.pt/>



This message and any files or documents attached are strictly confidential or 
otherwise legally protected. It is intended only for the individual or entity 
named. If you are not the named addressee or have received this email in error, 
please inform the sender immediately, delete it from your system and do not 
copy or disclose it or its contents or use it for any purpose. Please also note 
that transmission cannot be guaranteed to be secure or error-free.



From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Chris Barnes
Sent: 2 de junho de 2016 15:22
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: [MDT-OSD] MDT B&C Win 10 1511 issues

Hey guys - Having an issue I can't quite resolve. Working on a B&C for Win 10 
x64, and I am getting errors at the sysprep step, right before the capture.

Looking through some of the logs, it looks like it is the issue of the built in 
apps that are installed for a user, but not provisioned for all users.

I found a script that removes these apps, however every time I add an app to 
the list, and re-run the B&C, it finds a new app that it fails on.

One resolution I have seen online was to build this on a network that does not 
have Internet connectivity, however that does not work for my current client, 
with the time frame that we are dealing with.

Does anyone have a script that will query for any app in this state, and remove 
it, or something similar?




2016-06-01 16:37:30, Info                  SYSPRP Entering 
SysprepGeneralizeValidate (Appx) - validating whether all apps are also 
provisioned.

2016-06-01 16:37:32, Error                 SYSPRP Package 
Microsoft.MicrosoftOfficeHub_17.6306.23501.0_x64__8wekyb3d8bbwe was installed 
for a user, but not provisioned for all users. This package will not function 
properly in the sysprep image.

2016-06-01 16:37:32, Error                 SYSPRP Failed to remove apps for the 
current user: 0x80073cf2.

2016-06-01 16:37:32, Error                 SYSPRP Exit code of RemoveAllApps 
thread was 0x3cf2.


Chris Barnes

Coretek Services | Enterprise Consultant
* 248.767.4415 cell
* [email protected]
*   http://www.coretekservices.com<http://www.coretekservices.com/>


Reply via email to