MSEndpointMgr / ConfigMgr

Microsoft Endpoint Configuration Manager scripts and tools
629 stars 282 forks source link

unhandled exit code: -2147221246 #256

Closed m0nkiwitacaus closed 3 years ago

m0nkiwitacaus commented 3 years ago

First: Thank you for all the work you've done. This has saved us TONS of time with Bare metal imaging.

Hope this is a quick answer and maybe I'm overlooking something. Would you expect either the "OSUpgrade" or the "PreCache" options to work for a machine that's talking to our CMG?

I am running the Invoke-CMApplyDriverPackage.ps1 w/ the Bypass policy, and the Parameter is marked as the following, but I've tried both OSUpgrade and PreCache: -URI "http://FQDN.company.com/ConfigMgrWebService/ConfigMgr.asmx" -SecretKey "" -Filter "Drivers" -DeploymentType "OSUpgrade"

Our clients are able to receive policies from our MP to talk to the CMG either when outside the network or on VPN. The Web Service is installed on our MP, and all driver packages have been distributed to the CMG. I've tried re-distributing one of the drivers I'm testing from home, but keep coming across this error in the ApplyDriverPackage.log (attached).

Though I'm able to make a connection to the webservice, and it successfully queries all models before coming across the right identity. It then attempts to download it, and we're greeted with this:

Thank you for any pointers

NickolajA commented 3 years ago

CMG support is something we're aiming for, but unfortunately ConfigMgr doesn't support dynamic package download natively (we've been according to Microsoft themselves, using an unsupported method of downloading the content itself by simply calling the executable responsible). It's definitely on our roadmap, but we're kind of dependent on Microsoft at this point.

m0nkiwitacaus commented 3 years ago

Thank you @NickolajA for the response.

It looks like there might be even some bugs Microsoft is having when calling a "Download package content" when running a precache task if a device is on the internet (from some reddit pages, it sounds like a few have opened up cases).

I'm sure all of us are looking forward to more updates from your group in the future. Thanks again for your brilliant efforts, tools, and documentation.

NickolajA commented 3 years ago

Let me just add to this. There's some really good news coming very soon. Stay tuned.