New
#30
hopefully i don't have to do it again
Hi Shawn
Thanks for anotherbrilliant tutorial.
I'm trying to disable Windows 10 Update Service with PS cmdlet Set-Service -Name "wuauserv" -StartupType Disabled -Status Stopped
The PS error message blames dependency on other services, and there is no Force parameter for this cmdlet in PS Help.
My computer shows no dependencies on Windows Update, but it is dependent on the RPC service.
Any suggestions? Thanks.
Old Novice
Hi Shawn
Thank you for your quick reply.
Further info:
I have two quite independent Windows 10 Home laptops - Sony Vaio and Lenovo ideapad 300. Regarding this problem, they behave identically. Following is a screen shot of the PS error message which might mean more to you than to me:
Attachment 223024
After posting to you, I discovered that I was trying to disable a running service. I stopped it using PS Set-Service -Name "wuauserv" -Status Stopped before applying the PS command to disable. This worked without error.
(I also noticed that disabling by clicking in the service properties window was accepted, but left the Status as Running, presumably needing a restart to stop.)
In your helpful reply, your CMD suggestion, which worked beautifully, thank you, also includes a Stop command before configuring Disable. It would be interesting to know the initial Status of the Service used in your tutorial without an explicit preliminary Stop element.
Your suggestion to try PS Core6 is very attractive; unfortunately time constraints don't permit at present. I will be staying with PS 5.1. My current project, in which this problem occurred, involves desktop shortcuts to PS scripts that include confirmation dialogs and other operations partly written, and I don't want to change horses in mid stream. So, for now, I regard my problem as solved, and am most grateful for your contribution.
Thank you Shawn.
Old Novice
@Old Novice,
The suggestion to try "PS Core6" was just something PowerShell itself was advertising.
I'm glad you got the command to work to stop and disable the service.
It's really not needed to know the current running or stopped status of a service before disabling it unless you just wanted to. You would need to stop the service before disabling it anyways. It won't matter if the service is already stopped or not.
You can use the command below in an elevated PowerShell to see the current status of the Windows Update service.
Get-Service "wuauserv"
Start, Stop, and Disable Services in Windows 10 | Tutorials