Windows 10: Creators Update: number of processes

Discus and support Creators Update: number of processes in Windows 10 Performance & Maintenance to solve the problem; 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... Discussion in 'Windows 10 Performance & Maintenance' started by JoeMcLutz, Apr 5, 2017.

  1. pparks1 Win User

    Creators Update: number of processes


    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.
     
    pparks1, Apr 5, 2017
    #16
  2. JoeMcLutz Win User

    ...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?
     
    JoeMcLutz, Apr 5, 2017
    #17
  3. pparks1 Win User
    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
    }
     
    pparks1, Apr 5, 2017
    #18
  4. JoeMcLutz Win User

    Creators Update: number of processes

    Great! Thank you! *Biggrin
    What language is this?
     
    JoeMcLutz, Apr 5, 2017
    #19
  5. pparks1 Win User
    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
     
    pparks1, Apr 5, 2017
    #20
  6. JoeMcLutz Win User
    Thank You pparks1. It's very versatile! *Smile
     
    JoeMcLutz, Apr 6, 2017
    #21
  7. Ztruker Win User
    You can copy and paste this directly into the Powershell ISE to run it.

    Any way to sort the output alphabetically? Sort-Object?
     
    Ztruker, Apr 9, 2017
    #22
  8. pparks1 Win User

    Creators Update: number of processes

    Yes, at end, run
    Sort-object using the property value you want to sort on and then you can sort ascending or descending.
     
    pparks1, Apr 9, 2017
    #23
  9. JoeMcLutz Win User
    hmmm...
    | Sort-Object <object>

    ...maybe? :/
     
    JoeMcLutz, Apr 10, 2017
    #24
  10. Ztruker Win User
    I've tried to use Sort-Object but no success. Can you include it in the sample code?

    $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
    }
     
    Ztruker, Apr 10, 2017
    #25
  11. lx07 Win User
    Out-gridview would do it although there is a more elegant way I'm sure.

    Code: $array=get-process |where-object {$_.ProcessName -Match "svchost"}|Select Id $names=foreach($item in $array.Id){ Get-WmiObject -Class win32_service -Filter "ProcessID='$item'" | select DisplayName } $names | sort-object DisplayName | out-gridview[/quote]
    Creators Update: number of processes [​IMG]
     
  12. Ztruker Win User
    That works, thanks. Takes a bit longer but not much.
     
    Ztruker, Apr 10, 2017
    #27
  13. sygnus21 Win User

    Creators Update: number of processes

    Perhaps this may explain why my limited 4gig of RAM laptop now seems slightly more sluggish after the update. Yes, It seemed sluggish before, but now...

    Anyway this is why I tell people I see absolutely NO reason to stick with less than 8, or even 16 gig of RAM. Both my desktops run 32gig. But my Asus Zenbook Prime UX31A laptop is locked at 4gig by design *Mad
     
    sygnus21, Apr 10, 2017
    #28
  14. pparks1 Win User
    I always recommend 8. Haven't had less than 8 for many years. 16 is good for vms. I have not yet taken a home machine over 16GB.
     
    pparks1, Apr 10, 2017
    #29
  15. sygnus21 Win User
    As a photographer who processes large image files (typically 800mb to 1gig) in Photoshop, I find 32gig works well for me. And for me, I've not been with less 8 for many years as well.

    When I bough my notebook I knew it was RAM limited but I figured I could work with it seeing I don't game on it. Now it chokes whenever I try to process RAW files through LR from my Nikon D800E. Being a 36 megapixel camera it produces 73meg nef files. You can bet my next notebook won't be so RAM limited.

    Anyway with Windows 10, anyone running 4gig of RAM on a 64-bit OS is in for a sluggish ride. I know, I'm there with my notebook *Sad
     
    sygnus21, Apr 10, 2017
    #30
Thema:

Creators Update: number of processes

Loading...
  1. Creators Update: number of processes - Similar Threads - Creators Update number

  2. Excessive Number of Processes

    in Windows 10 Performance & Maintenance
    Excessive Number of Processes: Hi. I understand that there have been several threads that deal with this subject but none that I've seen help. My laptop (specifically on my account) has become very slow, mainly in booting up. I have attempted to do all the normal things that people suggest to speed it up,...
  3. number of background processes and windows processes?

    in Windows 10 Performance & Maintenance
    number of background processes and windows processes?: win10-64, Old core2duo 2GHz , 8G ram. 100 background processes and 150 windows processes after boot. When I click on google cpu use goes to 99%, task mgr shows 6 google tasks running. Any facebook video is buffery, any audio stream is buffery. Also seems odd to have 2 copies...
  4. Creator's Update

    in Windows 10 Installation and Upgrade
    Creator's Update: What is Creator's Update? And How can I get that? Are Insider Program and Creator's Update Same https://answers.microsoft.com/en-us/windows/forum/windows_10-update/creators-update/1d440c83-6041-478b-9874-b651a8224bd1
  5. Creators Update.

    in Windows 10 Updates and Activation
    Creators Update.: How will I know when the Creator's Update has been installed please? Presumably it appears in Settings/Update and Security but is it identifiable? 86408
  6. Creators Update

    in Windows 10 Updates and Activation
    Creators Update: I don't particularly want to do a manual download but am I the only one that hasn't received the Creator's Update yet? I also read somewhere that certain applications running on a computer might stop the update from downloading. 89939
  7. creator update

    in Windows 10 Updates and Activation
    creator update: It appears that the creator update has me in its crosshairs. From what little I could find out the only thing I am interested in is the improved edge. Can all the other features be uninstalled or at least ignored. 86852
  8. Creators update

    in Windows 10 Performance & Maintenance
    Creators update: I installed the creators update some months ago that helped solving some of the problems I had with windows. But after windows crashed and I had to reinstall it, I can no longer seem to get the creators update to work. I just get a message that says "thank you for updating...
  9. creators update

    in Windows 10 Support
    creators update: I was wondering if anyone is having trouble with the creators update? I installed it on a desktop and laptop. The laptop seems ok with it. The desktop appeared ok at first, but after a couple of days things started happening. Keyboard would freeze, chrome with bing started...
  10. WIn 10 Creator version number

    in Windows 10 Installation and Upgrade
    WIn 10 Creator version number: What is the real version number for Win 10 Creator? Is it 15063 or 1703? I know I got the Creator update because it said so after the update ran which took an hour. But my sister's PC I may have to force the upgrade and the Win Upgrade Assistant refers to 15063. So I'm...