Page 2 of 4 FirstFirst 1234 LastLast
  1.    06 Apr 2017 #11
    Join Date : Apr 2016
    Italy
    Posts : 91
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by pparks1 View Post
    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 ComputerSystem Spec
  2.    06 Apr 2017 #12
    Join Date : Oct 2014
    Posts : 920
    Windows 10 Pro

    Quote Originally Posted by JoeMcLutz View Post
    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 ComputerSystem Spec
  3.    06 Apr 2017 #13
    Join Date : Apr 2016
    Italy
    Posts : 91
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by pparks1 View Post
    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 ComputerSystem Spec
  4.    06 Apr 2017 #14
    Join Date : Oct 2014
    Posts : 920
    Windows 10 Pro

    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 ComputerSystem Spec
  5.    06 Apr 2017 #15
    Join Date : Apr 2016
    Italy
    Posts : 91
    Windows 10 Pro
    Thread Starter

    ...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 ComputerSystem Spec
  6.    06 Apr 2017 #16
    Join Date : Oct 2014
    Posts : 920
    Windows 10 Pro

    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 ComputerSystem Spec
  7.    06 Apr 2017 #17
    Join Date : Apr 2016
    Italy
    Posts : 91
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by pparks1 View Post
    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 ComputerSystem Spec
  8.    06 Apr 2017 #18
    Join Date : Oct 2014
    Posts : 920
    Windows 10 Pro

    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 ComputerSystem Spec
  9.    07 Apr 2017 #19
    Join Date : Apr 2016
    Italy
    Posts : 91
    Windows 10 Pro
    Thread Starter

    Thank You pparks1. It's very versatile!
      My ComputerSystem Spec
  10.    10 Apr 2017 #20
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,343
    Windows 10 Pro X64 16299.19

    Quote Originally Posted by pparks1 View Post
    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 ComputersSystem Spec

 
Page 2 of 4 FirstFirst 1234 LastLast


Similar Threads
Thread Forum
Solved Windows Update with Metered connection fails: Creators Update 15063.0
It's dejŠ vu all over again. :doh: The correct behaviour of windows update over a metered connection is to offer the choice to download, or wait until on a non-metered connection. 128460 The initial build of the Anniversary Update broke...
Windows Updates and Activation
Windows 10 Creators Update available through the Update Assistant
:arrow: Windows 10 Creators Update version 1703 (build 15063) now available from Windows 10 Update Assistant. See also: Managing Windows 10 Creators Update rollout for a seamless experience - - Windows 10 Forums Windows 10 Creators Update...
Windows 10 News
Windows 10 Creators Update and Creators Update SDK are Released
Source: Windows 10 Creators Update and Creators Update SDK are Released - Building Apps for WindowsBuilding Apps for Windows :arrow: Windows 10 Creators Update version 1703 (build 15063) now available from Windows 10 Update Assistant. ...
Windows 10 News
Visual Studio 2017 Update Preview and Windows 10 Creators Update SDK
Source: https://blogs.msdn.microsoft.com/visualstudio/2017/03/16/visual-studio-2017-update-preview-and-windows-10-creators-update-sdk/
Windows 10 News
Creators Update: Will I be able to chose the time of actual update.
I notice that many updates occur automatically. With small updates I don't even know they have occurred. I always try to make a restore point before a big update actually updates my comp. (for obvious reasons) and I am sometime given notice, often...
Windows Updates and Activation
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 23:22.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums