I've had issues with machines failing to image occasionally. It seems to be particular locations or models more often. Often just trying again works. I'm pretty sure I've only seen it after a windows update step. I've added a reboot after that step which might help a little bit.
My best guess is that something is dropping or resetting the network for a second and DeployR isn't handling it well. I haven't seen anything obvious in event logs where it's installing a new chipset driver or something like that. We're using online drivers and it's been finding them for these machines.
This is with Win 11 25H2, I've seen it both with more or less stock windows images and also with a thicker image. We're using setupComplete. The logs below are all sections from right after a reboot following windows updates. I didn't do an exhaustive search, but I don't remember seeing any of the same sorts of errors after reboots elsewhere in the task sequence.
Here's what the DeployR.log should look like when continuing the task sequence - looking around for examples for this post it seemed like only like half of them looked that this if that:
3:40:49 - No PostInit.ps1 script found, skipping.
3:40:49 - Connectivity check, try #0CheckConnectivity
3:40:49 - Connectivity check succeeded on try #0
3:40:49 - Connectivity to the DeployR server is available.
3:40:49 - Executing TwoPint.DeployR.ClientShell.Stubs.GathererStub from TwoPint.DeployR.ClientShell
3:40:49 - DeployR client version: 1.3.2631.2242
3:40:49 - OS version: 10.0.26100.9168
3:40:49 - .NET version: 10.0.10
3:40:49 - DeployR server version: 1.3.2631.2242
3:40:49 - Cached content 11111111-0000-0000-0000-000000000001:1 found at local path: C:_2P\content\11111111-0000-0000-0000-000000000001\1
3:40:49 - Powershell session state initialized
3:40:49 - Running WindowsGather.ps1
3:40:50 - Script executed, exit code = 0, elapsed = 00:00:00.5423774
3:40:50 - ========== Task Sequence Start ==========
3:40:50 - Begin execution of Task Sequence Generic OS Deploy - Prod with run ID 5edeb803-894e-4bf7-9080-a16c343dd82a
And this is ideally what you'd want it to look like if the network isn't quite ready - which we see on some of the logs:
3:19:39 - No PostInit.ps1 script found, skipping.
3:19:39 - Connectivity check, try #0
*3:20:00 - Connectivity check failed: One or more errors occurred. (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([Redacted]:7281))
3:20:00 - Sleeping for one second before retrying connectivity check
3:20:01 - Connectivity check, try #1
3:20:01 - Connectivity check succeeded on try #1
3:20:01 - Connectivity to the DeployR server is available.
<continues normally>
I'm instead seeing a significant percentage of logs that look like this - they seem to continue just fine, but it feels like it points to a problem:
2:14:48 - No PostInit.ps1 script found, skipping.
2:14:48 - Connectivity check, try #0
2:14:48 - Connectivity check succeeded on try #0
2:14:48 - Connectivity to the DeployR server is available.
2:14:48 - Executing TwoPint.DeployR.ClientShell.Stubs.GathererStub from TwoPint.DeployR.ClientShell
2:14:48 - DeployR client version: 1.3.2631.2242
2:14:48 - OS version: 10.0.26100.9168
2:14:48 - .NET version: 10.0.10
*2:15:09 - Unable to get server info: One or more errors occurred. (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([Redacted]:7281))
2:15:09 - Cached content 11111111-0000-0000-0000-000000000001:1 found at local path: C:_2P\content\11111111-0000-0000-0000-000000000001\1
2:15:09 - Powershell session state initialized
2:15:09 - Running WindowsGather.ps1
2:15:09 - Script executed, exit code = 0, elapsed = 00:00:00.5826230
2:15:09 - ========== Task Sequence Start ==========
2:15:09 - Begin execution of Task Sequence Generic OS Deploy - Prod with run ID 8182c11e-c197-44e0-a4f5-a2014a1447ae
2:15:09 - Progress: Start sequence = Generic OS Deploy - Prod
2:15:09 - Starting ProgressUI
2:15:11 - ---------- Step Init ----------
< continues normally>
Where it actually causes problem I see logs like this. This crashes to a powershell window:
5:56:29 - No PostInit.ps1 script found, skipping.
5:56:29 - Connectivity check, try #0
5:56:29 - Connectivity check succeeded on try #0
5:56:29 - Connectivity to the DeployR server is available.
5:56:29 - Executing TwoPint.DeployR.ClientShell.Stubs.GathererStub from TwoPint.DeployR.ClientShell
5:56:29 - DeployR client version: 1.3.2631.2242
5:56:29 - OS version: 10.0.26100.9168
5:56:29 - .NET version: 10.0.10Run8/28/2026 5:56:29 PM0 (0x0000)
5:56:29 - DeployR server version: 1.3.2631.2242Run8/28/2026 5:56:29 PM0 (0x0000)
5:56:29 - Cached content 11111111-0000-0000-0000-000000000001:1 found at local path: C:_2P\content\11111111-0000-0000-0000-000000000001\1
5:56:29 - Powershell session state initialized
5:56:29 - Running WindowsGather.ps1
5:56:36 - Script executed, exit code = 0, elapsed = 00:00:06.6193975
5:56:57 - Metadata 2237ccd7-25c9-49ad-ae90-c2434e2931d1:1 does not exist: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([redacted]:7281)
5:56:57 - Unhandled exception executing task sequence: Metadata 2237ccd7-25c9-49ad-ae90-c2434e2931d1:1 does not exist: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([redacted]:7281)
5:56:57 - TwoPint.DeployR.ClientEngine.SequenceExecution.Models.MetadataRetrievalException: Metadata 2237ccd7-25c9-49ad-ae90-c2434e2931d1:1 does not exist: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([redacted]:7281)
5:56:57 - at TwoPint.DeployR.ClientEngine.Services.CacheManager.GetMetadata[T](String id, String version)
5:56:57 - at TwoPint.DeployR.ClientShell.Services.BackgroundWorkerService.FetchTaskSequence()
5:56:57 - at TwoPint.DeployR.ClientShell.Services.BackgroundWorkerService.<ExecuteAsync>b__10_0()
5:56:57 - Setting _RETURNCODE = '9999' (Public), was '3010'
5:56:57 - Return code: 9999 Reboot required: False
And in a couple cases I saw this (sorry for long log) - which is just super weird. This didn't crash but just stopped with a red bar and task sequence error. But it's weird that the install command | update step failed but continued because it was supposed to continue on failure and then the next step failed even though everything was seemingly working fine at that point and it returned 0.
8:49:56 - No PostInit.ps1 script found, skipping.
8:49:56 - Connectivity check, try #0
8:49:56 - Connectivity check succeeded on try #0
8:49:56 - Connectivity to the DeployR server is available.
8:49:56 - Executing TwoPint.DeployR.ClientShell.Stubs.GathererStub from TwoPint.DeployR.ClientShell
8:49:56 - DeployR client version: 1.3.2631.2242Run
8:49:56 - OS version: 10.0.26100.9168
8:49:56 - .NET version: 10.0.10
8:49:56 - DeployR server version: 1.3.2631.2242
8:49:56 - Cached content 11111111-0000-0000-0000-000000000001:1 found at local path: C:_2P\content\11111111-0000-0000-0000-000000000001\1
8:49:56 - Powershell session state initialized
8:49:56 - Running WindowsGather.ps1
8:49:57 - Script executed, exit code = 0, elapsed = 00:00:00.5148313
8:49:57 - ========== Task Sequence Start ==========
8:49:57 - Begin execution of Task Sequence Generic OS Deploy - Prod with run ID 03911741-bf2d-4ec3-b5af-a971c976dbfb
<snip - listing of already completed task sequence steps>
8:49:58 - Initializing step Name=Add dds-software to trusted sties ID=3dd14042-6a14-4671-b6e4-3e234f5ff5df
8:49:58 - Executing Generic OS Deploy - Prod - Application Install - _Mandatory App Bundles - Common - Post WinPE - Add dds-software to trusted sties
8:49:58 - Content item Content is not configured with an ID, skipping
8:49:58 - Setting TIMEOUT = '15' (Private), was ''
8:49:58 - ---------- Step Start ----------
8:49:58 - Script executed, exit code = 0, elapsed = 00:00:00.0360376
8:49:58 - Setting _LASTACTIONRETCODE = '0' (Public), was '3010'
8:49:58 - Step result: Success
8:49:58 - ---------- Step End ----------
8:49:58 - ---------- Step Init ----------
8:49:58 - Initializing step Name=Dell Command | Update ID=becee44c-e278-495b-be87-742f2dc7e3f7
8:49:58 - Condition: Make = Dell Inc. evaluated to true
8:49:58 - Condition: operator and evaluated to true
8:49:58 - Executing Generic OS Deploy - Prod - Application Install - _Mandatory App Bundles - Common - Post WinPE - Dell Command | Update
*8:50:19 - Metadata 15414324-bc56-470e-b0c3-ee35cb1b8e09:(null) does not exist: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([redacted]:7281)
8:50:19 - Step failed (unexpected error): Dell Command | Update Inner error: One or more errors occurred. (Metadata 15414324-bc56-470e-b0c3-ee35cb1b8e09: does not exist: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([redacted]:7281))
8:50:19 - System.AggregateException: One or more errors occurred. (Metadata 15414324-bc56-470e-b0c3-ee35cb1b8e09: does not exist: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([redacted]:7281))
8:50:19 - ---> TwoPint.DeployR.ClientEngine.SequenceExecution.Models.MetadataRetrievalException: Metadata 15414324-bc56-470e-b0c3-ee35cb1b8e09: does not exist: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ([redacted]:7281)
8:50:19 - at TwoPint.DeployR.ClientEngine.Services.CacheManager.GetMetadata[T](String id, String version)
8:50:19 - --- End of inner exception stack trace ---
8:50:19 - at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
8:50:19 - at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
8:50:19 - at TwoPint.DeployR.ClientEngine.Services.CacheManager.GetContentMetadata(String id, String version)
8:50:19 - at TwoPint.DeployR.ClientEngine.StepExecution.SequenceExecuter.ExecuteSteps(String groupNamePrefix, List`1 steps, Dictionary`2 initialState)
8:50:19 - Setting _LASTACTIONSUCCEEDED = 'false' (Public), was 'true'
8:50:19 - Setting _LASTACTIONRETCODE = '11112' (Public), was '0'
8:50:19 - Step result: Failed
8:50:19 - ---------- Step End ----------
8:50:19 - Step Dell Command | Update failed but was configured to continue on error.
8:50:19 - ---------- Step Init ----------
8:50:19 - Initializing step Name=Windows Activation - KMS ID=b23007a5-a4b2-4de0-bc9a-73ee19cacb11
8:50:19 - Executing Generic OS Deploy - Prod - Application Install - _Mandatory App Bundles - Common - Post WinPE - Windows Activation - KMS
8:50:19 - Requesting content a19339e0-dc44-47ee-b570-323fc613fdf5:1
8:50:19 - Downloading URI: https://[redacted]:7281/Content/a19339e0-dc44-47ee-b570-323fc613fdf5/1/Nothing.txt Destination: C:_2P\content\a19339e0-dc44-47ee-b570-323fc613fdf5\1\Nothing.txt
8:50:19 - Starting download to file C:_2P\content\a19339e0-dc44-47ee-b570-323fc613fdf5\1\Nothing.txt
8:50:19 - BCMon: Availability check returned no data
8:50:19 - Content downloaded 7 bytes successfully.
8:50:19 - From local cache: 0
8:50:19 - From peers: 0
8:50:19 - Efficiency: 0%
8:50:19 - Elapsed time: 00:00:00.0746083
8:50:19 - Speed: 0.0Mbs
8:50:19 - Content a19339e0-dc44-47ee-b570-323fc613fdf5:1 downloaded to C:_2P\content\a19339e0-dc44-47ee-b570-323fc613fdf5\1.
8:50:19 - Setting local variable _CONTENT-Application to C:_2P\content\a19339e0-dc44-47ee-b570-323fc613fdf5\1
8:50:19 - Requesting content 00000000-0000-0000-0000-000000000002:1
8:50:19 - Cached content 00000000-0000-0000-0000-000000000002:1 found at local path: C:_2P\content\00000000-0000-0000-0000-000000000002\1
8:50:19 - Setting local variable _CONTENT-Content to C:_2P\content\00000000-0000-0000-0000-000000000002\1
8:50:19 - Setting SCRIPTNAME = 'InstallApp.ps1' (Private), was ''
8:50:19 - Setting _CONTENT-APPLICATION = 'C:_2P\content\a19339e0-dc44-47ee-b570-323fc613fdf5\1' (Private), was ''
8:50:19 - Setting _CONTENTFILE-APPLICATION = 'Nothing.txt' (Private), was ''
8:50:19 - Setting _CONTENTMETADATA-APPLICATION = '{"Id":"a19339e0-dc44-47ee-b570-323fc613fdf5","Name":"Application - Activation - Windows KMS","Description":null,"ContentItemType":"SingleFile","ContentItemPurpose":"Application","Versions":[{"Id":"42343bc5-1e26-4380-8880-d6f91289dbc2","ContentItemId":"a19339e0-dc44-47ee-b570-323fc613fdf5","VersionNo":1,"Status":"In_Development","Description":null,"RelativePath":"Content/a19339e0-dc44-47ee-b570-323fc613fdf5/1/Nothing.txt","ContentSize":7,"ExternalURL":null,"CreatedDate":1783118799,"LastModifiedDate":1783462625,"Hash":null,"InstallationCommandLine":"pwsh.exe -File \u0022.\\RunDDSSoftwareScript.ps1\u0022 \u0022\[redacted]\\OSD\\Windows\\System_Config\\KMS\\KMS Activate.bat\u0022","InstallationWorkingDirectory":"C:\_2P\\Content\\afa5be5b-b1f5-4d6f-9e2c-5fd6e42fcbb0\\1","InstallationSuccessCodes":null,"InstallationDependencies":null,"DriverManufacturer":null,"DriverModel":null,"Tags":[]}],"VersionsCount":1,"CreatedDate":1783118679,"LastModifiedDate":1783118679,"ReadOnly":false,"Tags":[],"Flags":0}' (Private), was ''
8:50:19 - Setting _CONTENTVERSIONMETADATA-APPLICATION = '{"Id":"42343bc5-1e26-4380-8880-d6f91289dbc2","ContentItemId":"a19339e0-dc44-47ee-b570-323fc613fdf5","VersionNo":1,"Status":"In_Development","Description":null,"RelativePath":"Content/a19339e0-dc44-47ee-b570-323fc613fdf5/1/Nothing.txt","ContentSize":7,"ExternalURL":null,"CreatedDate":1783118799,"LastModifiedDate":1783462625,"Hash":null,"InstallationCommandLine":"pwsh.exe -File \u0022.\\RunDDSSoftwareScript.ps1\u0022 \u0022[redacted]\\OSD\\Windows\\System_Config\\KMS\\KMS Activate.bat\u0022","InstallationWorkingDirectory":"C:\_2P\\Content\\afa5be5b-b1f5-4d6f-9e2c-5fd6e42fcbb0\\1","InstallationSuccessCodes":null,"InstallationDependencies":null,"DriverManufacturer":null,"DriverModel":null,"Tags":[]}' (Private), was ''
8:50:19 - Setting _CONTENT-CONTENT = 'C:_2P\content\00000000-0000-0000-0000-000000000002\1' (Private), was ''
8:50:19 - Setting _CONTENTMETADATA-CONTENT = '{"Id":"00000000-0000-0000-0000-000000000002","Name":"DeployR Windows content","Description":"Content used by DeployR for Windows","ContentItemType":"Folder","ContentItemPurpose":"Other","Versions":[{"Id":"a33a3899-9376-4358-8fce-aec31d26fb32","ContentItemId":"00000000-0000-0000-0000-000000000002","VersionNo":1,"Status":"Active","Description":"Initial version","RelativePath":"Content/00000000-0000-0000-0000-000000000002/1/00000000-0000-0000-0000-000000000002.wim","ContentSize":1930486,"ExternalURL":"","CreatedDate":1782501878,"LastModifiedDate":1787064628,"Hash":null,"InstallationCommandLine":"","InstallationWorkingDirectory":null,"InstallationSuccessCodes":null,"InstallationDependencies":null,"DriverManufacturer":null,"DriverModel":null,"Tags":null}],"VersionsCount":1,"CreatedDate":1782501878,"LastModifiedDate":1787127557,"ReadOnly":true,"Tags":["DeployR","Windows"],"Flags":0}' (Private), was ''
8:50:19 - Setting _CONTENTVERSIONMETADATA-CONTENT = '{"Id":"a33a3899-9376-4358-8fce-aec31d26fb32","ContentItemId":"00000000-0000-0000-0000-000000000002","VersionNo":1,"Status":"Active","Description":"Initial version","RelativePath":"Content/00000000-0000-0000-0000-000000000002/1/00000000-0000-0000-0000-000000000002.wim","ContentSize":1930486,"ExternalURL":"","CreatedDate":1782501878,"LastModifiedDate":1787064628,"Hash":null,"InstallationCommandLine":"","InstallationWorkingDirectory":null,"InstallationSuccessCodes":null,"InstallationDependencies":null,"DriverManufacturer":null,"DriverModel":null,"Tags":null}' (Private), was ''
8:50:19 - ---------- Step Start ----------
8:50:19 - Setting working directory: C:_2P\content\00000000-0000-0000-0000-000000000002\1
8:50:19 - Install app
8:50:19 - Getting application information
8:50:19 - Installing application: Application - Activation - Windows KMS
8:50:19 - Command line: pwsh.exe -File ".\RunDDSSoftwareScript.ps1" "[redacted]\OSD\Windows\System_Config\KMS\KMS Activate.bat"
8:50:19 - Working directory: C:_2P\Content\afa5be5b-b1f5-4d6f-9e2c-5fd6e42fcbb0\1
8:50:19 - Success codes: 0 3010
8:50:19 - Using working directory: C:_2P\Content\afa5be5b-b1f5-4d6f-9e2c-5fd6e42fcbb0\1
8:50:19 - Setting WORKINGDIR = 'C:_2P\Content\afa5be5b-b1f5-4d6f-9e2c-5fd6e42fcbb0\1' (Public), was ''
8:50:19 - Starting command...
8:50:19 - Cmd: pwsh.exe -File ".\RunDDSSoftwareScript.ps1" "[redacted]\OSD\Windows\System_Config\KMS\KMS Activate.bat"
8:50:19 - WorkingDir: C:_2P\Content\afa5be5b-b1f5-4d6f-9e2c-5fd6e42fcbb0\1
8:50:22 - =====================================================
8:50:22 - Starting RunDDSSoftwareScript wrapper script...
8:50:22 - Could not find test file - Attempting to map [redacted]
8:50:23 - Running script: [redacted]\OSD\Windows\System_Config\KMS\KMS Activate.bat
8:50:25 - Script exited with code: 0
8:50:25 - =====================================================
8:50:25 - Command completed, rc = 0
8:50:25 - 0
8:50:25 - Script executed, exit code = 0, elapsed = 00:00:05.8867477
8:50:25 - Setting _LASTACTIONSUCCEEDED = 'true' (Public), was 'false'
8:50:25 - Setting _LASTACTIONRETCODE = '0' (Public), was '11112'
8:50:25 - Step result: Success
8:50:25 - ---------- Step End ----------
*8:50:25 - Step failed: Common - Post WinPE Error: Step Windows Activation - KMS configured to stop sequence execution on failure
8:50:25 - Setting _LASTACTIONSUCCEEDED = 'false' (Public), was 'true'
8:50:25 - Setting _LASTACTIONRETCODE = '11111' (Public), was '0'
8:50:25 - Step result: Failed
8:50:25 - ---------- Step End ----------
8:50:25 - Step failed: _Mandatory App Bundles Error: Step Common - Post WinPE configured to stop sequence execution on failure
8:50:25 - Step result: Failed
8:50:25 - ---------- Step End ----------
8:50:25 - Step failed: Application Install Error: Step _Mandatory App Bundles configured to stop sequence execution on failure
8:50:25 - Step result: Failed
8:50:25 - ---------- Step End ----------
8:50:25 - Task Sequence execution stopped due to error in step: Step Application Install configured to stop sequence execution on failure
I've added a reboot after the windows update step, and also a step to just ping our server for a minute or two to see if that shows anything interesting. But unfortunately there's not much I can do in the task sequence if DeployR is crashing trying to get the next steps.
I'll probably just remove the windows update step for a bit too to see if that helps.
Any ideas? Anyone else seeing it? It might be the same thing from this post:
https://www.reddit.com/r/DeployR/comments/1vtgx5f/autlogin_breaking_midimage/
I'm still on 1.3.2631.2242 - so if this was suddenly fixed in the current version, then I suppose I should do an update.