{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/webcommander/issues/74","labels_url":"https://api.github.com/repos/vmware/webcommander/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/vmware/webcommander/issues/74/comments","events_url":"https://api.github.com/repos/vmware/webcommander/issues/74/events","html_url":"https://github.com/vmware/webcommander/issues/74","id":97910014,"number":74,"title":"Forcing 64bit powershell ?","user":{"login":"steveyeomans","id":13554094,"avatar_url":"https://avatars.githubusercontent.com/u/13554094?v=3","gravatar_id":"","url":"https://api.github.com/users/steveyeomans","html_url":"https://github.com/steveyeomans","followers_url":"https://api.github.com/users/steveyeomans/followers","following_url":"https://api.github.com/users/steveyeomans/following{/other_user}","gists_url":"https://api.github.com/users/steveyeomans/gists{/gist_id}","starred_url":"https://api.github.com/users/steveyeomans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveyeomans/subscriptions","organizations_url":"https://api.github.com/users/steveyeomans/orgs","repos_url":"https://api.github.com/users/steveyeomans/repos","events_url":"https://api.github.com/users/steveyeomans/events{/privacy}","received_events_url":"https://api.github.com/users/steveyeomans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-29T10:43:56Z","updated_at":"2015-07-30T16:25:11Z","closed_at":null,"body":"Hi.\r\n\r\nHaving a issue trying to import and run a module that required 64bit powershell.\r\n\r\nError is: import-module : The current processor architecture is: X86.  The module requires the following architecture: Amd64.\r\n\r\nAny ideas how to force webcommander to use the 64bit powershell.exe \r\n\r\nCheers\r\n\r\nSteve"},"comment":{"url":"https://api.github.com/repos/vmware/webcommander/issues/comments/126392213","html_url":"https://github.com/vmware/webcommander/issues/74#issuecomment-126392213","issue_url":"https://api.github.com/repos/vmware/webcommander/issues/74","id":126392213,"user":{"login":"steveyeomans","id":13554094,"avatar_url":"https://avatars.githubusercontent.com/u/13554094?v=3","gravatar_id":"","url":"https://api.github.com/users/steveyeomans","html_url":"https://github.com/steveyeomans","followers_url":"https://api.github.com/users/steveyeomans/followers","following_url":"https://api.github.com/users/steveyeomans/following{/other_user}","gists_url":"https://api.github.com/users/steveyeomans/gists{/gist_id}","starred_url":"https://api.github.com/users/steveyeomans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveyeomans/subscriptions","organizations_url":"https://api.github.com/users/steveyeomans/orgs","repos_url":"https://api.github.com/users/steveyeomans/repos","events_url":"https://api.github.com/users/steveyeomans/events{/privacy}","received_events_url":"https://api.github.com/users/steveyeomans/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T16:25:11Z","updated_at":"2015-07-30T16:25:11Z","body":"Hi Jerry\r\n\r\nThe extra time will probably be because of the extra time to open a new powershell thread.\r\n\r\nI only use the change for scripts that use 64 bit modules and keep everything else at 32 bit\r\n\r\nSo for example I have one script that needs 64 bit and call it as such – tintrirepl.ps1 calls the below tintrirepl1.ps1:\r\n\r\n## Author: Jerry Liu, liuj@vmware.com\r\n\r\nforeach ($paramKey in $psboundparameters.keys) {\r\n                $oldValue = $psboundparameters.item($paramKey)\r\n                $newValue = [system.web.httputility]::urldecode(\"$oldValue\")\r\n                set-variable -name $paramKey -value $newValue\r\n}\r\n\r\n. .\\objects.ps1\r\n\r\n$results = & c:\\windows\\sysnative\\windowsPowershell\\V1.0\\PowerShell.exe \"C:\\WebCommander\\powershell\\vSphere\\tintrirepl1.ps1\"\r\n\r\n[array]$replicationVMs=@()\r\nforeach ($result in $results) {\r\n                $replicationVMs += $result\r\n}\r\n\r\nwriteStdout $replicationVMs\r\n\r\n\r\n\r\nFrom: Jerry Liu [mailto:notifications@github.com]\r\nSent: 30 July 2015 17:20\r\nTo: vmware/webcommander\r\nCc: Yeomans, Steve\r\nSubject: Re: [webcommander] Forcing 64bit powershell ? (#74)\r\n\r\n\r\nYou are right. \"Sysnative\" is the correct path to use. And it does launch the x64 powershell.\r\n\r\nI also notice that this change could make the command performance worse. For instance, the showHistory command took about 9 seconds before the change, but now it takes 13 seconds.\r\nIf you have a clue about this, please let me know.\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/vmware/webcommander/issues/74#issuecomment-126388773>.\r\n\r\nThis email (including any attachment) may contain confidential and/ or legally privileged information. If you are not the intended recipient, please notify us on +44(0)1202 292333 ext. 30033 and destroy it and any copies. Unauthorised access, use, disclosure, storage or copying of this email is not permitted and, unless you are the intended recipient, you are not entitled to rely on it in any way. Any opinions expressed in this email are those of the individual sending it and not necessarily those of LV=.\r\n\r\nThis email is believed to be free of any virus or other defect. However, communication by email cannot be guaranteed to be free from defect, error free or secure. If you choose to communicate with us by email you must realise that there can be no guarantee of privacy and you should carry out your own security checks before opening any email or attachment. LV= accepts no liability for any loss or damage which may be caused by any lack of privacy, software viruses or other defect.\r\n\r\nLV= reserves the right to monitor and inspect any email (including any attachment) sent to and/or from LV= for reasons of security and for monitoring internal compliance with our office policies. LV= may use email monitoring or blocking software at its discretion. You are responsible for ensuring that any email you send is appropriate and within the bounds of the law.\r\n\r\nLV= and Liverpool Victoria are trade marks of Liverpool Victoria Friendly Society Limited and LV= and Liverpool Victoria are trading styles of the Liverpool Victoria group of companies. The registered office address for all LV= companies is County Gates, Bournemouth, BH1 2NF. Information about the LV= group of companies can be found via this link www.lv.com/legal/lvcompanies<http://www.lv.com/legal/lvcompanies/>\r\n"}}