GPO support for HistorySaveStyle & set default HistorySaveStyle to SaveNothing

Open
#1,907 12 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, powershell
Domain
cli, security

Research direction

Start by tracing how HistorySaveStyle is configured and how PowerShell group policy templates are handled in PSReadLine. Define the policy override and the default SaveNothing behavior, then verify that history is not written unless saving is deliberately enabled and that the policy takes precedence.

Written by the indexing model from the issue text.

Description

Issue-Enhancement Not-Planned

Hi,

it would be great to have group policy support for HistorySaveStyle.
Saving the History to file is an extremly dangerous feature.

Regularly you will find credentials (passwords or authentication tokens) in the history file.

It would be great to have a group policy template to override HistorySaveStyle.

And please, please change the default HistorySaveStyle to SaveNothing
It should be a deliberate decision to enable saving.

greetings
Carsten

Dominant language
C#
Stars
4.4k
Forks
341
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/PSReadLine

All issues in PowerShell/PSReadLine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.