![]() ![]() ![]() ",$Processes,$proc) the last Format to have the result of processes count included in the output # Check if the process is found or not, report it back to PRTG. $Processes = (Get-WmiObject -ComputerName $computername -Query "SELECT * FROM Win32_Process WHERE NAME LIKE '%$($proc)%'") # Get processes of the remote machine that are like the provided dynamic process name # Parameter "-computername" for the remote hosts address and "-proc" for the dynamic process name #This script checks if a certain dynamic process is running on a remote machine. ps1 file in this subfolder of the PRTG program directory on the probe system from where you want to check the process: \Custom Sensors\EXE\ # _ _ _ The script can look for a process that is named like "FTPServer" and will find the process "FTPServer" also with changing numbers. For example, consider the process "FTPServer100.exe" that increases the number at the end every day.The script looks for a process that is like the given process name.The script basically checks if the desired process runs on the remote host or not.To monitor a dynamic Windows process, use the following PowerShell (.ps1) script. This article applies to PRTG Network Monitor 16 or later How to Monitor a Dynamic Windows Process ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |