June 20, 2010 at 8:22 pm
I am trying to start Parental Controls (WPCsvc) service using powershell. I can do this from console (services.msc) but powershell throws following error:
PS C:\Users\Lucky> Get-Service | Where-Object { $_.Name -eq 'wpcsvc'} | Start-Service
Start-Service : Service 'Parental Controls (WPCSvc)' cannot be started due to the following error: Cannot open WPCSvc service on computer '.'.
At line:1 char:67
+ Get-Service | Where-Object { $_.Name -eq 'wpcsvc'} | Start-Service <<<<
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
PS C:\Users\Lucky> Get-Service | Where-Object { $_.Name -eq "wpcsvc"} | Start-Service
Start-Service : Service 'Parental Controls (WPCSvc)' cannot be started due to the following error: Cannot open WPCSvc s
ervice on computer '.'.
At line:1 char:67
+ Get-Service | Where-Object { $_.Name -eq "wpcsvc"} | Start-Service <<<<
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
Need Help
Regards,
Lucky
June 20, 2010 at 8:33 pm
Run the powershell as an admin.
-MJ
Please do not print mails and docx unless it is absolutely necessary. Spread environmental awareness.
June 20, 2010 at 11:20 pm
Yes this worked Michael. But i want to do the same with Google Software Updater (gusvc). This didn't get started :(. can anyone hellp out here?
PS C:\Windows\system32> Get-Service | Where-Object { $_.displayName -like "google so*"}
Status Name DisplayName
------ ---- -----------
Stopped gusvc Google Software Updater
PS C:\Windows\system32> Get-Service | Where-Object { $_.displayName -like "google so*"} | Start-Service
Start-Service : Service 'Google Software Updater (gusvc)' cannot be started due to the following error: Cannot start se
rvice gusvc on computer '.'.
At line:1 char:80
+ Get-Service | Where-Object { $_.displayName -like "google so*"} | Start-Service <<<<
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy