Skip to content

Restart-Computer and Stop-Computer should take custom message like shutdown.exe #4857

Open

Description

@jongross4

When using stop-computer or restart-computer, one should be able to log a reason code and custom message similar to the way that shutdown.exe with /d P:0:1 and /c "Custom Message". This would allow you to stay in powershell without needing to call out to win32 executable. See similar concern:
https://stackoverflow.com/questions/15656106/restarting-pcs-and-writing-to-the-event-log-with-a-custom-message

Activity

  1. added
    WG-Cmdlets
    Issue-Enhancement
    on Sep 18, 2017
  2. added
    Up-for-Grabs
    on Sep 20, 2017
  3. added
    Hacktoberfest
    on Sep 30, 2017
  4. iamraghavs commented on Oct 5, 2017

    @iamraghavs
    Contributor

    Jon Gross (@jongross4) can this issue be tackled by a newbie like me? or would this require some experience with the codebase?

  5. lukepayne commented on Oct 20, 2018

    @lukepayne

    Hey PowerShellTeam Steve Lee (@SteveL-MSFT) can I take this one on?

  6. vexx32 commented on Oct 20, 2018

    @vexx32
    Collaborator

    It's up for grabs and still here since last year. Go for it! 😆

  7. lukepayne commented on Oct 23, 2018

    @lukepayne

    Cool, I should be able to submit a PR soon 😄

  8. SteveL-MSFT commented on Oct 23, 2018

    @SteveL-MSFT
    Member

    Luke (@lukepayne) consider it yours! thanks!

  9. lukepayne commented on Oct 24, 2018

    @lukepayne

    I've made a PR with #8112 I'm just waiting to see how the checks turn out.

  10. bmkaiser commented on Feb 2, 2020

    @bmkaiser

    Luke (@lukepayne) you're doing good work here! I hope you're able to resume your efforts soon. I was looking for this feature today and was happy to see that someone had picked up development for this issue

  11. kvprasoon commented on Oct 28, 2020

    @kvprasoon
    Contributor
  12. lukepayne commented on Nov 2, 2020

    @lukepayne

    PRASOON KARUNAN V (@kvprasoon) I haven't picked it up again yet

  13. doctordns commented on May 4, 2022

    @doctordns
    Collaborator

    just wondering if anyone is still interested in this??

  14. bmkaiser commented on May 5, 2022

    @bmkaiser

    just wondering if anyone is still interested in this??

    I know that I still am! But it's not a deal breaker to not have it

  15. doctordns commented on May 6, 2022

    @doctordns
    Collaborator

    I like the idea (but am in no way competent enough to implement the change). If there are community members who want to pick this up and finish it, great. If not, then it might be better to close it until such time as there is community effort available to implement this.

  16. kvprasoon commented on May 7, 2022

    @kvprasoon
    Contributor

    I would like to pick this up. May be 1 or 2 weeks later.

  17. doctordns commented on May 7, 2022

    @doctordns
    Collaborator

    Cool - thanks very much for stepping up PRASOON KARUNAN V (@kvprasoon)!

    Let us know how it goes...

  18. ghost added
    In-PR
    on Jun 4, 2022
  19. Jibun-no-Kage commented on Jun 10, 2022

    @Jibun-no-Kage

    So when or where can an average joe get to use this update? Or do I have to wait for some major release of PS?

  20. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  21. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  22. added
    Resolution-No Activity
    on Nov 16, 2023
  23. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  24. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

  25. added
    KeepOpen
    and removed
    Resolution-No Activity
    on Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestIn-PRIssue-EnhancementKeepOpenUp-for-GrabsWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions