Skip to content

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestPotential candidate to participate in HacktoberfestIn-PRIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions