Creators Update: number of processes

Page 2 of 4 FirstFirst 1234 LastLast

  1. Posts : 138
    Windows 10 Pro
    Thread Starter
       #11

    pparks1 said:
    I just clean installed the Creators Update on a VM yesterday. I fired it up this morning, connected via RDP to it, and according to Performance Monitor on the Performance tab, my # of running processes on boot was 105, it dropped to 102, went up to about 110.

    After about 35 minutes ( i had a meeting), it had settled in at 105.
    Hi! Yes: I've 107 processes now and lots of svchost.
      My Computer


  2. Posts : 2,068
    Windows 10 Pro
       #12

    JoeMcLutz said:
    Hi! Yes: I've 107 processes now and lots of svchost.
    Seems about normal to me (The overall # of processes, but there are a lot of svchost). I'm looking at my Work laptop (running anniversary update), is sitting at 120 processes.

    (get-process |where-object {$_.ProcessName -Match "svchost"}).Count

    Returned 68 instances on my Creators Update install, while that same command only returned 18 instances on my anniversary update work laptop.
      My Computers


  3. Posts : 138
    Windows 10 Pro
    Thread Starter
       #13

    pparks1 said:
    Seems about normal to me (The overall # of processes, but there are a lot of svchost). I'm looking at my Work laptop (running anniversary update), is sitting at 120 processes.

    (get-process |where-object {$_.ProcessName -Match "svchost"}).Count

    Returned 68 instances on my Creators Update install, while that same command only returned 18 instances on my anniversary update work laptop.
    Yes: 14 instances on my Win10Pro (not yet updated) and 63 instances on Win10Home (Creators Update).

    Thanks again. :)
      My Computer


  4. Posts : 2,068
    Windows 10 Pro
       #14

    Turns out this is a change by design. Starting with Build 14942, Microsoft is not grouping services if you have sufficient amounts of memory. With this change, every service will have it's own dedicated svchost.exe process.

    With higher amounts of RAM being commonplace today, there really wasn't a good reason for MS to share the svchost.exe process. With this new model, if 1 service happens to crash, it won't affect other services.
      My Computers


  5. Posts : 138
    Windows 10 Pro
    Thread Starter
       #15

    ...As well as bugsolving, security issues etc. as explained in the article I read.

    Oh, by the way:
    (get-process |where-object {$_.ProcessName -Match "svchost"}).Count


    counts all processes named "svchost"... is there any command to count all the services started by every svchost?
      My Computer


  6. Posts : 2,068
    Windows 10 Pro
       #16

    This can do it

    $array=get-process |where-object {$_.ProcessName -Match "svchost"}|Select Id

    foreach ($item in $array.Id){
    Get-WmiObject -Class win32_service -Filter "ProcessID='$item'" | select DisplayName
    }
      My Computers


  7. Posts : 138
    Windows 10 Pro
    Thread Starter
       #17

    pparks1 said:
    This can do it

    $array=get-process |where-object {$_.ProcessName -Match "svchost"}|Select Id

    foreach ($item in $array.Id){
    Get-WmiObject -Class win32_service -Filter "ProcessID='$item'" | select DisplayName
    }
    Great! Thank you!
    What language is this?
      My Computer


  8. Posts : 2,068
    Windows 10 Pro
       #18

    It's not a language (per se), it's PowerShell. PowerShell is Microsoft's configuration management engine intended for task automation and configuration management. it is based on .NET framework. It's a series of commands (called cmdlets) which return objects, rather than text. It's become a staple in Microsoft Exchange, and is being used more and more frequently across Microsoft products.

    It's less complicated than learning a programming language because everything is based on a verb-noun concept (like, get-process). And you typically take the output of 1 command and Pipe it (|) into another command to string together a series of commands to end at the result you are looking for.

    For example, you can start with
    get-service

    That command will return a list of services on your box, whether it's running or stopped and the name of the service.

    You can build on that command with
    get-service |Select *
    Now you are seeing all of the available information you can get on each of the services

    You can then modify that command to
    get-service |select Name,CanShutdown,StartType
    Which shows you specific columns you want.

    Now, you can take get-service spo*|stop-service
    That command will take all services that start with spo and stop them.

    Now, run
    get-service spooler and it should be stopped

    Can now restart with
    start-service spooler

    Want to shut down your computer faster, you can run
    stop-computer

    Here is another example
    start-process notepad.exe

    Run it 2 more times
    start-process notepad.exe
    start-process notepad.exe

    Then,
    get-process |where-object ProcessName -eq notepad

    Then,
    get-process|where-object ProcessName -eq notepad|Select *

    Then,
    get-process|where-object ProcessName -eq notepad|select StartTime,WS

    Now you can see the start time and the memory size used.

    Now, kill them all
    get-process |where ProcessName -eq notepad|stop-process
      My Computers


  9. Posts : 138
    Windows 10 Pro
    Thread Starter
       #19

    Thank You pparks1. It's very versatile! :)
      My Computer


  10. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #20

    pparks1 said:
    This can do it

    $array=get-process |where-object {$_.ProcessName -Match "svchost"}|Select Id

    foreach ($item in $array.Id){
    Get-WmiObject -Class win32_service -Filter "ProcessID='$item'" | select DisplayName
    }
    You can copy and paste this directly into the Powershell ISE to run it.

    Any way to sort the output alphabetically? Sort-Object?
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:24.
Find Us




Windows 10 Forums