microsoft/SurfaceDeploymentAccelerator

WinRE failed to copy and update

rudyberkvens opened this issue · 0 comments

Lots of errors in the script with WinRE. Seems to complete fine otherwise.

Copying WinRE image to C:\SDA\Image\Pro\W10\10.0.19044\x64\Temp\tmp_winre.wim...
Move-Item : An object at the specified path C:\Users\ITPC~1 does not exist.
At C:\sda\CreateSurfaceWindowsImage.ps1:2843 char:9
+         Move-Item -Path "$ImageMountFolder\Windows\System32\Recovery\ ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Move-Item], PSArgumentException
    + FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.MoveItemCommand



Mounting C:\SDA\Image\Pro\W10\10.0.19044\x64\Temp\tmp_winre.wim to C:\Users\ITPC~1\AppData\Local\Temp\Mount\WinREImage...
Mount-WindowsImage : The parameter is incorrect.
At C:\sda\CreateSurfaceWindowsImage.ps1:2849 char:9
+         Mount-WindowsImage -ImagePath $TmpWinREImage -Index 1 -Path $ ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Mount-WindowsImage], PSArgumentException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.MountWindowsImageCommand



Adding Servicing Stack updates to C:\Users\ITPC~1\AppData\Local\Temp\Mount\WinREImage...
Add-WindowsPackage : An error occurred. No operation was performed.
Verify that DISM is installed properly in the image, and then try the operation again.
At C:\sda\CreateSurfaceWindowsImage.ps1:2068 char:5
+     Add-WindowsPackage -Path $ImageMountFolder -PackagePath $PackageP ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsPackage], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsPackageCommand



Saving C:\SDA\Image\Pro\W10\10.0.19044\x64\Temp\tmp_winre.wim...
DisMount-WindowsImage : The request is not supported.
At C:\sda\CreateSurfaceWindowsImage.ps1:2076 char:9
+         DisMount-WindowsImage -Path $ImageMountFolder -Save -CheckInt ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Dismount-WindowsImage], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.DismountWindowsImageCommand



Mounting C:\SDA\Image\Pro\W10\10.0.19044\x64\Temp\tmp_winre.wim in C:\Users\ITPC~1\AppData\Local\Temp\Mount\WinREImage...
Mount-WindowsImage : The parameter is incorrect.
At C:\sda\CreateSurfaceWindowsImage.ps1:2083 char:9
+         Mount-WindowsImage -ImagePath $TempImagePath -Index 1 -Path $ ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Mount-WindowsImage], PSArgumentException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.MountWindowsImageCommand



Adding Cumulative updates to C:\Users\ITPC~1\AppData\Local\Temp\Mount\WinREImage...
Add-WindowsPackage : An error occurred. No operation was performed.
Verify that DISM is installed properly in the image, and then try the operation again.
At C:\sda\CreateSurfaceWindowsImage.ps1:2068 char:5
+     Add-WindowsPackage -Path $ImageMountFolder -PackagePath $PackageP ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsPackage], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsPackageCommand



Adding Driver updates for SurfaceLaptop4Intel to C:\Users\ITPC~1\AppData\Local\Temp\Mount\WinREImage from C:\SDA\Image\Pro\W10\10.0.19044\x64\Temp\SurfaceLaptop4Intel...
Add-WindowsDriver : An error occurred. No operation was performed.
Verify that DISM is installed properly in the image, and then try the operation again.
At C:\sda\CreateSurfaceWindowsImage.ps1:2900 char:29
+ ...             Add-WindowsDriver -Path $WinREImageMountFolder -Driver $M ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsDriver], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsDriverCommand

Add-WindowsDriver : An error occurred. No operation was performed.
Verify that DISM is installed properly in the image, and then try the operation again.
At C:\sda\CreateSurfaceWindowsImage.ps1:2900 char:29
+ ...             Add-WindowsDriver -Path $WinREImageMountFolder -Driver $M ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsDriver], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsDriverCommand
....
...

Add-WindowsDriver : An error occurred. No operation was performed.
Verify that DISM is installed properly in the image, and then try the operation again.
At C:\sda\CreateSurfaceWindowsImage.ps1:2900 char:29
+ ...             Add-WindowsDriver -Path $WinREImageMountFolder -Driver $M ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-WindowsDriver], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsDriverCommand
                                                                                                                                                   Dismount-WindowsImage                                                                                                                                Running                                                                                                                                           [ooooooooooooooooooooooooooooo                                                                                                         ]                                                                                                                                                        Deployment Image Servicing and Management tool
Version: 10.0.19041.1


Error: 2

Unable to access the image.
Make sure that the image path and the Windows directory for the image exist and you have Read permissions on the folder.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log


Saving C:\SDA\Image\Pro\W10\10.0.19044\x64\Temp\tmp_winre.wim...
DisMount-WindowsImage : The request is not supported.
At C:\sda\CreateSurfaceWindowsImage.ps1:2918 char:9
+         DisMount-WindowsImage -Path $WinREImageMountFolder -Save -Che ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Dismount-WindowsImage], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.DismountWindowsImageCommand





 *********************************************
 *                                           *
 *            Saving winre.wim               *
 *                                           *
 *********************************************


Exporting C:\SDA\Image\Pro\W10\10.0.19044\x64\Temp\tmp_winre.wim to C:\Users\ITPC~1\AppData\Local\Temp\Mount\OSImage\Windows\System32\Recovery\winre.wim...
Export-WindowsImage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\sda\CreateSurfaceWindowsImage.ps1:2938 char:9
+         Export-WindowsImage -SourceImagePath $TmpWinREImage -SourceIn ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Export-WindowsImage], FileNotFoundException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.ExportWindowsImageCommand