Quantcast
Channel: Symantec Connect - Endpoint Management
Viewing all articles
Browse latest Browse all 7217

Help with Condition / Script

$
0
0
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. :-)

 

Capture12_1.PNG


Viewing all articles
Browse latest Browse all 7217

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>