MSEndpointMgr / ConfigMgr

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

AdminService endpoint type as: Internal, please refer to previous error or warning messages #320

Open AVPRiga opened 3 years ago

AVPRiga commented 3 years ago

I just tried to lunch Baremetal during TS: image Very interesting stuff, because when I'm trying to launch (by hands) Invoke-CMApplyDriverpackage (after TS in same machine) all is working fine. .\Invoke-CMApplyDriverPackage.ps1 -DebugMode -Endpoint "CM01.domain.com" -UserName "svc@domain.com" -Password "svc-password" -TargetOSVersion "20H2"

Error during TS:

TazwellJ commented 3 years ago

Same issue here except mine is for a -DriverUpdate task

UPDATE: After going through the script and comparing to the logs I figured out that the DriverUpdate was failing at the Get-OSBuild function. I believe powershell was attempting to read the unquoted value of 20H2 as a number. I simply added double-quotes around the values for $OSVersion in the switch statement and it worked like a champ afterward.

switch (([System.Version]$InputObject).Build) { "19042" { $OSVersion = "20H2" }

AVPRiga commented 3 years ago

Same issue here except mine is for a -DriverUpdate task

UPDATE: After going through the script and comparing to the logs I figured out that the DriverUpdate was failing at the Get-OSBuild function. I believe powershell was attempting to read the unquoted value of 20H2 as a number. I simply added double-quotes around the values for $OSVersion in the switch statement and it worked like a champ afterward.

switch (([System.Version]$InputObject).Build) { "19042" { $OSVersion = "20H2" }

Unfortunately it don't work for me. I have error during BIOS Invoke-LenovoBIOSupdate too...

tmeltdowner commented 2 years ago

I have the same error, except mine is during as OSUpgrade image

tmeltdowner commented 2 years ago

We should learn to read the instructions. Set your MDMUsername and MDMPassword dynamic variables in the TS.

ThomasFaherty commented 2 years ago

I am having this same issue. Adjusting the "20H2" in the script didn't work. I also announced the MDM user name and password variables, even tried testing with a global admin account for kicks but no luck. Anyone find any other solutions to this?