{"action":"created","issue":{"url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/60","labels_url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/60/comments","events_url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/60/events","html_url":"https://github.com/packer-community/packer-windows-plugins/issues/60","id":83403517,"number":60,"title":"Elevated Powershell scripts output progress bar as XML object","user":{"login":"gildas","id":56485,"avatar_url":"https://avatars.githubusercontent.com/u/56485?v=3","gravatar_id":"","url":"https://api.github.com/users/gildas","html_url":"https://github.com/gildas","followers_url":"https://api.github.com/users/gildas/followers","following_url":"https://api.github.com/users/gildas/following{/other_user}","gists_url":"https://api.github.com/users/gildas/gists{/gist_id}","starred_url":"https://api.github.com/users/gildas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gildas/subscriptions","organizations_url":"https://api.github.com/users/gildas/orgs","repos_url":"https://api.github.com/users/gildas/repos","events_url":"https://api.github.com/users/gildas/events{/privacy}","received_events_url":"https://api.github.com/users/gildas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T09:23:48Z","updated_at":"2015-06-18T14:10:39Z","closed_at":null,"body":"When running a powershell script in elevated mode, the output received by Packer contains the Progress object (System.Management.Automation.PSCustomObject) as an XML blob.\r\n\r\nExample of a script that install .Net 3.5 via the `Install-WindowsFeature` Cmdlet (that produces a typical progress indicator in your Powershell session usually). Here is the output as shown when running packer:\r\n```\r\n==> virtualbox-windows-iso: Provisioning with shell script: ./scripts/install-dotnet35.ps1\r\n    virtualbox-windows-iso: #< CLIXML\r\n    virtualbox-windows-iso: Script started at 2015-06-01 02:14:53\r\n    virtualbox-windows-iso: Installing .Net 3.5\r\n    virtualbox-windows-iso: <Objs Version=\"1.1.0.1\" xmlns=\"http://schemas.microsoft.com/powershell/2004/04\"><Obj S=\"progress\" RefId=\"0\"><TN RefId=\"0\"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N=\"\r\nSourceId\">1</I64><PR N=\"Record\"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S=\"progress\" RefId=\"1\"><TNRef RefId=\"0\" /><MS><I64 N=\"SourceId\">1</\r\nI64><PR N=\"Record\"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI>...\r\n```\r\nI cut the XML as it is quite huge.\r\n\r\nIMO, that XML should not be visible (at least) or process properly by showing some progress text + % value (that'd be the best).\r\n"},"comment":{"url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/comments/113168641","html_url":"https://github.com/packer-community/packer-windows-plugins/issues/60#issuecomment-113168641","issue_url":"https://api.github.com/repos/packer-community/packer-windows-plugins/issues/60","id":113168641,"user":{"login":"mefellows","id":53900,"avatar_url":"https://avatars.githubusercontent.com/u/53900?v=3","gravatar_id":"","url":"https://api.github.com/users/mefellows","html_url":"https://github.com/mefellows","followers_url":"https://api.github.com/users/mefellows/followers","following_url":"https://api.github.com/users/mefellows/following{/other_user}","gists_url":"https://api.github.com/users/mefellows/gists{/gist_id}","starred_url":"https://api.github.com/users/mefellows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mefellows/subscriptions","organizations_url":"https://api.github.com/users/mefellows/orgs","repos_url":"https://api.github.com/users/mefellows/repos","events_url":"https://api.github.com/users/mefellows/events{/privacy}","received_events_url":"https://api.github.com/users/mefellows/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T14:10:39Z","updated_at":"2015-06-18T14:10:39Z","body":"It's a good point, I'll mark this as an enhancement - I'm hoping its something trivial."}}