Status at a glance
| Error | Task Sequence Wizard: “Failed to run task sequence — An error occurred while retrieving policy for this computer (0x80004005)” (or the same code at a later step) |
| What it means | Very little by itself. 0x80004005 is the Windows HRESULT E_FAIL — a generic failure code that does not identify the underlying cause. The diagnosis is the first relevant failure in smsts.log, in the operation that was running when the sequence stopped. |
| First move | Capture smsts.log from the failing machine before changing anything. Find the final failure, then read the entries from the same operation just before it. |
| Most common branch | Policy retrieval in WinPE: missing network driver, DNS/DHCP/VLAN, unreachable management point, or an HTTPS/PKI certificate failure (0x80072f8f). |
| What NOT to do | Do not rebuild the task sequence, reinstall the client, or change registry settings just because this code appears. |
What 0x80004005 actually is
0x80004005 is E_FAIL, a generic HRESULT meaning an unspecified failure. In a Configuration Manager task sequence it is the code the wizard shows when the sequence stops — but it does not identify what failed. The same code can surface for a missing WinPE network driver, a management point that cannot be reached, content that never downloaded, an application installer that returned an error, or a Windows Setup failure. Each of those needs a different fix, so the code alone tells you only where to look next: the log entries from the operation that was running when the sequence stopped.
That is the whole method of this post. Everything below is organised by where the sequence stops and what the log says there — not by the final code.
Step 0: capture smsts.log before you touch anything
Do not rebuild the PXE role, delete device records, disable certificate validation, or inject drivers before you have the log. A change made before collecting evidence can remove the very clue that identifies the fault.
If command support is enabled in the boot image, press F8 in WinPE for a command prompt. Microsoft documents these standard locations as the sequence progresses:
| Deployment point | smsts.log location |
|---|---|
| WinPE, before Format and Partition Disk | X:\Windows\Temp\SMSTSLog\smsts.log |
| WinPE, after Format and Partition Disk | X:\SMSTSLog\smsts.log |
| New OS, before the ConfigMgr client is installed | C:\_SMSTaskSequence\Logs\smsts.log |
| Windows, after client installation | C:\Windows\CCM\Logs\smsts.log |
| Windows, after the task sequence completes | C:\Windows\CCM\Logs\smsts.log |
These are the standard locations; the actual location can vary during transitions and in customised deployments. Configuration Manager exposes the active path in the read-only _SMSTSLogPath task-sequence variable — check it whenever the task-sequence environment is available. Copy the log off the machine (USB, or a network share from the F8 prompt) and keep it — you will re-read it after each fix attempt.

