Windows 10: Create Provisioning Package in Windows 10

Discus and support Create Provisioning Package in Windows 10 in Windows 10 Tutorials to solve the problem; How to: Create Provisioning Package in Windows 10 Create Custom Provisioning Package used to Reset Windows 10 or Create Recovery Drive [img]... Discussion in 'Windows 10 Tutorials' started by Brink, Aug 6, 2015.

  1. Brink
    Brink New Member

    Create Provisioning Package in Windows 10


    How to: Create Provisioning Package in Windows 10

    Create Custom Provisioning Package used to Reset Windows 10 or Create Recovery Drive

    Create Provisioning Package in Windows 10 [​IMG]
    Information If you're having problems with Windows 10 on your PC, in some cases you may want to recovery drive which you have created.

    If you have upgraded a computer from an earlier version of Windows, or clean-installed it yourself at some point, then normally a reset or a recovery drive will perform a clean install of Windows 10 and nothing else.

    However this tutorial shows you how to customise the reset and recovery drive by saving your currently installed software applications, so that they get picked up by the reset process or the next time you create a recovery drive.

    Windows 10 incorporates a new technology called Provisioning Packages, and this tutorial uses tool called scanstate, which is part of the free Windows Assessment and Deployment Kit (ADK) to capture currently-installed software into one of these packages.


    Create Provisioning Package in Windows 10 [​IMG]
    Note You must be signed in as an administrator to be able to perform this tutorial

    It's best to run this computer soon after setting it up, when you know you have software that's working correctly. This tutorial preserves the state of your currently installed software (although it seems not to save settings). If your software is currently not working, then this tutorial may just preserve the broken state of your current computer, which means a future Reset would not help you.

    The other reason to do this on a freshly set up PC is that the provisioning package seems to include other folders on your operating system drive, outside the C:\Users folders. So if you have a folder called C:\Software_Installers, that gets included as well. This can be useful but also can swell the size of the package if you have saved a lot of files outside the C:\Users folder.


    Create Provisioning Package in Windows 10 [​IMG]
    Warning This tutorial uses the same techniques which manufacturers of new Windows 10 computers are likely to be using to save customisations.

    Therefore it is not intended for use on computers which came with Windows 10 pre-installed, as it may conflict with customisations which the manufacturer has already saved.

    This tutorial writes a file to a folder called C:\Recovery\Customizations. This folder is a 'special' Windows folder and you can break Windows Reset and Recovery processes by putting the wrong file there.



    A video walk-through of this process, with one or two variations, and showing testing of the Reset and Recovery Drive process:





    Here's How:

    Contents:
    Part One: Check for existing saved customisations
    Part Two: Download the USMT from the ADK
    Part Three: Prepare the scanstate tool and capture customisations




    Part One [/i] Check for existing saved customisations
    1. Open an elevated command prompt.

    2. Type the following command and press enter:
    *Arrow dir c:\Recovery\Customizations /a
    3. If this directory listing returns a file (see screenshot below), then there are customisations already present. If the file is present because you already ran this tutorial previously, then you should be OK. However if you didn't run this, then it looks like the manufacturer has already saved customisations and you should not run the rest of this tutorial.

    Create Provisioning Package in Windows 10 [​IMG]


    If the directory doesn't exist, or is empty (for example as in the screenshot below) you should be good to continue with the rest of the tutorial.


    Create Provisioning Package in Windows 10 [​IMG]

    4. Type exit and press Enter, to close the command prompt window.





    Part Two [/i] Download the USMT from the ADK
    5. This section installs part of the Windows Assessment and Deployment Kit (ADK), called the User State Migration Tool (USMT). To do this, click on the download button below to download the Setup program for the ADK. Save this on your computer and Run it once it has downloaded.
    Download

    6. The ADK setup program will ask if you want to Install the Windows Assessment and Deployment Kit to this computer, or Download for installation on a separate computer. All you need to do for this tutorial is select the Install option, and click/tap next.

    Create Provisioning Package in Windows 10 [​IMG]
    Information Optional: If you like, you could select the Download option to download the whole ADK to use other tools within the kit. This will result in a bigger data download than the minimum required for this tutorial.

    Create Provisioning Package in Windows 10 [​IMG]


    7. The ADK setup program will ask you if you are happy for anonymous usage data to be collected. Answer this question by selecting Yes or No, and then click/tap Next.

    Create Provisioning Package in Windows 10 [​IMG]


    8. The ADK setup program will ask you if you accept the licence agreement. If you are happy to accept this, then click/tap Accept.

    Create Provisioning Package in Windows 10 [​IMG]


    9. The ADK setup program will ask you which features you want to install. For the purpose of this tutorial, the only feature required to be selected is the User State Migration Tool (USMT). Select the features required, and click/tap Install. If the User Acccount Control dialog box is displayed, click/tap Yes to allow the app to make changes to your PC.

    Create Provisioning Package in Windows 10 [​IMG]


    10. The ADK setup program will end with a Welcome message. If you like, check the box to learn more about the Windows Assessment and Deployment Kit, but it it not required for this tutorial. Click/tap Close to exit the setup program.

    Create Provisioning Package in Windows 10 [​IMG]





    Part Three [/i] Prepare the scanstate tool and capture customisations

    11. At the time of writing, the version of the scanstate tool in the ADK needs a workaround to allow it to run the command in this tutorial. The workaround is to copy files from two folders into one, so that all the files required by the scanstate tool are present in the same folder.
    If you like to type in the commands yourself, goto step 16 below. If you want to download a file to run the commands, continue at step 12.


    Create Provisioning Package in Windows 10 [​IMG]
    Note If you type in the commands yourself, there is the option of uninstalling the Windows ADK before saving the state of installed software. By uninstalling it means the Windows ADK would not be included in the Provisioning Package that is saved. Otherwise the Windows ADK would be restored by the Reset process or if you reinstalled Windows from a Recovery Drive.
    To run the commands using a batch file

    12. Either:
    If you are running a 32-bit system, download this batch file to your computer.
    Download
    OR

    If you are running a 64-bit system, download this batch file to your computer.
    Download
    13. Once the batch file has downloaded, right-click it and run as Administrator. You may get a message saying User Acccount Control dialog box.

    Create Provisioning Package in Windows 10 [​IMG]



    Create Provisioning Package in Windows 10 [​IMG]


    14. This will create a folder called c:\usmt\scanstate which holds the merged scanstate files, and also writes the provisioning package containing your software to the folder C:\Recovery\Customizations. A log of the scanstate process is kept in the folder c:\usmt .

    15. This completes the process of creating a provisioning package. Go to step 20 for some final steps.

    To run the commands from the command prompt

    16. Open an elevated command prompt.

    Create Provisioning Package in Windows 10 [​IMG]
    Tip There is a new feature in Windows 10: commands can be copied and pasted into command prompts using the normal Ctrl-C and Ctrl-V keyboard shortcuts.

    However you may need to be careful not to copy the 'bullets' from the lists of commands below.
    Either:
    If you are running on 32-bit Windows 10, execute these commands at the command prompt by typing each command and pressing enter:

    • c:
    • md c:\usmt\scanstate
    • cd c:\usmt\scanstate
    • xcopy "C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\windows setup\x86\sources"
    • xcopy /s /y "C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\User State Migration Tool\x86"

    Or:
    If you are running on 64-bit Windows 10, execute these commands at the command prompt by typing each command and pressing enter:

    • c:
    • md c:\usmt\scanstate
    • cd c:\usmt\scanstate
    • xcopy "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\windows setup\amd64\sources"
    • xcopy /s /y "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\User State Migration Tool\amd64"



    Create Provisioning Package in Windows 10 [​IMG]



    Create Provisioning Package in Windows 10 [​IMG]


    17. Optional Step:
    At this point, you may want to uninstall the Windows Assessment and Deployment Kit.. You would do this if you didn't want to use the Windows ADK again for another purpose, and wanted to remove it from the Provisioning Package of applications that would be restored when you ran a Reset or Recovery Drive in future.

    If you do this, leave the command prompt open as there is another command to run there.

    To uninstall the Windows ADK, follow Option One or Option Three in this tutorial, and uninstall "Windows Assessment and Deployment Kit"
    Apps - Uninstall in Windows 10
    18. Return to the elevated command prompt (which should be in the c:\usmt\scanstate folder), for example by using the Alt-Tab keyboard combinations to switch applications until you get there.
    From the command prompt, execute this command to save your software. This could take a while, depending on how much software is installed.

    • scanstate /apps /ppkg c:\recovery\customizations\usmt.ppkg /o /v:13 /l:c:\usmt\scanstate.log



    Create Provisioning Package in Windows 10 [​IMG]


    19. Type exit and press Enter, to close the command prompt window.

    20. If you like, you can optionally delete the extra folder created to merge the scanstate files together. Navigate to the c:\usmt folder using File Explorer and delete it.

    Create Provisioning Package in Windows 10 [​IMG]


    21.

    Create Provisioning Package in Windows 10 [​IMG]
    Tip Now that the customisations have been saved, you may wish to create a recovery drive. The recovery drive process should automatically includes these customisations if you use the option to 'Back up system files to the recovery drive' when yohu create it.


    That's it!
    David


    Related Tutorials

    :)
     
    Brink, Aug 6, 2015
    #1
  2. srfreeman Win User

    VoLTE support in windows phone

    Remember, 'supports it' and 'provisioned for it' are two very different things. VoLTE is available as part of the Windows Imaging and Configuration Designer, so you could build a provisioning package to use it for most any supportable Windows 10 mobile device.

    Not being in the Indian market, I cannot see any benefit in creating such a package, nor do I know of anyone that has. Do you know of any use for this in the US market?
     
    srfreeman, Aug 6, 2015
    #2
  3. Does Windows 10 phone support eduroam with TTLS-PAP

    Hi,

    until now (before aniversary update) you could use a provisioning package to import an "profile.xml" (create on Windows 10 Desktop with configured Wifi => netsh wlan export profile name=eduroam folder:C:\Profile ) to a Windows 10 Mobile.

    This Package can be created with the *free* Microsoft Tool "ICD" which is part of the ADK.

    With the aniversary update there are some errors we stilll weren't able to fix, but it should work in general
     
    pikachuprof, Aug 6, 2015
    #3
  4. jedy48 Win User

    Create Provisioning Package in Windows 10

    tanks, very good*Smile
     
    jedy48, Aug 8, 2015
    #4
  5. JJDiebolt Win User
    Process worked great, but I ran into the dreaded "We can't create the recovery drive: A problem occurred while recreating the recovery drive" error.

    Formatting was successful, but the last second before the error I saw "copying utilities". The only thing in the error log was:

    Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object.


    Details:
    AddLegacyDriverFiles: Unable to back up image of binary Microsoft Link-Layer Discovery Protocol.


    System Error:
    Access is denied.
    .
    Previous to this procedure I had been able to create a recovery drive with the checkbox checked. If I can't resolve, I'll just revert to the prior day's system image and undo what we did here.
     
    JJDiebolt, Aug 13, 2015
    #5
  6. DavidY Win User
    Hmm I don't know - I've had problems with the recovery drive but they seem independent of this process.

    Can you confirm that in the C:\Recovery\Customizations folder, you *only* have the one file?:
    • usmt.ppkg

    I think extra files in that folder can certainly cause problems.
     
    DavidY, Aug 13, 2015
    #6
  7. JJDiebolt Win User
    Yes, only one file is listed:

    • usmt.ppkg
     
    JJDiebolt, Aug 13, 2015
    #7
  8. Kyhi Win User

    Create Provisioning Package in Windows 10

    to prevent the message right click on file and select Unblock
     
  9. JJDiebolt Win User
    Thanks, but the process David listed worked great; it's just I can no longer create the recovery disk with the checkbox (system files) checked, which defeats the whole purpose of this thread.
     
    JJDiebolt, Aug 13, 2015
    #9
  10. DavidY Win User
    I sometimes found that after a reboot (but changing nothing) the Recovery Drive worked at the second attempt - so that may be worth a try.

    Then I would see what happens if you move that file to another folder (eg. C:\Temp)? Will the Create Recovery Drive process work then?

    Also, how big is that usmt.ppkg file?
     
    DavidY, Aug 13, 2015
    #10
  11. JJDiebolt Win User
    It seems to be working now. The only difference was to go to control panel>File Explorer Options and uncheck "hide protected operating system files". I already had "Show Hidden Files, Folders or Drives" selected. This time there was no Event Log "Access is Denied" message or error report. So far its running about 1/3 of the way.."backing up system files". I'll post if it completes.
     
    JJDiebolt, Aug 13, 2015
    #11
  12. JJDiebolt Win User
    It's 19.6 GB...
     
    JJDiebolt, Aug 13, 2015
    #12
  13. DavidY Win User

    Create Provisioning Package in Windows 10

    Thanks - I think there's a limit of 32GB for the total size of Recovery Drive (including the usmt file) so it would be an issue if it was near to 30GB. Fingers crossed it works second time.
     
    DavidY, Aug 13, 2015
    #13
  14. JJDiebolt Win User
    So far so good..I'm using a SanDisk 32GB USB stick it recommended a 32GB size and of course with FAT you wind up with about 29.7 GB usable. About halfway done now and it appears to be self compressing...used space goes up to about 11.5 and drops back to 11.3 GB...just dropped back to 10.8..used...
     
    JJDiebolt, Aug 13, 2015
    #14
  15. JJDiebolt Win User
    Success!

    Create Provisioning Package in Windows 10 [​IMG]


    Here's what I wound up with:

    Disk layout: This is a HP Pavilion and I zeroed out the HP drives/partitions and included bloatware and clean installed Win 7 Pro in Jan 2013, enrolling the system in Win 10 TP in Jan 2015. I have all my programs and preferences loaded and running. On my Gateway and Dell I have Acronis 2015 installed, not on this machine. On this HP I rely on Windows Backup functions including Windows7 Backup and system images. (Those other machines do not, for some reason, have any recovery option but "reset this pc" not even advanced startup options--and the Windows Backup programs fail to work properly anyway)

    Create Provisioning Package in Windows 10 [​IMG]



    Create Provisioning Package in Windows 10 [​IMG]

    USB Recovery disk when done:


    Create Provisioning Package in Windows 10 [​IMG]



    Top Level:

    Create Provisioning Package in Windows 10 [​IMG]


    Sources:


    Create Provisioning Package in Windows 10 [​IMG]


    Customizations:

    Create Provisioning Package in Windows 10 [​IMG]



    A few notes and asides; knowing I was going to be cutting it close, and not knowing what the recovery program skips by default, I did clean out browser cache, run disk cleanup, ditched some cached google stuff in the Users\NAME\Local\AppData folder which disk cleanup misses. I did not delete any restore points, but I would recommend that be a step for most users with system restore enabled. I would also recommend ditching any $Windows.~BT/$Windows.~WS folders if the user is confident they don't need to roll back to the old OS or have a disk image of the old OS if needed. The "WS" folder is created when you run the Windows 10 Installation Media creator and dumps 3-5 GB of data on C: . Currently disk cleanup does not remove that data.
     
    JJDiebolt, Aug 14, 2015
    #15
