Skip to content

Commit

Permalink
Merge pull request #101 from h4xhor/AUSTA-317
Browse files Browse the repository at this point in the history
AUSTA-317: Fix WinPE Windows Worker Kickstarts "net use" Prompts for Username
  • Loading branch information
jarrodchesney authored Nov 23, 2023
2 parents b5e6382 + 60e814f commit da6479a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2042,9 +2042,9 @@ <h4 id="mountuefibootwimonwindowsworker">

$WinPE_amd64=&quot;WinPE_amd64&quot;

Dism /Mount-Image /ImageFile:&quot;./${WinPE_amd64}/sources/boot.wim&quot; `
Dism /Mount-Image /ImageFile:&quot;.\${WinPE_amd64}\media\sources\boot.wim&quot; `
/Index:1 `
/MountDir:&quot;./WinPE_BootImageDir&quot;
/MountDir:&quot;.\WinPE_BootImageDir&quot;

if ($LASTEXITCODE -ne 0) {
Write-Error &#x27;Failed to mount BOOT.WIM&#x27;
Expand Down
2 changes: 1 addition & 1 deletion files/winpestartnetcmd/contents/startnet.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ REM Use the net use command's output as a means to test whether the Samba
REM server is up.

:mountsamba
net use Z: \\%sambaIPaddress%\share | find "successfully" > nul
net use Z: \\%sambaIPaddress%\share /user:Everyone "" | find "successfully" > nul
if errorlevel 1 (
echo mount failed, waiting for retry...
ping localhost -n 2 >NUL
Expand Down
4 changes: 2 additions & 2 deletions steps/mountuefibootwimonwindowsworker/script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ if (${{kickstartedBootLoaderIsUefi}}) {

$WinPE_amd64="WinPE_amd64"

Dism /Mount-Image /ImageFile:"./${WinPE_amd64}/sources/boot.wim" `
Dism /Mount-Image /ImageFile:".\${WinPE_amd64}\media\sources\boot.wim" `
/Index:1 `
/MountDir:"./WinPE_BootImageDir"
/MountDir:".\WinPE_BootImageDir"

if ($LASTEXITCODE -ne 0) {
Write-Error 'Failed to mount BOOT.WIM'
Expand Down

0 comments on commit da6479a

Please sign in to comment.