MSEndpointMgr / ModernDriverManagement

Official repo of Modern Driver Management from MSEndpointMgr.com
https://www.msendpointmgr.com
MIT License
133 stars 80 forks source link

sccm 2211 MDM issues #231

Closed mnews-cainc closed 1 year ago

mnews-cainc commented 1 year ago

Hi, I'm stuck here, how to fix this ? [Driver Automation Tool 7.2.1] [Invoke-CMApplyDriverPackage.ps1 4.2.1]

PS C:_SMSTaskSequence\Packages\CM1000D1> .\Invoke-CMApplyDriverPackage.ps1 -debug -baremetal -endpoint 'sccm.XXXXX.local' -targetosname 'windows 11' -targetosversion '22h2'

DEBUG:

                using System;
                using System.Net;
                using System.Net.Security;
                using System.Security.Cryptography.X509Certificates;
                public class ServerCertificateValidationCallback
                {
                    public static void Ignore()
                    {
                        if(ServicePointManager.ServerCertificateValidationCallback ==null)
                        {
                            ServicePointManager.ServerCertificateValidationCallback +=
                                delegate
                                (
                                    Object obj,
                                    X509Certificate certificate,
                                    X509Chain chain,
                                    SslPolicyErrors errors
                                )
                                {
                                    return true;
                                };
                        }
                    }
                }

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): y
DEBUG: "Sort-Object" - "PackageName" cannot be found in "InputObject".

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): y
================= [OSDDownloadContent.exe] =================

Running module version 5.0.9096.1000 from location 'X:\sms\bin\x64\OSDDownloadContent.exe'
OSDDownloadDownloadPackages = CM1000DA
OSDDownloadDestinationLocationType = Custom
OSDDownloadContinueDownloadOnError = 0
Packages will be downloaded to custom download location: 'C:\_SMSTaskSequence\DriverPackage'
Getting package content: CM1000DA, version: 0
GetPackageContent:
Resolving content for SMS Package CM1000DA
Site Code CM1
MP http://SCCM.XXXXX.local
TSPkgVar _SMSTSCM1000DA
RunFromDPEnabled false
Resolving local content for CM1000DA:0
spCacheMgr.createInstance(CLSID_ContentCacheManager, CLSCTX_LOCAL_SERVER), HRESULT=80040154 (K:\dbs\sh\cmgm\1125_114522\cmd\m\src\Framework\TSCore\resolvesource.cpp,4646)
Failed to create instance of of ICacheManager. Is ccmexec running?, hr=0x80040154
   Setting URL = http://SCCM.XXXXX.local, Ports = 80,443, CRL = false
   Setting Server Certificates.
   Setting Authenticator.
   Setting Media Certificate.
Getting local network information.
DhcpGetOriginalSubnetMask entry point is supported.
Begin checking Alternate Network Configuration
spNamespace.Open(sNamespacePath), HRESULT=8004100e (K:\dbs\sh\cmgm\1125_114522\cmd\17\src\Framework\CcmUtilLib\CcmIPUtil.cpp,1388)
Finished checking Alternate Network Configuration
Adapter {46F48EE0-3700-499C-906C-4554F99F349C} is DHCP enabled. Checking quarantine status.
Content location request (BGR):
  Package : CM1000DA.0
  Client  : 86af1284-a20a-46c5-8268-dbeef5811d25
  Current BG     : true
  Neighbor BG    : true
  Fallback to site default BG: true
  Peers allowed: 0
  Internet       : false
  CloudDP Allowed: false
DHCP entry points already initialized.
Begin checking Alternate Network Configuration
spNamespace.Open(sNamespacePath), HRESULT=8004100e (K:\dbs\sh\cmgm\1125_114522\cmd\17\src\Framework\CcmUtilLib\CcmIPUtil.cpp,1388)
Finished checking Alternate Network Configuration
Adapter {46F48EE0-3700-499C-906C-4554F99F349C} is DHCP enabled. Checking quarantine status.
Sending RequestBGRContentLocations for CM1000DA
ContentLocationRequest: <ContentLocationRequest SchemaVersion="1.00" BGRVersion="1.00" ExcludeFileList=""><Package ID="CM1000DA" Version="*" DeploymentFlags="9223373136366928882"/><AssignedSite SiteCode="CM1"/><ClientLocationInfo AllowMulticast="1" Allow

