",$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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |