Skip to content

Get-/Set-Clipboard were added back for PowerShell 7Documentation Issue #5056

@sdwheeler

Description

@sdwheeler

Documentation Issue

Get-/Set-Clipboard were added back for PowerShell 7 but there are some differences.

Only text. Set-ClipBoard -AsHtml doesn't exist as a switch. Get-ClipBoard -Format and -TextFormatType have been removed. On Linux, it requires the xclip utility to be in the PATH. For macOS, it just works.

The cmdlets don't depend on WinForms, it still requires the Win32 api which I believe is not on Win-ARM.

Cmdlets will be there on all OS's but may not be supported.

Context of the issue

  • URL to the article (Docs or GitHub URL):

  • Issue affects the following content (check all that apply):

    Cmdlet reference & about_ topics

    • Version 7 content
    • Version 6 content
    • Version 5.1 content

    Conceptual articles

    • Fundamental conceptual articles
    • Script sample articles
    • DSC articles
    • Gallery articles
    • JEA articles
    • WMF articles
    • SDK articles
  • Is the issue specific to a platform (Y/N - Win/macOS/Linux):

Detailed description of the issue

Metadata

Metadata

Assignees

Labels

area-utilityArea - Microsoft.PowerShell.Utility module

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions