Skip to content

Powershell syntax error #3115

Description

@DarkApollo

Describe the bug

The 'Run From Machine' presented powershell script is given as a single line which will cause syntax errors if copied from the box directly.
Using the Copy To Clipboard copies the script correctly.

This issue is only present for the script when copying directly from the script box and not from the copy-to-clipboard macro.

To Reproduce

Steps to reproduce the behavior:
Run From Machine
Copy script directly from text box
Paste into Powershell ISE
@" and "@ appear on the same line which will cause a syntax error

Expected behavior

Presented script should resemble correct syntax as it does when using copy-to-clipboard

Screenshots

Copy To Clipboard
image

Copy from Script Box
image

Machine version (please complete the following information):

Linux 2.0.0

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions