-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
Resolution-By DesignThe reported behavior is by design.The reported behavior is by design.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Milestone
Description
Jason Shirk:
Some native commands like winrm use PowerShell hashtable syntax to pass configuration options, e.g.
winrm set winrm/config/client/auth @{Basic="true"}
In this case, the PowerShell really passes
winrm set winrm/config/client/auth System.Colllections.Hashtable
If you add quotes around the hashtable, or use --%, the correct comand line is passed.
In this case, we can add a note property to the hashtable instance so we can get back the original command line, similar to what we do for other literals.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Resolution-By DesignThe reported behavior is by design.The reported behavior is by design.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime