Skip to content

How do you clear the clipboard? #7111

@rhscjohn-dev

Description

@rhscjohn-dev

In Windows PowerShell 5.x you can clear the clipboard by Set-Clipboard -Value $null. In PowerShell 7.1.0., I have tried

  1. Set-Clipboard -Value $null
  2. Set-Clipboard -Value ''
  3. Set-Clipboard -Value ""

None of the above cleared the contents of the clipboard. What is the proper way to clear the clipboard.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

area-managementArea - Microsoft.PowerShell.Management moduleissue-questionIssue - support questionresolution-wont-fixStatus - closed as won't fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions