The other day I mentioned that whenever I run ReAgentC
I get the following error –
1 2 3 4 |
C:\Windows\System32>reagentc /info REAGENTC.EXE: Operation failed: 3 REAGENTC.EXE: An error has occurred. |
I posted to the Microsoft Community forums hoping to get a solution. The suggested solutions didn’t seem to help but oddly ReAgentC is now working – not sure why.
One thing I learnt is that the error code 3 means a path is not found. My system didn’t have any corruptions (both sfc /scannow
and dism /Online /Cleanup-image /Scanhealth
gave it a clean chit) and I did a System Restore too to a point back in time when I know ReAgentC
was working well but that didn’t help either. Windows RE itself was working fine as I was able to boot into it.
In the end I shutdown the laptop and left it for a couple of days as I had other things to do. And when looked at it today ReAgentC
was surprisingly working!
I am not sure why it is now working. One theory is that a few updates were applied automatically as I was shutting down the laptop so maybe they fixed some corruption. Or maybe when I booted into Windows RE and booted back that fixed something? (I don’t remember whether I tried ReAgentC
after booting back from Windows RE. I think I did but I am not sure).
Here’s a little PowerShell to find all the updates installed in the last 3 days. Thought I’d post it because I am pleased I came up with it and also maybe it will help someone else.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
PS> Get-WindowsPackage -Online | ?{ $_.InstallTime -gt [datetime]::now.AddDays(-3) } | %{ Get-WindowsPackage -PackageName $_.PackageName -online } | ft Description,ReleaseType,InstallTime Description ReleaseType InstallTime ----------- ----------- ----------- Fix for KB2976536 Update 13/11/2014 21:38:07 Fix for KB2978126 SecurityUpdate 13/11/2014 21:38:07 Fix for KB2992611 SecurityUpdate 13/11/2014 21:38:07 Fix for KB2993958 SecurityUpdate 13/11/2014 21:38:07 Fix for KB3002885 SecurityUpdate 13/11/2014 21:38:08 Fix for KB3003057 SecurityUpdate 13/11/2014 21:38:08 Fix for KB3003667 Update 13/11/2014 21:38:08 Fix for KB3003743 SecurityUpdate 13/11/2014 21:38:08 Fix for KB3004150 Update 13/11/2014 21:38:08 Fix for KB3005607 SecurityUpdate 13/11/2014 21:38:08 Fix for KB3006178 Update 13/11/2014 21:38:08 Fix for KB3006226 SecurityUpdate 13/11/2014 21:38:08 Fix for KB3008188 Update 13/11/2014 21:38:08 Fix for KB3008627 Update 13/11/2014 21:38:09 Fix for KB3010788 SecurityUpdate 13/11/2014 21:38:09 |
This will only work in Windows 8 and above (I haven’t tried but I think installing the Windows Management Framework 4.0 on Windows 7 SP1 and/ or Windows Server 2008 R2 SP1 will get it working on those OSes too).
Update: And it stopped working again the next day! The laptop was on overnight. The next day I rebooted as it had some pending updates. After the reboot we are back to square one. Of course I removed those two updates and rebooted to see if that helps. It doesn’t.
1 2 3 4 5 6 7 8 9 10 11 |
PS> Get-WindowsPackage -Online | ?{ $_.InstallTime -gt [datetime]::now.AddDays(-3) } | %{ Get-WindowsPackage -PackageName $_.PackageName -online } | ft Description,ReleaseType,InstallTime Description ReleaseType InstallTime ----------- ----------- ----------- Fix for KB2995388 Update 17/11/2014 05:34:19 Fix for KB2996799 Hotfix 17/11/2014 05:34:19 PS> Get-WindowsPackage -Online | ?{ $_.InstallTime -gt [datetime]::now.AddDays(-3) } | Remove-WindowsPackage -Online Do you want to restart the computer to complete this operation now? [Y] Yes [N] No [?] Help (default is "Y"): |
Fun! :)