You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added support for packaging Surface Laptop 3 drivers. Note that the Surface Laptop 3 has 2 variants with different driver sets.
Added a Version Number! The version number will be displayed in the logs at runtime.
New-CMGlobalConditionWqlQuery-DataType String -Class Win32_ComputerSystem -Namespace root\cimv2 -Property Model -Name "AutoPackage - Computer Model"-Description "Returns the Model from ComputerSystem\Model"
30
31
}
31
32
33
+
if (-not (Get-CMGlobalCondition-Name "AutoPackage - Computer SystemSKU")) {
34
+
New-CMGlobalConditionWqlQuery-DataType String -Class MS_SystemInformation -Namespace root\wmi -Property SystemSKU -Name "AutoPackage - Computer SystemSKU"-Description "Returns the SystemSKU from MS_SystemInformation"
35
+
}
36
+
32
37
if (-not (Get-CMGlobalCondition-Name "AutoPackage - OSArchitecture x64")) {
33
38
New-CMGlobalConditionWqlQuery-DataType String -Class Win32_OperatingSystem -Namespace root\cimv2 -Property OSArchitecture -WhereClause "OSArchitecture = `'64-bit`'"-Name "AutoPackage - OSArchitecture x64"-Description "Returns True if Win32_OperatingSystem is True. Use as existential rule for 64-bit operating system"
34
39
}
@@ -64,7 +69,7 @@ if (Get-CMApplication -Name $Global:RequirementsTemplateAppName -Fast) {
64
69
Add-LogContent"Processing - Add Windows 10 Versions to Template"
65
70
foreach ($Versionin$Windows10Versions) {
66
71
if (-not ($ExistingRequirements-contains"AutoPackage - Windows 10 Build Number Integer Greater than or equal to $Version")) {
67
-
Add-LogContent"$Version is being added"
72
+
Add-LogContent"`"$Version`" is being added"
68
73
$rule=Get-CMGlobalCondition-Name "AutoPackage - Windows 10 Build Number Integer"|New-CMRequirementRuleCommonValue-Value1 $Version-RuleOperator GreaterEquals
69
74
$rule.Name="AutoPackage - Windows 10 Build Number Integer Greater than or equal to $Version"
Add-LogContent"WARN: The Requirements Application is being created, please run the SCCMPackager again to finish prerequisite setup and begin packaging software."
0 commit comments