I found the below script in the forum:
Select Top 1000 tblAssets.AssetName,
tblProcesses.Caption
From tblAssets
Inner Join tblProcesses On tblAssets.AssetID = tblProcesses.AssetID
Where tblProcesses.Caption = 'OneDrive.exe'
https://www.lansweeper.com/forum/yaf_postst17753findunread_check-if-process-is-running-report.aspx#post59508
I want to change it to where I can see any PCs NOT running OneDrive. I'm trying to get certainty this process is running org wide and ensure it sends a weekly email if we have some down. You know, for syncing stuff.
I tried modifying the last line with a NOT, but that didn't work. How can I make this show only PC without this process.
Where
NOT tblProcesses.Caption = 'OneDrive.exe'
I could do a compare column in excel with what the output is of the above, but I'd like to all canned up nicely in a report.
Thank you!