{"action":"opened","issue":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-powershell/issues/140","repository_url":"https://api.github.com/repos/puppetlabs/puppetlabs-powershell","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-powershell/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-powershell/issues/140/comments","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-powershell/issues/140/events","html_url":"https://github.com/puppetlabs/puppetlabs-powershell/issues/140","id":174746240,"number":140,"title":"Error when using with Windows 10 Pro with Anniversary Update","user":{"login":"jordigg","id":404331,"avatar_url":"https://avatars.githubusercontent.com/u/404331?v=3","gravatar_id":"","url":"https://api.github.com/users/jordigg","html_url":"https://github.com/jordigg","followers_url":"https://api.github.com/users/jordigg/followers","following_url":"https://api.github.com/users/jordigg/following{/other_user}","gists_url":"https://api.github.com/users/jordigg/gists{/gist_id}","starred_url":"https://api.github.com/users/jordigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordigg/subscriptions","organizations_url":"https://api.github.com/users/jordigg/orgs","repos_url":"https://api.github.com/users/jordigg/repos","events_url":"https://api.github.com/users/jordigg/events{/privacy}","received_events_url":"https://api.github.com/users/jordigg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-02T12:16:36Z","updated_at":"2016-09-02T12:16:36Z","closed_at":null,"body":"Got this error while trying the new version of the module on a Windows10 Pro with the new anniversary update. Tried later on another machine without that update and everything run ok.\r\n\r\nVersion 1.6.0 works, versions >2.x fail\r\n\r\nAny ideas?\r\n\r\n```\r\nDebug: 2016-09-02 11:58:15 +0100 C:\\Windows\\system32\\WindowsPowershell\\v1.0\\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -Command - is running as pid: 3532\r\nDebug: Waited 50 milliseconds...\r\nDebug: 2016-09-02 11:58:15 +0100 PIPE> At line:1 char:23\r\n\r\nDebug: 2016-09-02 11:58:15 +0100 PIPE> + function New-XmlResult\r\n\r\nDebug: 2016-09-02 11:58:15 +0100 PIPE> +                       ~\r\n\r\nDebug: 2016-09-02 11:58:15 +0100 PIPE> Missing function body in function declaration.\r\n\r\nDebug: 2016-09-02 11:58:15 +0100 PIPE>     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n\r\nDebug: 2016-09-02 11:58:15 +0100 PIPE>     + FullyQualifiedErrorId : MissingFunctionBody\r\n\r\nDebug: 2016-09-02 11:58:15 +0100 PIPE>\r\n\r\nDebug: Waited 50 milliseconds...\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   param(\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     [Parameter()]$exitcode,\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     [Parameter()]$output,\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     [Parameter()]$errormessage\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   )\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:1 char:35\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> + function Invoke-PowerShellUserCode\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +                                   ~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Missing function body in function declaration.\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + FullyQualifiedErrorId : MissingFunctionBody\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:9 char:11\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +     $Code,\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +           ~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Missing expression after ','.\r\n\r\nDebug: Waited 50 milliseconds...\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   # we make our own xml because ConvertTo-Xml makes hard to parse xml ruby side\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   # and we need to be sure\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   $xml = [xml]@\"\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> <ReturnResult>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   <Property Name='exitcode'>$($exitcode)</Property>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:9 char:10\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +     $Code,\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +          ~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Missing ')' in function parameter list.\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:1 char:1\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> + {\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> + ~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Missing closing '}' in statement block or type definition.\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + FullyQualifiedErrorId : MissingExpressionAfterToken\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: Wait object signaled\r\nDebug: Waited 150 total milliseconds.\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   <Property Name='errormessage'>$([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes([string]$error\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> message)))</Property>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   <Property\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Name='stdout'>$([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes([string]$output)))</Property>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> </ReturnResult>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> \"@\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>   $xml.OuterXml\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> IsPublic IsSerial Name                                     BaseType\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> -------- -------- ----                                     --------\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> True     True     String                                   System.Object\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> IsPublic IsSerial Name                                     BaseType\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> -------- -------- ----                                     --------\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> True     True     Int32                                    System.ValueType\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:1 char:16\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +     $EventName,\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +                ~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Missing expression after ','.\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + FullyQualifiedErrorId : MissingExpressionAfterToken\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:1 char:3\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +   )\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +   ~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Unexpected token ')' in expression or statement.\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + FullyQualifiedErrorId : UnexpectedToken\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Exception calling \"OpenExisting\" with \"1\" argument(s): \"Empty name is not legal.\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Parameter name: name\"\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:1 char:3\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +   $event = [System.Threading.EventWaitHandle]::OpenExisting($EventNam ...\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + FullyQualifiedErrorId : ArgumentException\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:1 char:6\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +   try\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> +      ~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> The Try statement is missing its statement block.\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + FullyQualifiedErrorId : MissingTryStatementBlock\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> At line:163 char:1\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> + }\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> + ~\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE> Unexpected token '}' in expression or statement.\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>     + FullyQualifiedErrorId : UnexpectedToken\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PIPE>\r\n\r\nDebug: 2016-09-02 11:58:16 +0100 PowerShell initialization complete for pid: 3532\r\nDebug: Waited 50 milliseconds...\r\nDebug: Waited 50 milliseconds...\r\nDebug: Waited 50 milliseconds...\r\nDebug: Waited 50 milliseconds...\r\n...\r\n```"}}
{"actor":{"display_login":"jordigg"}}