powershell - I need a script to detect if a computer is in an active directory user group -


i found online vbscript joins computer group in users ou direct access work. works in task sequence our osd using sccm 2012 we've come road block want laptops added rather computers.

if kind, need script (powershell, vb, jscript) detect computer added group in ad.

set task sequence step run based on condition.

enter image description here

the above conditions detects if computer laptop. first 1 work when have mdt integrated , second uses simple wmi query detect system type.

the wmi query might not reliable, advice integrate mdt environment.


Comments