Thema:

Create Provisioning Package in Windows 10

Loading...
  1. Create Provisioning Package in Windows 10 - Similar Threads - Create Provisioning Package

  2. How to create provision package PPKG programatically?

    in Windows 10 Gaming
    How to create provision package PPKG programatically?: Hi there, I'm looking to automate the creation of PPKG files using any programming language. I haven't been able to find any detailed instructions or examples on how to do this, and I'd prefer not to use the WCD tool.If you have any suggestions, I'd be grateful.Thanks!...
  3. How to create provision package PPKG programatically?

    in Windows 10 Software and Apps
    How to create provision package PPKG programatically?: Hi there, I'm looking to automate the creation of PPKG files using any programming language. I haven't been able to find any detailed instructions or examples on how to do this, and I'd prefer not to use the WCD tool.If you have any suggestions, I'd be grateful.Thanks!...
  4. Windows 10 Provision Package and ghost logins occuring

    in Windows 10 Gaming
    Windows 10 Provision Package and ghost logins occuring: I work for a MSP that had a software developer create the service team a USB provision tool for setting up a bulk amount of computers and I believe its causing some issues. The software developer sorta built this on his side time and no one really knows much about it. It...
  5. Windows 10 Provision Package and ghost logins occuring

    in Windows 10 Software and Apps
    Windows 10 Provision Package and ghost logins occuring: I work for a MSP that had a software developer create the service team a USB provision tool for setting up a bulk amount of computers and I believe its causing some issues. The software developer sorta built this on his side time and no one really knows much about it. It...
  6. Provisioning package creates account but OOBE still forces creation.

    in Windows 10 Installation and Upgrade
    Provisioning package creates account but OOBE still forces creation.: Hello, I created a provisioning package to add a local admin account and connect to our domain. It runs during the OOBE and everything works, it just still forces me to create an account at startup. Is there a way to bypass this or would an answer file be a better solution?...
  7. Provisioning Packages Not Naming Devices?

    in Windows 10 Customization
    Provisioning Packages Not Naming Devices?: Hello there all. I come to you with a simple question that hopefully has an equally simple solution. For a while now I've been enrolling devices into AAD with provisioning packages, and I rely heavily on the naming convention to apply via the package so the device pulls the...
  8. Provisioning Package issues

    in Windows 10 Installation and Upgrade
    Provisioning Package issues: Hey Yall, I am trying to set up a provisioning package using windows configuration designer to deploy to new Windows 10 machines and am having a lot of issues. I have tried a bare bones .ppkg with only one setting changed and also a full blown custom .ppkg with about 100...
  9. Provisioning package fails to install

    in Windows 10 Installation and Upgrade
    Provisioning package fails to install: Hello I have setup a test machine with all the settings and apps I need, I have then created a provisioning package Called 'capturedSettings' using the ICD but when I try to install it I get the following error I use the following tutorial on this website to use the...
  10. Using Provisioning Packages

    in Windows 10 Installation and Upgrade
    Using Provisioning Packages: Hello Everyone, While reading about Provisioning Packages, I cannot figure out where and when to use them? I really appreciate if you could help find some use cases of PP. Why Microsoft came up with the idea of PP? Does they replace GPOs? (if anything to do with GPOs...

Users found this page by searching for:

  1. create provisioning package windows 10