Title: Set-Service -Status Stopped should not prevent stopping of services without dependents only because they depend on others · Issue #5517 · PowerShell/PowerShell · GitHub
Open Graph Title: Set-Service -Status Stopped should not prevent stopping of services without dependents only because they depend on others · Issue #5517 · PowerShell/PowerShell
X Title: Set-Service -Status Stopped should not prevent stopping of services without dependents only because they depend on others · Issue #5517 · PowerShell/PowerShell
Description: Set-Service -Status Stopped not only prevents stopping services that other services depend on (.DependentServices), but, curiously, also services that themselves depend on others (.ServicesDependedOn. For instance, the wuauserv service h...
Open Graph Description: Set-Service -Status Stopped not only prevents stopping services that other services depend on (.DependentServices), but, curiously, also services that themselves depend on others (.ServicesDepended...
X Description: Set-Service -Status Stopped not only prevents stopping services that other services depend on (.DependentServices), but, curiously, also services that themselves depend on others (.ServicesDepended...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5517
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set-Service -Status Stopped should not prevent stopping of services without dependents only because they depend on others","articleBody":"`Set-Service -Status Stopped` not only prevents stopping services that other services _depend on_ (`.DependentServices`), but, curiously, also services that _themselves_ depend on others (`.ServicesDependedOn`.\r\n\r\nFor instance, the `wuauserv` service has no dependents, but itself depends on the `rpcss` service.\r\n\r\nAs an aside: `Set-Service -Status Stopped` lacks a `-Force` switch that would allow it to stop dependent services too, the way `Stop-Service` offers.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nSet-Service -Status Stopped wuauserv\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nGiven that the service has no dependents, it should be stopped.\r\n\r\n\r\nActual behavior\r\n---------------\r\n\r\nThe following error occurs:\r\n\r\n```none\r\nSet-Service : Cannot stop service 'Windows Update (wuauserv)' because it is dependent on other services.\r\n...\r\n```\r\n\r\nThat the service depends on _other_ services shouldn't prevent its stopping.\r\n\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\nPowerShell Core 6.0.0-rc on on Microsoft Windows 7 Enterprise (64-bit; v6.1.7601)\r\nWindows PowerShell v5.1.14409.1012 on Microsoft Windows 7 Enterprise (64-bit; v6.1.7601)\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2017-11-21T12:05:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5517/PowerShell/issues/5517"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:58895012-946d-52d2-d603-a6f42b5cc33f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6F8:22243D:188734D:23A5854:6A54E6C7 |
| html-safe-nonce | 58df680ee7e9c584bd92a26e088fdaae1d44ac435cd41622916894a4e4a9b97b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkY4OjIyMjQzRDoxODg3MzREOjIzQTU4NTQ6NkE1NEU2QzciLCJ2aXNpdG9yX2lkIjoiNTgzNDY5MTI5NzkxNTc1ODI3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5337d33b1a6dd71dd994a7ec56ea49129eada8910120448d6dfccb9c828bbea |
| hovercard-subject-tag | issue:275687924 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/5517/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c08a6bed945ab8d41f24fb372f95b9f6892e9754c01b6867ae463da65446cfa/PowerShell/PowerShell/issues/5517 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c08a6bed945ab8d41f24fb372f95b9f6892e9754c01b6867ae463da65446cfa/PowerShell/PowerShell/issues/5517 |
| og:image:alt | Set-Service -Status Stopped not only prevents stopping services that other services depend on (.DependentServices), but, curiously, also services that themselves depend on others (.ServicesDepended... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bb1b4ffdc07c66de20ad344214f55df0aa364bd3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width