Consider WMI syntax while using a wildcard like ABCD% examples here seem appropriate
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/5df52a06-4f21-4afc-a959-ea7a467a6387/wmiwql-computer-name?forum=ITCG > On Mar 18, 2016, at 9:25 AM, Kehl Reto <[email protected]> wrote: > > Dear all > > I want to install specific software during OSD depending on the first 4 chars > from the computername, something like “if left$(OSDComputername)=”ABCD” then > install this” > how can I do this? > > Thanks, > Reto
