Created
November 27, 2014 08:19
-
-
Save deekayen/6cde169a5defbbc8f7d8 to your computer and use it in GitHub Desktop.
Count the number of running svchost.exe processes on a Windows server using PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$wmic = `wmic process get description`; | |
$total_svchost_running = substr_count($wmic, 'svchost.exe'); | |
echo 'Total svchost.exe processes: ' . $total_svchost_running; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment