Disable Windows Mobile Hotspot Service (icssvc) using PowerShell

The Windows Mobile Hotspot Service (icssvc) is a feature in Windows that allows you to turn your computer into a mobile hotspot, enabling other devices to connect to the internet through your computer’s internet connection. While this feature can be convenient in certain situations, there may be times when you want to disable it. You can disable the Windows Mobile Hotspot Service using PowerShell easily:

 

$ServiceName = “icssvc”

if (Get-Service $ServiceName -ErrorAction SilentlyContinue) {
Stop-Service $ServiceName
Set-Service $ServiceName -StartupType Disabled
Write-Host “The Windows Mobile Hotspot Service ($ServiceName) has been disabled.”
}
else {
Write-Host “The Windows Mobile Hotspot Service ($ServiceName) is not installed.”
}

 

Leave a comment

Your email address will not be published. Required fields are marked *

16 + two =