{"action":"closed","issue":{"url":"https://api.github.com/repos/mattifestation/PSReflect/issues/3","repository_url":"https://api.github.com/repos/mattifestation/PSReflect","labels_url":"https://api.github.com/repos/mattifestation/PSReflect/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mattifestation/PSReflect/issues/3/comments","events_url":"https://api.github.com/repos/mattifestation/PSReflect/issues/3/events","html_url":"https://github.com/mattifestation/PSReflect/issues/3","id":125414396,"number":3,"title":"psenum validatescript modification","user":{"login":"davidhowell-tx","id":8672912,"avatar_url":"https://avatars.githubusercontent.com/u/8672912?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhowell-tx","html_url":"https://github.com/davidhowell-tx","followers_url":"https://api.github.com/users/davidhowell-tx/followers","following_url":"https://api.github.com/users/davidhowell-tx/following{/other_user}","gists_url":"https://api.github.com/users/davidhowell-tx/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhowell-tx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhowell-tx/subscriptions","organizations_url":"https://api.github.com/users/davidhowell-tx/orgs","repos_url":"https://api.github.com/users/davidhowell-tx/repos","events_url":"https://api.github.com/users/davidhowell-tx/events{/privacy}","received_events_url":"https://api.github.com/users/davidhowell-tx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mattifestation","id":1781087,"avatar_url":"https://avatars.githubusercontent.com/u/1781087?v=3","gravatar_id":"","url":"https://api.github.com/users/mattifestation","html_url":"https://github.com/mattifestation","followers_url":"https://api.github.com/users/mattifestation/followers","following_url":"https://api.github.com/users/mattifestation/following{/other_user}","gists_url":"https://api.github.com/users/mattifestation/gists{/gist_id}","starred_url":"https://api.github.com/users/mattifestation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattifestation/subscriptions","organizations_url":"https://api.github.com/users/mattifestation/orgs","repos_url":"https://api.github.com/users/mattifestation/repos","events_url":"https://api.github.com/users/mattifestation/events{/privacy}","received_events_url":"https://api.github.com/users/mattifestation/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-07T15:24:33Z","updated_at":"2016-06-04T19:12:40Z","closed_at":"2016-06-04T19:12:39Z","body":"I was having some issues with Get-ProcessStrings from PowerShell Arsenla with PSReflect.\r\n\r\nThe error I'm receiving is within the Get-SystemInfo function when it attempts to build a structure using the $ProcessorType variable. Stepping through the code I find that $ProcessorType variable is empty.  After a little testing I found that it's due to the output of New-InMemoryModule paired with psenum's ValidateScript on the $Module variable\r\n\r\nFrom function psenum's $Module variable:\r\n> [ValidateScript({($_ -is [Reflection.Emit.ModuleBuilder]) -or ($_ -is [Reflection.Assembly])})]\r\n\r\nThis needs to be:\r\n> [ValidateScript({($_ -is [Reflection.Emit.ModuleBuilder]) -or ($_ -is [Reflection.Assembly]) -or ($_ -is [System.Reflection.RuntimeAssembly])})]\r\n\r\nObject type returned from New-InMemoryModule:\r\n> $Mod = New-InMemoryModule -ModuleName SysInfo\r\n> $Mod.GetType()\r\n> IsPublic IsSerial Name                                     BaseType\r\n> -------- -------- ----                                     --------\r\n> False    False    InternalAssemblyBuilder                  System.Reflection.RuntimeAssembly\r\n\r\n\r\nHost Information:\r\nI am running this on Windows 8.1 with PowerShell version 4\r\n\r\nThanks for all of your great work!"}}
{"actor":{"display_login":"mattifestation"}}