MSEndpointMgr / ConfigMgr

Microsoft Endpoint Configuration Manager scripts and tools
635 stars 281 forks source link

Invoke-CMApplyDriverPackage.ps1 v 2.1.5 small problem #76

Closed JoelFrance closed 5 years ago

JoelFrance commented 6 years ago

Hi - found another glitch: shouldn't line 888 be: $PackageNameComputerModel = $PackageList[$i].Replace($ComputerManufacturer, "").Replace(" - ", ":").Split(":").Trim()[1] instead of: $PackageNameComputerModel = $PackageList[$i].PackageName.Replace("Hewlett-Packard", "HP").Replace(" - ", ":").Split(":").Trim()[1] ?

NickolajA commented 5 years ago

Good catch, copy paste can be a ***** sometimes. Fixed in 2.2.3. Thanks