Setting the authenticator.
CLibSMSMessageWinHttpTransport::Send: WinHttpOpenRequest - URL: SCCM.XXXXX.local:80  CCM_POST /ccm_system/request
Not in SSL.
Request was successful.
::DecompressBuffer(65536)
Decompression (zlib) succeeded: original size 816, uncompressed size 2678.
Location Reply:
<![CDATA[<ContentLocationReply SchemaVersion="1.00" BGRVersion="1"><BoundaryGroups BoundaryGroupListRetrieveTime="2023-03-24T15:31:37.697" IsOnVPN="0"><DOINCServers/><BoundaryGroup GroupID="16777218" GroupGUID="507e0fcb-d664-49cd-8390-5f8c3d5868c5" Group
MCS server:
Found location: http://SCCM-DP.XXXXX.local/SMS_DP_SMSPKG$/CM1000DA
Found location: https://SCCM-DP.XXXXX.local/CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA
Boundary group type =256, delay: 0
DPTokenAuthCapable=0, IsSuperPeer=0
IsCloudDP=0, PreferCloudDPOverOnPrem=0
Processing 1 locations.
Processing current boundary group location:
  PkgFlags  : 05000000
  GroupFlags: 00000000
  URLs      : 2
  SMB       :
  MCS       :
Adding URL location item 3 00000000 4 00000305 00000000 http://SCCM-DP.XXXXX.local/SMS_DP_SMSPKG$/CM1000DA
Adding URL location item 3 00000000 2 0000005b 00000000 https://SCCM-DP.XXXXX.local/CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA
No static content server.
Prioritized locations:
  https://SCCM-DP.XXXXX.local/CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA
  http://SCCM-DP.XXXXX.local/SMS_DP_SMSPKG$/CM1000DA
Got Content Location List . . .
Finding content location for SMS package CM1000DA successful
ResolveSource flags: 0x00000002
SMSTSPersistContent: . The content for package CM1000DA will be persisted
DownloadOnDemand flag is true. Attempting to download content locally for Package CM1000DA.
Locations: Multicast = 0, HTTP = 2, SMB = 0.
Package Flags: 0x00000000
Multicast is not enabled for the package.
Trying https://SCCM-DP.XXXXX.local/CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA.
GetDirectoryListing() entered
Initializing HTTP transport.
Setting URL = https://SCCM-DP.XXXXX.local/CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA.
   Address=https://SCCM-DP.XXXXX.local, Scheme=https, Object=/CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA, Port=443.
Using DP auth token for DAV resource request.
WinHttp credentials set.
CLibSMSMessageWinHttpTransport::Send: WinHttpOpenRequest - URL: SCCM-DP.XXXXX.local:443  PROPFIND /CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA
SSL, using auth token in request.
In SSL, but with no client cert.
In SSL, but with no media cert.
Request was successful.
DAV response string is:
<![CDATA[<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:"><D:response><D:href>http://SCCM-DP.XXXXX.local/CCMTOKENAUTH_SMS_DP_SMSPKG$/sccm?/CM1000DA/</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop><D:getcontenttype/><D
List of files to be downloaded
  File: http://SCCM-DP.XXXXX.local:443/CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA/sccm?/DriverPackage.wim
GetDirectoryListing() successfully completed
Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL'
Downloading file /CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA/sccm?/DriverPackage.wim range 0-1310924744
Downloaded file from http://SCCM-DP.XXXXX.local:443/CCMTOKENAUTH_SMS_DP_SMSPKG$/CM1000DA/sccm?/DriverPackage.wim to C:\_SMSTaskSequence\Packages\CM1000DA\DriverPackage.wim
Source content hash empty. Ignoring hash verification.
Content successfully downloaded at C:\_SMSTaskSequence\Packages\CM1000DA.
Downloading content for SMS Package CM1000DA successful
Resolved and downloaded package CM1000DA to C:\_SMSTaskSequence\Packages\CM1000DA
Copying package: CM1000DA to destination location 'C:\_SMSTaskSequence\DriverPackage\CM1000DA' from download location 'C:\_SMSTaskSequence\Packages\CM1000DA'
Download package CM1000DA to 'C:\_SMSTaskSequence\DriverPackage\' successful
Setting the custom destination variable 'OSDDriverPackage01' to 'C:\_SMSTaskSequence\DriverPackage\CM1000DA'
Adding OSDDriverPackage01 to the list of paths that needs to be remapped on reboot (based on drive configuration).
Download packages action completed