Open AVPRiga opened 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" }
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...
I have the same error, except mine is during as OSUpgrade
We should learn to read the instructions. Set your MDMUsername and MDMPassword dynamic variables in the TS.
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?
I just tried to lunch Baremetal during TS: 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: