MSEndpointMgr / ConfigMgr

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

Unable to precache drivers over VPN #340

Open mgorski10 opened 2 years ago

mgorski10 commented 2 years ago

Hello,

I am working on a Task Sequence (TS) to do a feature update for my clients from Win10 1909 to Win19 21H2 and I am trying to include driver updates. My intention is to precache the updates on all machines and then apply them later on when I send the feature update down. To this end, I am trying to configure the TS to precache from a DP if the client is on VPN and from my CMG when not on VPN. Surprisingly I cannot get the drivers to cache when on VPN as the CMApplyDriverPackage script cannot find the Adminservice URL and shows "Detected as an Intranet client but unable to determine Internal AdminService endpoint, bailing out" in ApplyDriverPackage.log. The script works during OSD in a BareMetal scenario. I am able to contact the AdminService URL (https://SCCMServer.domain.com/adminservice/v1.0/$metadata) when on VPN. I am using the following parameters for the task that executes the script

-PreCache -Endpoint "SCCMServer.domain.com" -TargetOSVersion "21H2" -PreCachePath "C:\Win10DrvCache"

Do you or anyone have any thoughts about how to get this to work? In case it matters, I am running MEM 2010.

Thanks.