Skip to content

2.0.0-insiders-834: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made #1571

Closed
@skest3qc

Description

@skest3qc

Hi,
i just tried this piece of code:
"out " | Set-Clipboard
and got this error:
Set-Clipboard : Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.

It works in Windows Powershell 5.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions