I need to monitor the number of specific process on a server where i have limited concurrent user license for an application.
Multiple users login to the application & the task manager on the server shows "ntbshell" as process name for each user. I can count these processes using batch file countbshell.bat as following :
Powershell.exe @(Get-Process -Name ntbshell -ErrorAction SilentlyContinue).Count
However, i need to automate it through IPMonitor to prompt us if the active users exceeds a certain number. Any help would be appreciated.