René's URL Explorer Experiment


Title: Added BinPath, Description, UserName and Delayed Auto Start to Get-Service by joandrsn · Pull Request #4907 · PowerShell/PowerShell · GitHub

Open Graph Title: Added BinPath, Description, UserName and Delayed Auto Start to Get-Service by joandrsn · Pull Request #4907 · PowerShell/PowerShell

X Title: Added BinPath, Description, UserName and Delayed Auto Start to Get-Service by joandrsn · Pull Request #4907 · PowerShell/PowerShell

Description: I had the time to look into this issue #2579 I have added the following to the Get-Service command: BinaryPathName (Was suggested as ServicePath) Description UserName (Was suggested as LogOnAs) DelayedAutoStart ServiceStartupType The ServiceStartupType was also added, providing the user access to use services like in services.msc, having Automatic, Automatic (Delayed Start), Manual and Disabled as options (Also includes InvalidValue as an initial value for ServiceStartupType) I'm not completely sure if my naming of the variables are correct and would like some feedback. I have tried to get a complete overview of what the different properties are called in the different ways to interact with services (With my additions marked like this). New-Service Set-Service Get-Service Get-CimInstance N/A Computername N/A SystemName? Name Name Name Name DisplayName DisplayName DisplayName DisplayName/Caption Description Description Description Description StartupType StartupType StartupType Startmode (string) N/A Status Status State Credentials Credentials UserName* StartName* BinaryPathName N/A BinaryPathName PathName DependsOn N/A RequiredServices N/A N/A N/A N/A DelayedAutoStart N/A N/A N/A ProcessId *Only username of the account running the service. When adding the properties, I used NotePropertie and I don't know if it's possible to make autocomplete for this. I would love to have the ability to type: $service = Get-Service -Name 'spooler' $service.Use => $service.UserName Another thing: I'm not sure if I should/can split my function for adding properties up into smaller pieces since it's about 100 lines currently. I might remove DelayedAutoStart from the pull request since people might rather want it as a StartupType instead. I currently have it in since people might find the information useful on its own.

Open Graph Description: I had the time to look into this issue #2579 I have added the following to the Get-Service command: BinaryPathName (Was suggested as ServicePath) Description UserName (Was suggested as LogOnAs) De...

