我试图运行下面的PowerShell命令来禁用Windows 8.1机器上的Superfetch。 Powershell窗口以pipe理员身份打开,我以pipe理员身份login。
Set-Service -name Superfetch -StartupType Disabled -Status Stopped
但是,我收到以下错误
Service 'Superfetch (SysMain)' cannot be configured due to the following error: The specified service does not exist as an installed service + CategoryInfo : PermissionDenied: (System.ServiceProcess.ServiceController:ServiceController) [Set-Service], ServiceCommandException + FullyQualifiedErrorId : CouldNotSetService,Microsoft.PowerShell.Commands.SetServiceCommand + PSComputerName : xxx.xxx.xxx.xxx
显然这个服务已经安装,我在安装的服务pipe理单元中看到它。 我将CategoryInfo看作“PermissionDenied”。 我如何通过PowerShell禁用此服务? 我以pipe理员身份login! 谢谢!
因为服务名称是“ SysMain ”而不是“ Superfetch ”。
PS C:\ Windows \ system32> Set-Service -name SysMain -StartupType Disabled -Status Stopped
不过你现在可能会得到这个:
Set-Service:不能停止服务'Superfetch(SysMain)',因为它依赖于其他服务。
由于这些依赖关系: 