Windows upgrade assistant failure when pushing Win11 upgrade ISO

Support forums for the Habitat Automate plugin
Post Reply
sdelaneyRSI
Posts: 1
Joined: Fri Jan 28, 2022 9:09 pm
2

Windows upgrade assistant failure when pushing Win11 upgrade ISO

Post by sdelaneyRSI »

Hi All,
Im trying to use the windows update assistant in habitat, its set up using google drive and I've downloaded the Win11 ISO to google drive, it allows me to assign the policy and then when I try to update now it starts and then fails after it mounts the ISO with the following: Script: S6242 - Starting at Server Time: Wednesday, February 2, 2022 1:57:04 PM
Script step logging has been disabled. Please set @ScriptEngineEnableLogger@ = True in your script to enable function logging."
The log just before this one is:
Dismount Drive Returned -> [ -------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------

Started : Wednesday, February 2, 2022 1:57:57 PM
Source - C:\Windows\system32\Mount-DiskImage\
Dest - C:\Windows\system32\:\

Files : Missing
an
argument
for
parameter
'ImagePath'.
Specify
a
parameter
of
type
'System.String[]'
and
try

Options : /DCOPY:DA /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

ERROR : Invalid Parameter #17 : ":\"

Simple Usage :: ROBOCOPY source destination /MIR

source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.

For more usage information run ROBOCOPY /?


**** /MIR can DELETE files as well as copy them ! ]

I can successfully push windows feature updates such as 21H2 without an issue, just not the Win11 upgrade.

Any help would be much appreciated, thanks!

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Windows upgrade assistant failure when pushing Win11 upgrade ISO

Post by Cubert »

Hmmm..

Well the first thing I see is the following does not look right.
Started : Wednesday, February 2, 2022 1:57:57 PM
Source - C:\Windows\system32\Mount-DiskImage\
Dest - C:\Windows\system32\:\

Files : Missing
It should be pointing to c:\windows\ltsvc\habitat\ and it seems to be pointing to c:\windows\system32

This maybe a default fall back is the mounts to the ISO failed.

Below is where in the script your at when the script goes south. The first things to check are does the ISO exist on the local agent now? Did it successfully download? If it is there is it complete? same file size as original? and if so can you manually mount the ISO on that agent?

These are all the things that have to happen for robo copy to work.


Capture.PNG
Capture.PNG (28.99 KiB) Viewed 871 times

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Windows upgrade assistant failure when pushing Win11 upgrade ISO

Post by Cubert »

Code: Select all

$mountResult = Mount-DiskImage -ImagePath @ISOPATH@ -Passthru
($mountResult | Get-Volume).DriveLetter

Replace @ISOPATH@ with you ISO file location and file name and execute in powershell to see it mount ISO and pass back a drive letter.

This is where I believe your going south. It is most likely failing to find file so mount ISO fails on line 264.

On line 267 it logs the drive letter, do you see that log in your script logs? should be just before the failed robo copy log you posted here.

Post Reply

Return to “Habitat”