Skip to content

Commit 5318b9d

Browse files
committed
Enable NDU back, allowing the task manager to show network usage per process
1 parent 3b7c85b commit 5318b9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/scripts/Optimize-ServicesRunning.ps1

+5-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ function Optimize-ServicesRunning() {
6565
<# Network Services #>
6666
"iphlpsvc" # DEFAULT: Automatic | IP Helper Service (IPv6 (6to4, ISATAP, Port Proxy and Teredo) and IP-HTTPS)
6767
"lmhosts" # DEFAULT: Manual | TCP/IP NetBIOS Helper
68-
"ndu" # DEFAULT: Automatic | Windows Network Data Usage Monitoring Driver (Shows network usage per-process on Task Manager)
6968
#"NetTcpPortSharing" # DEFAULT: Disabled | Net.Tcp Port Sharing Service
7069
"SharedAccess" # DEFAULT: Manual | Internet Connection Sharing (ICS)
7170
<# Telemetry Services #>
@@ -86,6 +85,10 @@ function Optimize-ServicesRunning() {
8685
"gupdatem" # DEFAULT: Manual | Google Update Service²
8786
)
8887

88+
$ServicesToAutomatic = @(
89+
"ndu" # DEFAULT: Automatic | Windows Network Data Usage Monitoring Driver (Shows network usage per-process on Task Manager)
90+
)
91+
8992
Write-Title "Services tweaks"
9093
Write-Section "Disabling services from Windows"
9194

@@ -103,6 +106,7 @@ function Optimize-ServicesRunning() {
103106
}
104107

105108
Set-ServiceStartup -State 'Manual' -Services $ServicesToManual
109+
Set-ServiceStartup -State 'Automatic' -Services $ServicesToAutomatic
106110
}
107111

108112
# List all services:

0 commit comments

Comments
 (0)