ok, thank you, will do so :) From: [email protected] [mailto:[email protected]] On Behalf Of Marcum, John Sent: Freitag, 8. Juli 2016 15:16 To: '[email protected]' Subject: [mssms] RE: run task sequence step only for desktops
Honestly I'm not sure so I just run it each time I am about to use one of the variables. LOL From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Kehl Reto Sent: Friday, July 8, 2016 8:05 AM To: '[email protected]' <[email protected]<mailto:[email protected]>> Subject: [mssms] RE: run task sequence step only for desktops thank you John are the variables persisent when set in Windows PE or do I need to run the script again in the OS part of the TS? From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Marcum, John Sent: Freitag, 8. Juli 2016 14:48 To: '[email protected]' Subject: [mssms] RE: run task sequence step only for desktops I use a script to set a variable for laptop, desktop and virtual machine. Here's the relevant portion: 'Checking for HW Type strType="D" For Each objChassis in colChassis For Each strChassisType in objChassis.ChassisTypes Select Case strChassisType Case 8 strType="L" Case 9 strType="L" Case 10 strType="L" End Select Next Next 'VM Specific Settings For Each objItem in colItems For Each UUIDItem in colUUIDItems strSerial=Right(UUIDitem.UUID,7) strType="V" Next Next 'Setting OU Path If strType="L" Then strOUPath=" If strType="D" Then strOUPath=" If strType="V" Then strOUPath=" 'Setting TS Variables objTSEnvironment("Location")=strLoc objTSEnvironment("SN")=strSerial objTSEnvironment("HWType")=strType objTSEnvironment("CompName")=strLoc & "-" & strType & "-" & strSerial objTSEnvironment("OUPath")=strOUPath From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Kehl Reto Sent: Friday, July 8, 2016 3:44 AM To: '[email protected]' <[email protected]<mailto:[email protected]>> Subject: [mssms] run task sequence step only for desktops I am using "Select * from Win32_Battery where availability > 0" to install software only for laptops and this works. Now I need a query to install software only on Desktop PC's. If I'm using "Select * from Win32_Battery where (BatteryStatus = 0)", it results in "The WMI condition expression is evaluated to be FALSE" but I need to have a query which returns TRUE (it is not MDT Task Sequence) any suggestions please..? ________________________________ Confidentiality Notice: This e-mail is from a law firm and may be protected by the attorney-client or work product privileges. If you have received this message in error, please notify the sender by replying to this e-mail and then delete it from your computer.

