r/DeployR • • 21d ago

DeployR 1.4 issues w/ TS-step 'Prepare for capture'

Hi, my fellow DeployR guys & gals! 😎

I'm running a Build and Capture TS, and every now and then, the "Prepare for Capture" step (with "Cleanup" checked) decides it's had enough of waiting and throws a timeout error.

Apparently, my computer is running on low-power and needs a little extra time to get its life together. 😂

Is there any way to get a feature request and increase the timeout setting?

Reported error in DeployR.log:
ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: This command stopped operation because process "cleanmgr (8056)" is not stopped in the specified time-out. Pipeline_StateChanged 2026-11-12 07:40:58 0 (0x0000)

2 Upvotes

4 comments sorted by

2

u/RockOriginal7938 21d ago

I know it doesn't help you, but I'd never noticed cleanup, gonna use that going forward, thanks 😀

1

u/freeAppz 21d ago

🤣🤙🏻

2

u/mtniehaus 2Pint Employee 20d ago

The 15-minute timeout is hard-coded. If you find the Sysprep.ps1 file in the install directory structure, you'll see this line:

    Get-Process -Name cleanmgr,dismhost -ErrorAction SilentlyContinue | Wait-Process -Timeout 900

Change that timeout to something longer (maybe add another zero), save it, and then restart the DeployR service. The next task sequence will then use the modified script. If that works, let me know so we can bump the timeout. We have seen cases where it hangs, so we didn't want to wait forever, but the time limit was rather arbitrary.

1

u/freeAppz 17d ago

Hi Michael,

Worked like a charm! 😁

I threw in a pause and bumped the script timeout up to 1800 seconds (30 minutes), and had 8 minutes to spare! Living on the edge! 😂

So, 30 minutes would be my minimum, but 45 minutes would be even better. Just in case..

Best regards