Title: Set-Service should accept InputObject service controller · Issue #4916 · PowerShell/PowerShell · GitHub
Open Graph Title: Set-Service should accept InputObject service controller · Issue #4916 · PowerShell/PowerShell
X Title: Set-Service should accept InputObject service controller · Issue #4916 · PowerShell/PowerShell
Description: Currently set-service doesn't have a InputObject parameter which accepts the System.ServiceProcess.ServiceController object, while other *-service cmdlets do. Currently this doesn't work: $a = Get-Service vds set-service $a -startupType ...
Open Graph Description: Currently set-service doesn't have a InputObject parameter which accepts the System.ServiceProcess.ServiceController object, while other *-service cmdlets do. Currently this doesn't work: $a = Get-...
X Description: Currently set-service doesn't have a InputObject parameter which accepts the System.ServiceProcess.ServiceController object, while other *-service cmdlets do. Currently this doesn't work: $...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4916
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set-Service should accept InputObject service controller","articleBody":"Currently set-service doesn't have a InputObject parameter which accepts the System.ServiceProcess.ServiceController object, while other *-service cmdlets do.\r\n\r\nCurrently this doesn't work:\r\n```\r\n$a = Get-Service vds\r\nset-service $a -startupType Automatic\r\n````\r\n\r\nwhile start-service and stop-service do work this way\r\n```\r\n$a = Get-Service vds\r\nStop-Service $a\r\n```\r\nand pipeline does also work \r\n`Get-Service vds | Set-Service -startupType Automatic`\r\n\r\na work around is this:\r\n```\r\n$a = Get-Service vds\r\nSet-Service $a.ServiceName -startupType Automatic\r\n```","author":{"url":"https://github.com/kwint","@type":"Person","name":"kwint"},"datePublished":"2017-09-25T09:42:01Z","url":"https://github.com/PowerShell/PowerShell/issues/4916"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:026b6045-67f8-64f7-1a87-76be23665b1a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEC6:20243E:21D9D1:2E4A7A:6AFD926A |
| html-safe-nonce | 622d8c7d432c10207f4337aa8667c716fc6b219c68fe8b9baf674fce21c98eba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUM2OjIwMjQzRToyMUQ5RDE6MkU0QTdBOjZBRkQ5MjZBIiwidmlzaXRvcl9pZCI6IjY3MjYyNzM4MzUwOTc0OTQxMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 66dff7d25ad80431c843414d0e08a1c79f9bc32b9b380c2d03b3ca9da7af42d5 |
| hovercard-subject-tag | issue:260212955 |
| 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/4916/issue_layout |
| twitter:image | https://opengraph.githubassets.com/baf17bfcbf4c763748ba07ca9cc5d56ab7b2546681e41e98e4d09012af12a2dc/PowerShell/PowerShell/issues/4916 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/baf17bfcbf4c763748ba07ca9cc5d56ab7b2546681e41e98e4d09012af12a2dc/PowerShell/PowerShell/issues/4916 |
| og:image:alt | Currently set-service doesn't have a InputObject parameter which accepts the System.ServiceProcess.ServiceController object, while other *-service cmdlets do. Currently this doesn't work: $a = Get-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kwint |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width