Jump to content

Recommended Posts

Posted

Has anyone managed to do this yet, don't know if my problem is specific to my build or a general issue, but it keeps failing sysprep saying "sysprep was not able to validate your windows installation, review the log file.... The logfile shows this:

 

"2015-08-04 12:59:44, Error SYSPRP Package Microsoft.VCLibs.120.00_12.0.21005.1_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

 

2015-08-04 12:59:44, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.

 

2015-08-04 12:59:44, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

 

2015-08-04 12:59:44, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

2015-08-04 12:59:44, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2

2015-08-04 12:59:44, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2

2015-08-04 12:59:44, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2

2015-08-04 12:59:44, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2"

 

 

this is when trying to run sysprep direct and via sccm capture media, running windows 10 Education clean install oon a hyper-v machine.

 

Anyone?

Posted

Gah, that sounds like the issue then, I stupidly assumed right clicking and choosing uninstall would be enough for the apps, clearly not! Spend another day rebuilding the image then.

 

Thanks Sparkeh!

Posted

How did you create your unattend.xml file? Did you use the Windows Imaging and Configuration Designer.

 

Also do you use the copyprofile option for Windows 10?

Posted
I've now reinstalled a Win 10 OS and some apps and tried the SCCM capture media which is now working, so I believe Sysprep failed due to the fact I had tried to remove start menu items by right clicking and choosing uninstall!
  • Thanks 1
Posted

I had this issue yesterday after 2 days off removing provisioned appx packages from images.

 

I'm about to sysprep with a SCCM capture image my final build which if my theory is right should hopefully work, will report results within the hour

Posted
I had this issue yesterday after 2 days off removing provisioned appx packages from images.

 

I'm about to sysprep with a SCCM capture image my final build which if my theory is right should hopefully work, will report results within the hour

 

And the fix was.....?

Posted (edited)
And the fix was.....?

 

Waiting for Serif suite to install in the image and then will sysprep it with the SCCM capture media, 20 mins tops now hopefully then I will let you know if it worked.

 

I usually just deploy Serif suite as a package but the sheer amount of files to copy means its an hour long copy/install which is a joke so I want a faster build time.

Edited by Tefters
Edit
Posted

Just got mine capturing again now, sysprepped Ok, only difference is I haven't "uninstalled" any of the new metro apps, other causes can be if you have upgraded from a previous os (there is a reg key that needs to be deleted to get round this), might also need to reset the rearm count if you have tried multiple times?

 

Win 10 Education Activated

Office 2013

Fully Windows and Office updated

On the network, Internet fine

Start layout tweaked , no metro apps uninstalled.

 

HTH

Posted (edited)

Right well good news... NOT... I've managed to captures image without removing provisioned appxpackages absolutely fine but when you remove them and capture it does not work and sysprep fails...

 

feck feck feck feck feck grrrrr

 

EDIT:- Ok time for plan B or C, either deploy standard ISO/WIM and then run a powershell script to remove provisionedappxpackages with the -online switch after the build has deployed or mount the WIM offline and try that way.

 

Getting sick of rebuilding 10 over and over already...

Edited by Tefters
Posted (edited)

I ran through the process of:-

 

Install ISO

Activate administrator

Restart and delete all other user accounts

Remove all app via powershell remove-provisionedappxpackage

Change bcdedit

Remove all active apps via powershell with remove-appxpackage -all users

Install a office, serif, photoshop

Windows Update

Run capture image ISO fro SCCM and fail on sysprep

 

EDIT: Having just read through that Technet article again they are saying you have to remove-appxpackage from the default users first and then remove-provisionedappxpackage ?

If you simple delete the default user installed then it doesn't work...

Edited by Tefters
Posted (edited)
I've only used Remove-AppxPackage so far, not used the provisioned command yet

 

Your going to have issues then, Remove-AppxPackage only works for current profile your logged on as and if you add the -AllUsers switch (Remove-AppxPackage -AllUsers ...) then it will do all current users on the machine, newly created profiles will still get all the apps.

If you want to stop new profiles from getting the apps you need to use Remove-ProvisionedAppxPackage

 

Welcome to my world of hurt now!

 

EDIT - Here's some info: https://technet.microsoft.com/en-us/library/hh856038.aspx & https://technet.microsoft.com/en-us/library/hh824882.aspx?f=255&MSPPError=-2147217396

Edited by Tefters
Posted
We've decided what's the worst thing that can happen if a kid has access to the weather app, Xbox etc? Most of the stuff doesn't work anyway as they aren't signed into a Microsoft account.
Posted
We've decided what's the worst thing that can happen if a kid has access to the weather app, Xbox etc? Most of the stuff doesn't work anyway as they aren't signed into a Microsoft account.

 

I did that in Windows 8 but then the Start Menu just looks pants, I managed to do it in 8.1 and remove everything but for the life of me cant remember how as that was a year ago, i blame alcohol... and teachers...

Posted
Your going to have issues then, Remove-AppxPackage only works for current profile your logged on as and if you add the -AllUsers switch (Remove-AppxPackage -AllUsers ...) then it will do all current users on the machine, newly created profiles will still get all the apps.

If you want to stop new profiles from getting the apps you need to use Remove-ProvisionedAppxPackage

 

Welcome to my world of hurt now!

 

EDIT - Here's some info: https://technet.microsoft.com/en-us/library/hh856038.aspx & https://technet.microsoft.com/en-us/library/hh824882.aspx?f=255&MSPPError=-2147217396

 

Oh I know that, but one step at a time :)

Posted
Oh I know that, but one step at a time :)

 

I'm going for 1 final test now:-

 

ISO build

remove-appxpackage .....

remove-appxpackage -allusers .....

remove-provisionedappxpackge .....

capture image

 

If this doesn't work then i'm just going to use standard ISO, add apps and tweaks, capture media and then run a powershell script in my task sequence with the remove-provisionedappxpackage.

Posted
We've decided what's the worst thing that can happen if a kid has access to the weather app, Xbox etc? Most of the stuff doesn't work anyway as they aren't signed into a Microsoft account.

 

You're not wrong but the trouble with that is that every time a new user logs onto a PC, it has to spend time installing the provisioned appx packages. This increases the logon times and has the potential to annoy your users. That is why I remove those packages rather than any real concerns about what a user does with them.

Posted

So I did this:

 

Built image on workgroup from SCCM, with administrator password set

Logged in as administrator

Ran Get-AppxPackage *3d* | Remove-AppxPackage to delete all the packages I di not want

Ran Remove-AppxProvisionedPackage -PackageName Microsoft.Zune.xxx333.444.xxxx (etc) for each package I didn't want.

 

And Syspreped

 

Test now is what will a new user get when they sign in.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...