Skip to content

Feature Request: Convert SecureString to string #11067

@SteveL-MSFT

Description

@SteveL-MSFT

Summary of the new feature/enhancement

It's becoming more common for scripts to have a secret as a secure string, but needs to use it as a plain text string (like making a REST call). Anyone can search the web to find the APIs needed to convert the SecureString to plain text. It seems we should just make this a part of PowerShell so people aren't blindly copying and pasting script samples from websites.

Proposed technical implementation details (optional)

Proposal is to add -AsPlainText to ConvertFrom-SecureString cmdlet.

Metadata

Metadata

Assignees

Labels

Committee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Securitysecurity related areas such as JEA

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions