Please use the script to know whether the specified application is running on the Windows Endpoint
Note:
Parameter Configuration:
>) Type : String
>) ITSM Label : Application Name with the Extension (Eg. chrome.exe)
>) Default Value : chrome.exe
Run as Logged in User
#To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('parameterName') with that parameter's name
appName =itsm.getParameter('parameterName')
import os
def IsAppRunning(appName):
proObj = os.popen('TASKLIST /FI "STATUS eq running"')
runApps = proObj.read()
return appName in runApps
if IsAppRunning(appName):
print 'Success: '+appName+' is running'
else:
print 'Fail: '+appName+' is not running'
Comments