{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1761","repository_url":"https://api.github.com/repos/PowerShell/PowerShell","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1761/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1761/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1761/events","html_url":"https://github.com/PowerShell/PowerShell/issues/1761","id":170945342,"number":1761,"title":"Hashtable passed to native command should not require quotes","user":{"login":"SteveL-MSFT","id":11859881,"avatar_url":"https://avatars.githubusercontent.com/u/11859881?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveL-MSFT","html_url":"https://github.com/SteveL-MSFT","followers_url":"https://api.github.com/users/SteveL-MSFT/followers","following_url":"https://api.github.com/users/SteveL-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/SteveL-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveL-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveL-MSFT/subscriptions","organizations_url":"https://api.github.com/users/SteveL-MSFT/orgs","repos_url":"https://api.github.com/users/SteveL-MSFT/repos","events_url":"https://api.github.com/users/SteveL-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/SteveL-MSFT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-12T19:45:44Z","updated_at":"2016-09-29T20:23:20Z","closed_at":null,"body":"Jason Shirk:\r\nSome native commands like winrm use PowerShell hashtable syntax to pass configuration options, e.g.\r\n\r\n \r\n\r\nwinrm set winrm/config/client/auth @{Basic=\"true\"}\r\n\r\n \r\n\r\nIn this case, the PowerShell really passes\r\n\r\n \r\n\r\nwinrm set winrm/config/client/auth System.Colllections.Hashtable\r\n\r\n \r\n\r\nIf you add quotes around the hashtable, or use --%, the correct comand line is passed.\r\n\r\nIn 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."},"comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/comments/250580376","html_url":"https://github.com/PowerShell/PowerShell/issues/1761#issuecomment-250580376","issue_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1761","id":250580376,"user":{"login":"SteveL-MSFT","id":11859881,"avatar_url":"https://avatars.githubusercontent.com/u/11859881?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveL-MSFT","html_url":"https://github.com/SteveL-MSFT","followers_url":"https://api.github.com/users/SteveL-MSFT/followers","following_url":"https://api.github.com/users/SteveL-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/SteveL-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveL-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveL-MSFT/subscriptions","organizations_url":"https://api.github.com/users/SteveL-MSFT/orgs","repos_url":"https://api.github.com/users/SteveL-MSFT/repos","events_url":"https://api.github.com/users/SteveL-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/SteveL-MSFT/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T20:23:20Z","updated_at":"2016-09-29T20:23:20Z","body":"TFS:7059653"}}
{"actor":{"display_login":"SteveL-MSFT"}}