Skip to content

Commit

Permalink
Enable NDU back, allowing the task manager to show network usage per …
Browse files Browse the repository at this point in the history
…process
  • Loading branch information
LeDragoX committed May 16, 2024
1 parent 3b7c85b commit 5318b9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/scripts/Optimize-ServicesRunning.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ function Optimize-ServicesRunning() {
<# Network Services #>
"iphlpsvc" # DEFAULT: Automatic | IP Helper Service (IPv6 (6to4, ISATAP, Port Proxy and Teredo) and IP-HTTPS)
"lmhosts" # DEFAULT: Manual | TCP/IP NetBIOS Helper
"ndu" # DEFAULT: Automatic | Windows Network Data Usage Monitoring Driver (Shows network usage per-process on Task Manager)
#"NetTcpPortSharing" # DEFAULT: Disabled | Net.Tcp Port Sharing Service
"SharedAccess" # DEFAULT: Manual | Internet Connection Sharing (ICS)
<# Telemetry Services #>
Expand All @@ -86,6 +85,10 @@ function Optimize-ServicesRunning() {
"gupdatem" # DEFAULT: Manual | Google Update Service²
)

$ServicesToAutomatic = @(
"ndu" # DEFAULT: Automatic | Windows Network Data Usage Monitoring Driver (Shows network usage per-process on Task Manager)
)

Write-Title "Services tweaks"
Write-Section "Disabling services from Windows"

Expand All @@ -103,6 +106,7 @@ function Optimize-ServicesRunning() {
}

Set-ServiceStartup -State 'Manual' -Services $ServicesToManual
Set-ServiceStartup -State 'Automatic' -Services $ServicesToAutomatic
}

# List all services:
Expand Down

0 comments on commit 5318b9d

Please sign in to comment.