{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/FSharp.Management/issues/65","repository_url":"https://api.github.com/repos/fsprojects/FSharp.Management","labels_url":"https://api.github.com/repos/fsprojects/FSharp.Management/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/FSharp.Management/issues/65/comments","events_url":"https://api.github.com/repos/fsprojects/FSharp.Management/issues/65/events","html_url":"https://github.com/fsprojects/FSharp.Management/issues/65","id":119575404,"number":65,"title":"PowerShell Provider: Invoke-Command executes but no error or results","user":{"login":"Firgeis","id":6520188,"avatar_url":"https://avatars.githubusercontent.com/u/6520188?v=3","gravatar_id":"","url":"https://api.github.com/users/Firgeis","html_url":"https://github.com/Firgeis","followers_url":"https://api.github.com/users/Firgeis/followers","following_url":"https://api.github.com/users/Firgeis/following{/other_user}","gists_url":"https://api.github.com/users/Firgeis/gists{/gist_id}","starred_url":"https://api.github.com/users/Firgeis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firgeis/subscriptions","organizations_url":"https://api.github.com/users/Firgeis/orgs","repos_url":"https://api.github.com/users/Firgeis/repos","events_url":"https://api.github.com/users/Firgeis/events{/privacy}","received_events_url":"https://api.github.com/users/Firgeis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fsprojects/FSharp.Management/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/fsprojects/FSharp.Management/labels/PowerShell","name":"PowerShell","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T20:34:09Z","updated_at":"2016-04-08T17:09:29Z","closed_at":"2016-04-08T17:09:29Z","body":"I'm testing the type provider, even though the target machine registers a login and powershell commands I get no errors or return value (result is None). Removed User/Pass/Machine name but checked the values and seem to be ok\r\n\r\n```F#\r\n#r \"System.Management.Automation.dll\"\r\n#r \"FSharp.Management.PowerShell.dll\"\r\n\r\nopen FSharp.Management\r\n\r\ntype Ps = PowerShellProvider<\"Microsoft.PowerShell.Commands;Microsoft.PowerShell.Core\">\r\n\r\nlet username = \"\"\"xxx\"\"\"\r\nlet (password:string) = \"\"\"xxx\"\"\"\r\nlet passlistopt = Ps.``ConvertTo-SecureString``(string = password, asPlainText=true, force=true)\r\nlet pass = passlistopt.Value.Head\r\n\r\n\r\nlet pscred = new System.Management.Automation.PSCredential(username, pass)\r\n\r\nlet host = [|\"myMachine.myDomain.com\"|]\r\nlet script = \"\"\"{Get-Culture}\"\"\"\r\nlet scriptBlock = System.Management.Automation.ScriptBlock.Create(script)\r\n\r\nlet result = Ps.``Invoke-Command``(computerName=host,scriptBlock=scriptBlock, credential=pscred)\r\n```"},"comment":{"url":"https://api.github.com/repos/fsprojects/FSharp.Management/issues/comments/207520162","html_url":"https://github.com/fsprojects/FSharp.Management/issues/65#issuecomment-207520162","issue_url":"https://api.github.com/repos/fsprojects/FSharp.Management/issues/65","id":207520162,"user":{"login":"sergey-tihon","id":1197905,"avatar_url":"https://avatars.githubusercontent.com/u/1197905?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-tihon","html_url":"https://github.com/sergey-tihon","followers_url":"https://api.github.com/users/sergey-tihon/followers","following_url":"https://api.github.com/users/sergey-tihon/following{/other_user}","gists_url":"https://api.github.com/users/sergey-tihon/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-tihon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-tihon/subscriptions","organizations_url":"https://api.github.com/users/sergey-tihon/orgs","repos_url":"https://api.github.com/users/sergey-tihon/repos","events_url":"https://api.github.com/users/sergey-tihon/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-tihon/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T17:09:29Z","updated_at":"2016-04-08T17:09:29Z","body":"Should be fixed in [v0.4.0](https://www.nuget.org/packages/FSharp.Management/0.4.0)"}}