Identifying IIS, svchost.exe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 02:33 AM
Discovery is finding Internet Information Services (IIS) by looking for a running process called "svchost.exe" with a command line parameter "iissvcs".
Unfortunately, we're not finding a lot of IIS instances as the command line parameter is not displayed when we do a WMI query. It's shown on some servers, but not others!
Has anyone else seen this?
Is there an alternative way of reliably identifying IIS?
Examples:
PS C:\vb> gwmi win32_process -comp xxxxxxx |?{$_.name -match "svchost"} | select name,commandline
name commandline
---- -----------
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
_________________________________________________________________________________________________________________________________________________________
PS C:\vb> gwmi win32_process -comp yyyyyyyyy |?{$_.name -match "svchost"} | select name,commandline
name commandline
---- -----------
- svchost.exe C:\Windows\system32\svchost.exe -k DcomLaunch
- svchost.exe C:\Windows\system32\svchost.exe -k RPCSS
- svchost.exe C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted
- svchost.exe C:\Windows\system32\svchost.exe -k netsvcs
- svchost.exe C:\Windows\system32\svchost.exe -k LocalService
- svchost.exe C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted
- svchost.exe C:\Windows\system32\svchost.exe -k NetworkService
- svchost.exe C:\Windows\system32\svchost.exe -k LocalServiceNoNetwork
- svchost.exe C:\Windows\system32\svchost.exe -k apphost
- svchost.exe C:\Windows\system32\svchost.exe -k regsvc
- svchost.exe C:\Windows\system32\svchost.exe -k iissvcs
- svchost.exe C:\Windows\System32\svchost.exe -k WerSvcGroup
- svchost.exe C:\Windows\System32\svchost.exe -k termsvcs
- svchost.exe C:\Windows\system32\svchost.exe -k NetworkServiceNetworkRestricted
- svchost.exe C:\Windows\system32\svchost.exe -k LocalServiceAndNoImpersonation
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 12:21 PM
SN should pick up the parameters if it is picking up the running process. Under the running process tab of the discovered CI, you can click on one of the svchost.exe running processes. The IIS process classifier is looking for two things if you view the process classifier under Discovery Definition > Processes. If you open the Microsoft IIS Server record, it looking for
1. Command contains svchost.exe which in your case matches multiple records
2. Key parameter contains iissvcs (this will uniquely identify which of the svchost.exe is related to an IIS installation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 09:40 AM
1. Does the IIS process show under the CI's process tab for the one that is not being classified?
Yes. But it's not clear which one it is. See earlier post
2. If not does it show within task manager under the processes tab on the server itself. This is generally what is collected and provided back to ServiceNow in order to do the process classification.
It shows within task manager. I can see 11 svchost.exe entries in task manager. The parameters don't show up so I can't tell (in task manager or SN or using WMI) which one is the IIS process.
3. If it does not show under task manager you have to verify the service is up as it should always appear there by default when the service is running, which means SN should pick it up if it picks up all the other processes.
The service is UP. I can connect to it with a web browser. It is one of the 11 svchost.exe processes I can see running. I just don't know which one is IIS because Windows is not letting me see the command line.
As things are, on several hundred servers, SN does not recognise IIS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 08:02 PM
check this post and try with command
get-wmiobject Win32_Service -Filter "name='IISADMIN'"
Check whether you get your both machines discovered by this way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2017 02:27 AM
check this out: Fix Svchost.exe netsvcs High CPU Memory Usage | Error Codes Pro
nice guide to resolve the issue