MSEndpointMgr / ConfigMgr

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

- Failed to retrieve available package items from AdminService endpoint. Error message: The remote server returned an error: (401) Unauthorized. #306

Open vmniebles opened 3 years ago

vmniebles commented 3 years ago

<![LOG[[ApplyDriverPackage]: Apply Driver Package process initiated]LOG]!> <![LOG[ - Apply driver package deployment type: BareMetal]LOG]!> <![LOG[ - Apply driver package operational mode: Production]LOG]!> <![LOG[[PrerequisiteChecker]: Starting environment prerequisite checker]LOG]!> <![LOG[ - Supported computer platform detected, script execution allowed to continue]LOG]!> <![LOG[ - Computer manufacturer determined as: Dell]LOG]!> <![LOG[ - Computer model determined as: Latitude E7240]LOG]!> <![LOG[ - Computer SystemSKU determined as: 05CA]LOG]!> <![LOG[ - Computer Fallback SystemSKU determined as: 05CA]LOG]!> <![LOG[ - Computer model detection was successful]LOG]!> <![LOG[ - Computer SystemSKU detection was successful]LOG]!> <![LOG[ - Computer details successfully verified]LOG]!> <![LOG[ - Determined primary computer detection method: SystemSKU]LOG]!> <![LOG[[PrerequisiteChecker]: Completed environment prerequisite checker]LOG]!> <![LOG[[AdminService]: Starting AdminService endpoint phase]LOG]!> <![LOG[ - Detected that script was running within a task sequence in WinPE phase, automatically configuring AdminService endpoint type]LOG]!> <![LOG[ - Determined AdminService endpoint type as: Internal]LOG]!> <![LOG[ - Successfully read service account user name from TS environment variable 'MDMUserName': scSC_dSrie@a.c.*e]LOG]!> <![LOG[ - Successfully read service account password from TS environment variable 'MDMPassword': ****]LOG]!> <![LOG[ - Setting 'AdminServiceURL' variable to: https://sccm-server.abc.com/AdminService/wmi]LOG]!> <![LOG[[AdminService]: Completed AdminService endpoint phase]LOG]!> <![LOG[[DriverPackage]: Starting driver package retrieval using method: AdminService]LOG]!> <![LOG[ - Querying AdminService for driver package instances]LOG]!> <![LOG[ - Calling AdminService endpoint with URI: https://sccm-server.abc.com/AdminService/wmi/SMS_Package?$filter=contains(Name,'Drivers')]LOG]!> <![LOG[ - Failed to retrieve available package items from AdminService endpoint. Error message: The remote server returned an error: (401) Unauthorized.]LOG]!> <![LOG[ - An error occurred while calling AdminService for a list of available driver packages. Error message: Cannot validate argument on parameter 'Message'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.]LOG]!> <![LOG[[ApplyDriverPackage]: Apply Driver Package process failed, please refer to previous error or warning messages]LOG]!> #