SysManSquad / sysmansquadblog

1 stars 3 forks source link

Updated Modern Driver/BIOS Management with CMG Support-SysManSquad | Systems Management Squad #7

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Updated Modern Driver/BIOS Management with CMG Support-SysManSquad | Systems Management Squad

A community blog and subsidiary of WinAdmins.io

https://sysmansquad.com/2021/04/27/updated-modern-driver-bios-management-with-cmg-support/

jotomr commented 1 year ago

Hi, after upgrading SCCM to 2203 i get an error running the Invoke-GetPackageIDFromAdminService. The error is: the remote server returned an error (400) Bad request. Error in line 473. The line 473 contains the following:

$Packages = Invoke-RestMethod -Method Get -Uri $WMIPackageURL -Body $Body @InvokeRestMethodCredential | Select-Object -ExpandProperty value

I can see that people are asking on reddit. Do you know what the issues could be?

bohnanza22 commented 1 year ago

I am having the same issue after upgrading to 2211

CharlesNRU commented 1 year ago

Hello,

I updated the script in my repository to work with ConfigMgr latest version. I did not update the MDM-TS.zip file though, so you will have to edit the task sequence step and update the script within the task sequence itself. Here is a link to the updated script: https://github.com/CharlesNRU/mdm-adminservice/blob/master/Invoke-GetPackageIDFromAdminService.ps1

FlannelNZ commented 2 months ago

Hi Charles, I have used the MDM solution for a while but wanted to migrate to using your version in conjunction with our CMG. As far as I can tell there is no Driver Package Filtering based on Win10/11. What happens when it finds 2 packages that match OS Architecture? Any chance of adding a target OS Version similar to that now used in Invoke-CMApplyDriverPackage.ps1 ? We don't have OSBuild numbers on the packages (Dell shop) to differentiate. Or would I be better off adding Build Numbers into the package names? cheers.

CharlesNRU commented 2 months ago

Hi @FlannelNZ, You are right, there is nothing in the script right now to filter based on the OS version. I don't work with ConfigMgr anymore which is why I did not keep this solution updated. I also do not have access to a test environment to do my testing if I were to try and improve this solution. If you're willing to do some testing for me, I could try and add a parameter for Windows version and see if that works.

bohnanza22 commented 2 months ago

Hi CharlesNRU, We haven't integrated Windows 11 in my environment yet. But I will be testing this soon. Probably in a few months. I would be willing to test any updates to your script in my environment and provide feedback.

CharlesNRU commented 1 month ago

This is just an update to let you know that the script and the MDM-TS.zip were updated. There is now a new parameter that can be used to specify the Windows OS version when applying drivers.