I need a solution
Not much of a scripter so dont know where i'm going wrong here.
I have a job that will determine the chassis type(this will let me run certain laptop jobs)
this is the batch file called get chassis type.
for /f "delims={}" %%i in ('"wmic systemenclosure get chassistypes | find "{""') do set chassisType=%%i
EXIT /B %chassisType%
If i run this file on the machine and output to screen the value is 3
If I do a condition job it fails!
What am i doing wrong..... apart from working in I.T. :-)