Then find the final failure timestamp and examine the preceding entries from the same operation. Identify the earliest relevant failure in that sequence. Not every earlier warning or error is the cause — logs contain recoverable errors that the sequence survived. The first failure inside the operation that actually stopped is your branch selector. If the log identifies no cause, reproduce the failure once with the same media and capture a fresh log rather than making several unrelated changes at once.
Branch 1: it stops at “Retrieving policy for this computer”
If the wizard fails at policy retrieval, WinPE has started but the client cannot locate or communicate with a management point — or it can communicate, but no applicable deployment is available to it. Those are different problems; work through them in this order.
Network and WinPE drivers
- WinPE network driver. The machine has no usable NIC in WinPE. Confirm the boot image contains the driver for this exact hardware model — a driver that works in full Windows is not proof it is in WinPE. Microsoft’s PXE guidance is to import only the necessary boot-image drivers, particularly network and storage. Inject the WinPE driver into the boot image, update the distribution points, and retry.
- IP configuration. From the F8 prompt:
ipconfig. No address means DHCP, VLAN, or port configuration — a network problem, not a ConfigMgr problem. - Storage driver. The mirror-image failure: WinPE has networking but cannot see the local disk, and the sequence dies around partitioning. Confirm the storage driver for this model is in the boot image too.
DNS, routing, and management point connectivity
An IP address is not proof of connectivity. Check, in order:
- DNS resolution. Can the WinPE client resolve the management point’s hostname? A correct IP with a failed name lookup still fails policy retrieval.
- Route and port reachability. Does the client have a route to the MP, and can it reach the MP over the configured HTTP/HTTPS port? VLAN and firewall changes on the client-to-MP path are a common silent cause.
- MP response. Does the management point answer ConfigMgr requests? On the server side, check
MPControl.logand the MP’s IIS logs for corresponding errors. Only after those, look at general site-component health (SMS_EXECUTIVE, SMS_SITE_COMPONENT_MANAGER) — those services being up does not by itself prove a client can reach the MP.
HTTPS / PKI certificate failure — look for 0x80072f8f
- The documented media case (KB4551033). Microsoft documents one specific scenario in detail: PKI in use, management points configured for HTTPS, and bootable or prestaged media created at the central administration site while the root CA information is configured at the primary site. The wizard fails at policy retrieval after approximately 90 seconds with 0x80004005, and smsts.log shows
Sending with winhttp failed; 80072f8f. The documented cause is missing root CA information in the CAS-created media, and Microsoft’s documented fix is to create the media at a primary site instead of the CAS. An approximately 90-second failure at this stage can also occur in other communication failures — the 90 seconds alone do not diagnose this case; the log context does. - General PKI checks (separate from the KB case). Not every 0x80072f8f is the media case. Inspect the certificate trust chain the media carries, certificate validity, and the actual WinHTTP error context in the log. Task-sequence media in an HTTPS-only environment needs a valid certificate to communicate with the site at all.
- Clock skew. A client clock far from the server’s can cause certificate validity checks to fail. Treat time as a check, not a diagnosis — verify the machine’s time in WinPE, but do not assume every certificate failure is a clock failure.
Deployment targeting and device identity
Policy communication can succeed while the client still receives nothing to run:
- No applicable deployment. Confirm the task sequence is deployed to a collection this device is actually in, the deployment has not expired, and its purpose/schedule makes it available in WinPE. “No policy for this computer” and “no applicable deployment” look identical in the wizard.
- Stale or conflicting device identity. An old device record or a duplicate SMBIOS GUID shared by two machines produces the same failure. Verify the device record the PXE boot resolves to.
One exception: if smsts.log shows policy retrieval completed and the failure happens while downloading an image, package, or driver package, stop troubleshooting policy — the problem is downstream, in Branch 2. Boundary-group and DP assignment belong to that branch, not this one.
Branch 2: policy worked, but content never arrives
Symptoms: the sequence starts, then fails downloading an OS image, package, driver package, or application content — often with content-location or hash errors just before the final 0x80004005. Keep the four failure conditions separate, because each has a different fix:
- Content not distributed. The exact package version the sequence references was never distributed to a DP this client can use. Verify the referenced version, not just the package.
- Distribution failed. The content was sent but the DP copy is incomplete or the DP is out of disk space. Check the distribution status for that DP before retrying the sequence.
- Content location unavailable. The client cannot select a usable DP: the boundary group serving this client has no DP assignment for the content, or the selected DP is unreachable from this subnet. Check the boundary-group DP assignments and the content-location lines in the log.
- Hash mismatch. The content downloaded but failed validation. Validate the specific package on the affected DP first — Configuration Manager’s content validation compares the files on the DP against their expected hashes. Redistribute to repair a failed validation; do not blindly redistribute everything.
- Boot image out of date after a site upgrade. After upgrading Configuration Manager, verify that the boot image the task sequence references is updated and successfully distributed. Microsoft’s guidance: default boot images are updated at the site automatically, but the updated content is not automatically distributed to all DPs, and custom boot images need their own update. Confirm the referenced boot image, that it is enabled for PXE, and that its current content reached the PXE-enabled DP (use Update Distribution Points).
Branch 3: an application, script, or step fails mid-sequence
If the log shows a step failing with its own exit code and then the sequence reports 0x80004005, the final code is just reporting the step’s failure. Fix the step, not the code:
- Read the step’s own exit code and output. A 1603 from an MSI, a non-zero PowerShell exit, or a command that cannot find its file are all application problems.
- Check the installer’s own log (MSI log, application log) — the task-sequence log only records that it failed. This includes the “Setup Windows and ConfigMgr” step: a client installation failure stops the sequence after Windows is applied, and its evidence is in the client setup logs.
- Check detection methods and requirements: a step that runs on the wrong architecture or before its dependency is installed fails the same way every time.
- Failures can also occur at the restart transitions between WinPE and the full OS — if the sequence dies exactly at a restart, check that the boot image and the installed OS both hand off cleanly before suspecting the steps around it.
- Do not mark a failing step “continue on error” just to make the sequence go green. That hides the failure and ships a broken machine. Continue-on-error is a legitimate tool when it is part of a designed error-handling pattern (for example, branching on
_SMSTSLastActionSucceeded) — the difference is whether the failure is handled or merely hidden.
Branch 4: Windows Setup itself fails
If the failure is in the “Apply Operating System” or setup phase, look at setupact.log and setuperr.log alongside smsts.log — their locations depend on the setup phase, so follow the phase you are in. When a driver installation is suspected, add setupapi.dev.log. Common causes: a driver that breaks setup, an unattend answer-file error, a disk-partitioning step that ran in the wrong order, or an image that does not match the task sequence’s architecture. The fix belongs to setup, not to the sequence’s final code.
What not to do
- Do not rebuild the task sequence because this code appeared. The sequence is almost never the problem.
- Do not reinstall the Configuration Manager client on the target as a first step.
- Do not change registry settings or disable certificate validation to make the error go away. If a certificate check is failing, the certificate setup is wrong — silencing the check ships an untrustworthy deployment path.
- Do not make several unrelated changes between retries. One change, one retry, one fresh log — otherwise you never learn which fix worked.
The 15-minute triage checklist
- Record the exact wizard text and the step that failed.
- Record the deployment path: PXE, USB, or prestaged media — and which site created the media.
- Capture smsts.log from the phase-appropriate location (check
_SMSTSLogPath). - Find the final failure, then the earliest relevant failure in the same operation.
- Confirm the basics in order: IP address, DNS resolution of the MP, route and port reachability.
- Confirm the deployment is actually applicable to this device and collection.
- Match the failure to a branch above and fix only that branch.
- Retry once, capture a fresh log, and compare.
Why this post exists again
The original version of this post (August 2017, Configuration Manager 2012 SP1) was the most-read post on this site — because 0x80004005 never went away. What changed since 2012 is the surface around it: HTTPS/PKI media, boundary groups, current-branch upgrades that desynchronise boot images, and a faster release cadence. The diagnostic method did not change: don’t troubleshoot the error code — troubleshoot the operation that failed immediately before it.
References
Microsoft documentation
- The Task Sequence Wizard returns error 80004005 (KB4551033) — the PKI media / 0x80072f8f scenario.
- About log files in Configuration Manager — smsts.log locations by phase.
- Advanced troubleshooting for PXE boot issues — WinPE network and driver checks.
- About boundary groups — management point and distribution point location.
Community references (admin-reported troubleshooting experience, not Microsoft-confirmed product defects)
- MacMyths — Task Sequence error 0x80004005 after upgrade to 2403 — boot image / DP / content triage after upgrades.
- PCNMobile — SCCM 0x80004005 While Retrieving Policy — policy-retrieval fixes.
Site archive
1 thought on “Task Sequence Failed 0x80004005 in ConfigMgr: How to Troubleshoot”