MSEndpointMgr / ConfigMgr

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

Invoke-CMDownloadBIOSPackage.ps1 Issue with Lenovo ThinkPad X260 #84

Closed boozeman closed 4 years ago

boozeman commented 5 years ago

We have about 20 different Lenovo models and we are using Modern Bios Mgmt. There is a continuous error with Lenovo ThinkPad X260 (20F5), while all other models work properly.

The script version is 2.0.6

Some smsts.log snip below

Parameter attributes need to be a constant or a script block.
At C:\WINDOWS\ccmcache\ib\Invoke-CMDownloadBIOSPackage.ps1:191 char:47
+             [ValidatePattern("^[A-Z0-9]{3}[A-F0-9]{5}$" <<<< )]
    + CategoryInfo          : ParserError: (:) [], ParseException  RunPowerShellScript
    + FullyQualifiedErrorId : ParameterAttributeArgumentNeedsToBeConstantOrScr
   iptBlock          
boozeman commented 5 years ago

This is not an issue at all! Machine needs at least WMF 4.0 for the scirpts working properly. This machine did not get that deployment for the reasons unknown.

vorlon77 commented 5 years ago

You can also change the " into ' for the script to work with older versions of powershell. In general use single quotes for constants unless you need variable expansion. Changing the quotes may allow it to work for you in this case.

Allan. On Nov 7, 2018 11:20 PM, "boozeman" notifications@github.com wrote:

This is not an issue at all! Machine needs at least WMF 4.0 for the scirpts working properly. This machine did not get that deployment for the reasons unknown.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SCConfigMgr/ConfigMgr/issues/84#issuecomment-436886211, or mute the thread https://github.com/notifications/unsubscribe-auth/AoM9WG7cBBELFlWne0hrjyFjoEBggfIsks5us81JgaJpZM4YSF_t .