X Description: I had the time to look into this issue #2579 I have added the following to the Get-Service command: BinaryPathName (Was suggested as ServicePath) Description UserName (Was suggested as LogOnAs) De...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/4907

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:46af7bbd-ef08-90e6-44e4-bd9877acf339
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9998:3A715F:664869:92E83D:6AFD8EE5
html-safe-nonce84fd35635f3372c6d47c0be14f674af7b0dd4fcc47bf347b3c40f979f7dbc15a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTk4OjNBNzE1Rjo2NjQ4Njk6OTJFODNEOjZBRkQ4RUU1IiwidmlzaXRvcl9pZCI6IjIzNzA1NDk3Mzg0NTQ3NDg5MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac66959968f5756a16659d2806513e104c9bcd32f354b0d3ef36bc6e63390d3952
hovercard-subject-tagpull_request:142733051
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/4907/files
twitter:imagehttps://avatars.githubusercontent.com/u/5766695?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5766695?s=400&v=4
og:image:altI had the time to look into this issue #2579 I have added the following to the Get-Service command: BinaryPathName (Was suggested as ServicePath) Description UserName (Was suggested as LogOnAs) De...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/4907/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F4907%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F4907%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/4907/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/4907/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/4907/files
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests366 (366)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
Ilya (iSazonov)https://github.com/iSazonov
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
joandrsn:get-service-usernamehttps://github.com/joandrsn/PowerShell/tree/get-service-username
Conversation 76 https://github.com/PowerShell/PowerShell/pull/4907
Commits 21 https://github.com/PowerShell/PowerShell/pull/4907/commits
Checks 0 https://github.com/PowerShell/PowerShell/pull/4907/checks
Files changed https://github.com/PowerShell/PowerShell/pull/4907/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/4907/files
Added BinPath, Description, UserName and Delayed Auto Start to Get-Service https://github.com/PowerShell/PowerShell/pull/4907/files#top
Show all changes 21 commits https://github.com/PowerShell/PowerShell/pull/4907/files
ea4e2d2 [Feature]Added BinPath, Description, UserName and Delayed Auto Start … joandrsn Sep 23, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/ea4e2d27987ccc3cc5cea0d26c598abcfc2001a0
d3f64b1 [Feature]StartupType added with support for automatic delayed start o… joandrsn Sep 24, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/d3f64b196686e247b2069393049e3159ef9f5e88
58b1303 [Feature]StartupType reverted back from a public property joandrsn Sep 25, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/58b13038da9bf5bc5eb279b49ac924493bd7f979
fa97af5 [Feature]Corrected error written if delayed auto start boolean could … joandrsn Sep 25, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/fa97af5f1df6d3f56a3be5641bbedccd50c252d9
29ce383 [Feature]Corrected the exception message to be thrown where it was ac… joandrsn Sep 25, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/29ce3836db173f15067fcfd963f01a669fa324d2
b758abe [Feature]Correct tests for linux and osx. joandrsn Sep 25, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/b758abef25790b91f89038769a6c59dfe8a975e6
5101150 [Feature]Freed the memory after using pointers. Corrected documentati… joandrsn Sep 30, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/5101150ca85b37d2b6713cd7b5f991f201c10bbf
e6a56f9 [Feature]Use the corrrect dereferencing method when freeing pointers joandrsn Sep 30, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/e6a56f980cb1730b4644fb6818b62de1bdcd94cd
175897a [Feature]Changed to AllocCoTaskMem when reserving memory joandrsn Oct 1, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/175897aa3fbc45ae3294e2c5f0ce46fda8b5b075
b4b06da [Feature]Corrected formatting joandrsn Oct 2, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/b4b06da4e0879c1e7e550bf15043693ca2101f76
51930c9 [Feature]Added spaces before IsWindow check joandrsn Oct 2, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/51930c9384a1ad0641b555818622f6cf5836045c
17922cf [Feature]Corrected indention in test joandrsn Oct 2, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/17922cf79c76065d93345a0794d738150670ee9e
1eef742 [Feature]Renamed variable names for readability and consistency. joandrsn Oct 2, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/1eef7421ed7820af851159339eb3bcb2b8dcdeb7
d3c818c [Feature]Moved FreeCoTaskMem to finally block on New-Service and Set-… joandrsn Oct 3, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/d3c818cfc5a6f91e912f755faa418058473b6630
a8120ea [Feature]Remove FreeCoTaskMem(buffer) as the variable was renamed and… joandrsn Oct 3, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/a8120ea0037ae1b60553133931d166bb1af3938f
9e4bf0c [Feature]Made generic function to query for service information. joandrsn Oct 18, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/9e4bf0ce7928288dca919a632b4756a4d22cded1
de135ba Merged changes made to master since original pull request joandrsn Oct 18, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/de135ba52ceaf4d99eb05c2999cd1e97b0d8096b
9e2ddb3 [Feature]Corrected indention joandrsn Oct 18, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/9e2ddb33c2e8cff2ec97ebc59825ed47f85506dd
755e192 [Feature]Corrected error message to refence the new name joandrsn Oct 19, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/755e19239c1b0f2f6b3ec2fed0396a9b73c05d5f
791cfea Merge branch 'master' of https://github.com/PowerShell/PowerShell int… joandrsn Oct 20, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/791cfeaf03a6ce8f65e27b01b3cd99ae754db979
a9a2b32 [Feature]Corrected missed merge errors and made a InvalidValue Servic… joandrsn Oct 20, 2017 https://github.com/PowerShell/PowerShell/pull/4907/commits/a9a2b325a882f69b041db2252880662ce0f6e14a
Clear filters https://github.com/PowerShell/PowerShell/pull/4907/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/4907/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/4907/files
Service.cs https://github.com/PowerShell/PowerShell/pull/4907/files#diff-042692a5a997e7343b8054779ae2a9cd4a0e697b6270951b8e6fa272ebc64b9e
ServiceResources.resx https://github.com/PowerShell/PowerShell/pull/4907/files#diff-a288be6199178df0ce3780f8a5641fa07dd0750497ec9c3b58fa5785e4d0fb7a
PInvokeDllNames.cs https://github.com/PowerShell/PowerShell/pull/4907/files#diff-05fd66f7af1497cdc2321e060e8c84419066c20d5223f68d632ae1725249cb94
Set-Service.Tests.ps1 https://github.com/PowerShell/PowerShell/pull/4907/files#diff-2513576144edc63cfaee543a9ee92982c27e5b2ebfdff97df1e812a7070cefa7
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/4907/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.