Windows 10: CPI:offlineImage cpi:source question

Discus and support CPI:offlineImage cpi:source question in Windows 10 Installation and Upgrade to solve the problem; I have read quite a few of Kari's posts/articles regarding Windows 10 Unattend files and I am curious why exactly the answer file has to have an... Discussion in 'Windows 10 Installation and Upgrade' started by lordkaladar, Nov 15, 2015.

  1. CPI:offlineImage cpi:source question


    I have read quite a few of Kari's posts/articles regarding Windows 10 Unattend files and I am curious why exactly the answer file has to have an offline image 'source' in it. Does this tell setup where the WIM will be at some point, or strictly to link it to a WIM/Catalog to an answer file in Windows SIM?

    If that line is removed, will setup disregard the answer file? I'm curious mostly because the unattend is going to be IN an Sysprep'd image and not 'deployed' or inserted by another tool/service.

    :)
     
    lordkaladar, Nov 15, 2015
    #1

  2. C-7 problem with exploring the photos

    After updating to Anna icant see the pics that i have cpied from my pc . I only can explore the pics that ive taken from the cam pls help
     
    yogikratos, Nov 15, 2015
    #2
  3. mrgrits Win User
    updated to win10 now cpu doesn't work

    I recently updated my hp envy 23 from windows 8 to windows 10. It worked fine for a few hours. Then it asked to restart and update. Once it finished it would stop at the sign in screen and not let me user the most or keyboards. It finally let me sign
    in and the program ran very sluggish. It again prompted to restart and update. After it shut off I've been getting a black screen with no cursor. No bios.

    I'm no expert but i cpi is fried.

    What to do?
     
    mrgrits, Nov 15, 2015
    #3
  4. Kari Win User

    CPI:offlineImage cpi:source question

    The CPI source is basically only needed when the answer file is edited in Windows System Image Manager. It should be either the install.wim file of the same Windows version, edition and bit architecture than the image we are working with, or a so called catalog file created from such install.wim file.

    It is safe to remove the <cpi> tags (cpi source location and Windows SKU) from an answer file. I have left it intentionally to all answer file samples in my sysprep related tutorials; for the first, it does no harm being there, and for the second in rare occasions it has helped to assist an OP to edit the answer file later on in SIM.

    An example. Here's a simple answer file to relocate the main profile folder Users to drive E:, containing the <cpi> tags:

    Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <FolderLocations> <ProfilesDirectory>E:\Users</ProfilesDirectory> </FolderLocations> </component> </settings> <cpiCPI:offlineImage cpi:source question :eek:fflineImage cpi:source="wim:X:\sources\install.wim#Windows 10 PRO" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>[/quote] The same answer file with the <cpi> tags removed does exactly the same thing:
    Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <FolderLocations> <ProfilesDirectory>E:\Users</ProfilesDirectory> </FolderLocations> </component> </settings> </unattend>[/quote]
     
  5. Now if only WSIM would stop validating, but then producing an error when I hit save.

    Trying to add a local account. When I add it to oobeSystem, put in the name and the password and hit validate -- no issues. When I hit SAVE -- I get a lovely "Unknown setting attribute xmlns:wcm" error.
     
    lordkaladar, Nov 16, 2015
    #5
  6. Kari Win User
    Could you post the answer file code (removing all product keys, passwords and such), I'll have a look. Not promising anything but it might be I could find the culprit.
     
  7. Yes, thank you very much, in advance!

    Code: <?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="auditSystem"> <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="AMD64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DriverPaths> <PathAndCredentials wcm:keyValue="1" wcm:action="add"> <Path>c:\windows\LDDriverStore</Path> </PathAndCredentials> </DriverPaths> </component> </settings> <settings pass="auditUser"> <component name="Microsoft-Windows-Deployment" processorArchitecture="AMD64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Order>1</Order> <Path>c:\windows\System32\sysprep\sysprep.exe /oobe /generalize /reboot </Path> </RunSynchronousCommand> </RunSynchronous> </component> </settings> <settings pass="generalize"> <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="AMD64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="AMD64"> <OOBE> <HideEULAPage>true</HideEULAPage> <ProtectYourPC>1</ProtectYourPC> </OOBE> <RegisteredOwner>Blah</RegisteredOwner> <RegisteredOrganization>Blah</RegisteredOrganization> <TimeZone>Central Standard Time</TimeZone> <FirstLogonCommands> <SynchronousCommand> <Order>1</Order> <CommandLine>cmd /q /c del /q /f c:\windows\panther\Unattend\unattend.xml</CommandLine> </SynchronousCommand> </FirstLogonCommands> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <Password> <Value>blahblah</Value> <PlainText>false</PlainText> </Password> <Name>Blah</Name> </LocalAccount> </LocalAccounts> </UserAccounts> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="AMD64"> <RegisteredOwner>blah</RegisteredOwner> <RegisteredOrganization>blah</RegisteredOrganization> <ComputerName>*</ComputerName> <CopyProfile>true</CopyProfile> <TimeZone>Central Standard Time</TimeZone> </component> <component name="Microsoft-Windows-UnattendedJoin" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="AMD64"> <Identification> <Credentials> <Domain>blahblah</Domain> <Username>blahblah</Username> <Password>blahblah</Password> </Credentials> <JoinDomain>blahblah</JoinDomain> <MachineObjectOU>blahblah/blah/blah/blah</MachineObjectOU> </Identification> </component> </settings> <cpiCPI:offlineImage cpi:source question :eek:fflineImage cpi:source="wim:d:/imaging/windows_10_base/install.wim#Windows 10 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>[/quote] The line is indicated in the error message is this one:
    Code: <LocalAccount wcm:action="add" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">[/quote]
    Also, I noticed when combing through that I have the time zone twice. Hmm. Oobesystem should be the only place I really need that, right?


    Thanks again!
     
    lordkaladar, Nov 16, 2015
    #7
  8. CPI:offlineImage cpi:source question

    One thing I just stumbled upon by trial and error -- if I do the 'local account' addition in auditSystem (pass 5) instead of oobeSystem (pass 7), the error message goes away.

    It baffles me why even though settings apply to multiple passes, they only seem to work in very specific situations.


    At any rate, going to test this unattend right quick and see if it does what it SHOULD do! *Wink
     
    lordkaladar, Nov 16, 2015
    #8
  9. Kari Win User
    First, add the local and domain accounts rather in Pass 5 AuditSystem than Pass 7 OobeSystem, like this:

    Code: <settings pass="auditSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Description>Main User</Description> <DisplayName></DisplayName> <Group>Administrators</Group> <Name></Name> </LocalAccount> </LocalAccounts> </UserAccounts> </component> </settings>[/quote] The same done in SIM. Add component to Pass 5:

    CPI:offlineImage cpi:source question [​IMG]

    (Click to enlarge.)

    Add the user:

    CPI:offlineImage cpi:source question [​IMG]


    About the timezone, add it to Pass 4 Specialize:

    Code: <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <TimeZone>W. Europe Standard Time</TimeZone> </component> </settings>[/quote] The same in SIM:

    CPI:offlineImage cpi:source question [​IMG]

    Should work!
     
  10. It is not making the account. I looked in the setup actions/errors files and there are none, but I'm still prompted to make one and the account name in the answer file is not present anywhere.

    Could having an "sysprep /oobe /generalize /reboot" in AuditUser have anything to do with that?
    (I've never understood why another sysprep is thrown into the process.)
     
    lordkaladar, Nov 16, 2015
    #10
  11. Kari Win User
    Honestly, I have never had such an issue. The examples in my previous post is how you do it.

    I'm totally lost, having not a clue what you mean?

    How you do this:
    • Install Windows on your reference PC
    • When installation is done and OOBE shows the settings dialog, reboot to Audit Mode with CTRL + SHIFT + F3
    • Create your answer file
    • Sysprep with this command:
      Code: %windir%\sysprep\sysprep.exe /generalize /oobe /reboot /unattend:X:\AnswerFile.xml[/quote]
      • The /unattend:AnswerFile_Path switch is not needed if the answer file is saved as unattend.xml in C:\Windows\System32\Sysprep folder
      • If the answer file is saved in any other location or with any other name, the switch /unattend:X:\AnswerFile.xml is needed, telling the path and location of the answer file (in this example AnswerFile.xml on root of the drive X:)
      • The /generalize switch is only needed if the default user profile will be customized or if the image needs to be hardware independent
      • If /generalize switch is used, it should be the first switch after the sysprep command itself
    That's it. User accounts will be created as told in the answer file.
     
  12. I'm going to move the answer file from where it was in our older Windows 7 image into Sys32\Sysprep and see if it behaves.

    I'm basing some of this from the work of a previous admin, sorry. We were using a deployment tool before and performing tons of actions automatically, including the sysprep actions (calling it, capturing the image, etc) but I'm trying to get more hands-on with it as I was not privy to much of the previous image development cycle.

    I appreciate all your help very much! Thank you!

    I'm running the process again.
     
    lordkaladar, Nov 16, 2015
    #12
  13. CPI:offlineImage cpi:source question

    It's still not working 100%. Copy profile does appear to propagate settings, but I get a strange "DefaultUser0' account.
    When I use an unattend that has an 'add user' section, that account also does not get created, just "DefaultUser0".

    Kari, In your installs and image sets, which editions of Windows 10 have you used? My version in this case is the 'release' version of Enterprise. That being said, I'm not sure why that would have any (or much) effect on how Setup would handle the answer file.
     
    lordkaladar, Nov 17, 2015
    #13
  14. [/quote] I also have a sysprep.exe fatal error when using a different .xml file which I had no problems with years ago, during an audit mode Win7 install that had previously succeeded in relocating user files/folders to a distinctly separate physical hard drive. Perhaps both of errors are similar in that the weblink "http://schemas.microsoft.com/WMIConfig/2002/State" when opened in a browser results in the following single string: "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
     
    namitutonka, Apr 4, 2018
    #14
Thema:

CPI:offlineImage cpi:source question

Loading...
  1. CPI:offlineImage cpi:source question - Similar Threads - CPI offlineImage cpi

  2. BSOD source?

    in Windows 10 Gaming
    BSOD source?: Hey, yesterday evening while playing BF 2042 i had my very first BSOD with my new computer Win11 // Ryzen 7 7800X3D // 4080 Super. to check what was the cause i just installed BlueScreenView to look for the minidump file.Unlike other examples that i saw online, you can't see...
  3. BSOD source?

    in Windows 10 Software and Apps
    BSOD source?: Hey, yesterday evening while playing BF 2042 i had my very first BSOD with my new computer Win11 // Ryzen 7 7800X3D // 4080 Super. to check what was the cause i just installed BlueScreenView to look for the minidump file.Unlike other examples that i saw online, you can't see...
  4. Error: "The installation source for this product is not available. Verify that the source...

    in Windows 10 Software and Apps
    Error: "The installation source for this product is not available. Verify that the source...: I installed previous versions of SQL and deleted it to install SQL 2022, but when I run the setup, it shows up: Error: "The installation source for this product is not available. Verify that the source exists and that you can access it." and now i don't know how to fix it....
  5. Trusted source

    in Windows 10 Software and Apps
    Trusted source: Hi guys... Help please...anyone knows trusted resources to get my windows 10 sofwares and apps from ? - - - Updated - - - Is one of those good MicroTech Programs - Free Full Activated Programs Get Into PC - Download Free Your Desired App 183757
  6. unknown sources

    in AntiVirus, Firewalls and System Security
    unknown sources: I need to download a program for my buisness, but I need to turn off the setting that blocks the unknown source. I know the source, and it's safe, but I can't find the setting to turn the block off, Please help, I need to do this, like yesterday. Thank you for any help, I'm...
  7. Source settings

    in Windows 10 Customization
    Source settings: I had windows 8 on my laptop and in my package I had option to upgrade it to windows 10 and I did it. It pased a few years and now I want to dellite all my files from my computor. I wnt on setting to turn computor back to source setting. Is it going to be back at windows 8...
  8. Sound Source

    in Windows 10 Drivers and Hardware
    Sound Source: Hello! I have an HP Envy TS 17 Notebook. I've recently started using a USB headset, and had to change the primary device for sound to get them to work. So now, of course, the computer speakers don't work unless I go to settings and change preferred device. What a pain to...
  9. cpi files

    in Windows 10 Network and Sharing
    cpi files: How do I open cpi video files? Thank you. https://answers.microsoft.com/en-us/windows/forum/all/cpi-files/dc58545d-bceb-4820-848d-f904de5fc9ee"
  10. Source of ICON's

    in Windows 10 Performance & Maintenance
    Source of ICON's: The upgrade went smoothly, for the most part. Now comes the tweeking !! I lost the IE Icons (I knew I would) and need to replace them. The Windows Icon file dates back to the dawn of time. Where can I download some new Icons to use for my shortcuts ? Thanks, rs...

Users found this page by searching for:

  1. cpi:offlineImage cpi:source=

    ,
  2. cpi offline image answer file

    ,
  3. cpi:offlineimage cpi:source

    ,
  4. <cpi:offlineImage cpi:source= catalog: .clg xmlns:cpi=urn:schemas-microsoft-com:cpi />,
  5. <cpi:offlineImage,
  6. unattend cpi source,
  7. <cpi:offlineImage xmlns:cpi=urn:schemas-microsoft-com:cpi cpi:source=/>,
  8. unattend cpi:offlineImage cpi:source,
  9. cpi:source=catalog:d:/sources/install_windows10,
  10. cpi:offlineImage xmlns:cpi=urn:schemas-microsoft-com:cpi cpi:source=catalog:d:/sources/install_windows 7 professional.clg,
  11. cpi in june2019,
  12. cpi:offlineImage,
  13. cpi source xml,
  14. <cpi:offlineImage cpi:source=wim:c:/winopk/install_win#Windows10 PROFESSIONAL xmlns:cpi=urn:schemas-microsoft-com:cpi />,
  15. cpi:offlineImage cpi:source=wim:f:/sources/install.wim#W10 Professional