Title: Credentials for Set-Service command · Issue #4843 · PowerShell/PowerShell · GitHub
Open Graph Title: Credentials for Set-Service command · Issue #4843 · PowerShell/PowerShell
X Title: Credentials for Set-Service command · Issue #4843 · PowerShell/PowerShell
Description: Currently when creating a service using the New-Service from the module Microsoft.PowerShell.Management I can specify the credentials that my new service will be executed with. Set-Service currently does not support setting the new logon...
Open Graph Description: Currently when creating a service using the New-Service from the module Microsoft.PowerShell.Management I can specify the credentials that my new service will be executed with. Set-Service currentl...
X Description: Currently when creating a service using the New-Service from the module Microsoft.PowerShell.Management I can specify the credentials that my new service will be executed with. Set-Service currentl...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4843
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Credentials for Set-Service command","articleBody":"Currently when creating a service using the `New-Service` from the module `Microsoft.PowerShell.Management` I can specify the credentials that my new service will be executed with.\r\n\r\n`Set-Service` currently does not support setting the new logon account for the service.\r\nThe current workarounds that I have found:\r\n* Use sc.exe to change credentials\r\n* Use `Get-WmiObject -Class Win32_Service` and from there use the `Change` method\r\n* Delete the service and create it again.\r\n\r\nBut I believe it would be nice to have `Set-Service` support credentials.\r\nIs it possible to add functionality for setting the credentials using the `Set-Service` command?","author":{"url":"https://github.com/joandrsn","@type":"Person","name":"joandrsn"},"datePublished":"2017-09-14T21:21:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4843/PowerShell/issues/4843"}
| 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:19047c15-bde2-9605-8309-fa560116e306 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCB8:F03A9:64373F:86A23E:6A57D64A |
| html-safe-nonce | 02cb705eed45345a2f49483935aa1c7a481b35c73de89482cf854df2fe0cde04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0I4OkYwM0E5OjY0MzczRjo4NkEyM0U6NkE1N0Q2NEEiLCJ2aXNpdG9yX2lkIjoiODkyNTg0NDYwNDQ3OTU5MjAxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2b37e327d690c970ed7aa45bdb0196bdaf1a74d6e9322355aea8bb563bff3e27 |
| hovercard-subject-tag | issue:257860445 |
| 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/4843/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9bfd444a322d3f44045c899a6d06c1c3741dd4e4ca2ae3e78d152eb563fbdc7f/PowerShell/PowerShell/issues/4843 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9bfd444a322d3f44045c899a6d06c1c3741dd4e4ca2ae3e78d152eb563fbdc7f/PowerShell/PowerShell/issues/4843 |
| og:image:alt | Currently when creating a service using the New-Service from the module Microsoft.PowerShell.Management I can specify the credentials that my new service will be executed with. Set-Service currentl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joandrsn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca |
| 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 | 9044d0f867aa9892268d1f430238ff123e11ee91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width