{"action":"created","issue":{"url":"https://api.github.com/repos/bitsofinfo/powershell-command-executor/issues/5","repository_url":"https://api.github.com/repos/bitsofinfo/powershell-command-executor","labels_url":"https://api.github.com/repos/bitsofinfo/powershell-command-executor/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bitsofinfo/powershell-command-executor/issues/5/comments","events_url":"https://api.github.com/repos/bitsofinfo/powershell-command-executor/issues/5/events","html_url":"https://github.com/bitsofinfo/powershell-command-executor/issues/5","id":189980073,"number":5,"title":"Issues with Powershell commands issued using Statefull Command Proxy Windows 10","user":{"login":"OFSTalis","id":23456535,"avatar_url":"https://avatars.githubusercontent.com/u/23456535?v=3","gravatar_id":"","url":"https://api.github.com/users/OFSTalis","html_url":"https://github.com/OFSTalis","followers_url":"https://api.github.com/users/OFSTalis/followers","following_url":"https://api.github.com/users/OFSTalis/following{/other_user}","gists_url":"https://api.github.com/users/OFSTalis/gists{/gist_id}","starred_url":"https://api.github.com/users/OFSTalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OFSTalis/subscriptions","organizations_url":"https://api.github.com/users/OFSTalis/orgs","repos_url":"https://api.github.com/users/OFSTalis/repos","events_url":"https://api.github.com/users/OFSTalis/events{/privacy}","received_events_url":"https://api.github.com/users/OFSTalis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T08:54:43Z","updated_at":"2016-11-18T00:53:48Z","closed_at":null,"body":"\r\nNode.js version: v4.2.6\r\nPlatform: Windows 64 bit\r\nSubsystem: Windows 10 Pro\r\n\r\nHello, I was wondering if you may have an insight into my problem. I have been working on automated testing using Node.js on a Windows 7 machine which issues commands to a virtual machine using Powershell - this works as expected no problems. However, I have now upgraded to Windows 10 (no option to down grade again) and everything works fine except for Powershell commands. I can run commands by manually opening a powershell window, but commands contained within a script using the command proxy do not seem to work. The number of clients just seems to increase and they are never released (made available). I have included below the output from one of my scripts.\r\n\r\nI can find no additional information in any windows logs.\r\n\r\nAny help would be greatly appreciated\r\n\r\nRegards\r\n\r\nTalis\r\n\r\nUsing the selenium server at http://localhost:4444/wd/hub\r\n [launcher] Running 1 instances of WebDriver\r\n Started\r\n INFO PSCommandService Executing:\r\n Invoke-eXimiusTestAction -DatabaseName 'QA_Product_56_587_DATA' -DatabaseServer 'BEMECHE1SQL03\\SQL2012' -ServiceName 'B-Misc' -MethodName 'BackupRestoreTable' -Parameters '{\"BackupRestoreAction\":\"B\",\"Table\":\"price\",\"DeleteTableContent\":\"False\"}'\r\n\r\nINFO Pool dispense() clients=1 available=0\r\n INFO StatefulProcessCommandProxy create new process: C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\r\n INFO ProcessProxy[null] Spawning process: C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\r\n INFO ProcessProxy[null] Process: C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe PID: 21752\r\n INFO PSCommandService Executing:\r\n Invoke-eXimiusTestAction -DatabaseName 'QA_Product_56_587_DATA' -DatabaseServer 'BEMECHE1SQL03\\SQL2012' -ServiceName 'B-Misc' -MethodName 'BackupRestoreTable' -Parameters '{\"BackupRestoreAction\":\"B\",\"Table\":\"systemparameter\",\"DeleteTableContent\":\"False\"}'\r\n\r\nINFO Pool dispense() clients=2 available=0\r\n INFO PSCommandService Executing:\r\n Invoke-eXimiusTestAction -DatabaseName 'QA_Product_56_587_DATA' -DatabaseServer 'BEMECHE1SQL03\\SQL2012' -ServiceName 'B-Misc' -MethodName 'ExecuteSQL' -Parameters '{\"Query\":\"update Price set PriceDateTime = ''2016-02-25 00:00:00.000'', PriceAmount_Am = ''6.500000'' where ObjID = ''29501CBB-FBC6-4F71-B244-4E84E54756DB''\",\"QueryHash\":\"2016-11-14T15:31:48.664Z\"}'\r\n\r\nINFO Pool dispense() clients=3 available=0\r\n INFO PSCommandService Executing:\r\n Invoke-eXimiusTestAction -DatabaseName 'QA_Product_56_587_DATA' -DatabaseServer 'BEMECHE1SQL03\\SQL2012' -ServiceName 'B-Misc' -MethodName 'ExecuteSQL' -Parameters '{\"Query\":\"update Price set PriceDateTime = ''2016-02-25 00:00:00.000'', PricePercentage = ''100.000000000'' where ObjID = ''9FAA78E6-06B5-4EE5-B42F-FD49BC971AEF''\",\"QueryHash\":\"2016-11-14T15:31:48.665Z\"}'\r\n\r\nINFO Pool dispense() clients=4 available=0\r\n INFO PSCommandService Executing:\r\n Invoke-eXimiusTestAction -DatabaseName 'QA_Product_56_587_DATA' -DatabaseServer 'BEMECHE1SQL03\\SQL2012' -ServiceName 'B-Misc' -MethodName 'SetSystemParameter' -Parameters '{\"ParameterName\":\"PortfolioBalanceDate\",\"ParameterValue\":\"2016-02-25 00:00:00\",\"TenantAware\":\"False\"}'\r\n\r\nINFO Pool dispense() clients=5 available=0\r\n\r\n\r\nAfter this, the script hangs until the time out is reached."},"comment":{"url":"https://api.github.com/repos/bitsofinfo/powershell-command-executor/issues/comments/261417574","html_url":"https://github.com/bitsofinfo/powershell-command-executor/issues/5#issuecomment-261417574","issue_url":"https://api.github.com/repos/bitsofinfo/powershell-command-executor/issues/5","id":261417574,"user":{"login":"bitsofinfo","id":1743646,"avatar_url":"https://avatars.githubusercontent.com/u/1743646?v=3","gravatar_id":"","url":"https://api.github.com/users/bitsofinfo","html_url":"https://github.com/bitsofinfo","followers_url":"https://api.github.com/users/bitsofinfo/followers","following_url":"https://api.github.com/users/bitsofinfo/following{/other_user}","gists_url":"https://api.github.com/users/bitsofinfo/gists{/gist_id}","starred_url":"https://api.github.com/users/bitsofinfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitsofinfo/subscriptions","organizations_url":"https://api.github.com/users/bitsofinfo/orgs","repos_url":"https://api.github.com/users/bitsofinfo/repos","events_url":"https://api.github.com/users/bitsofinfo/events{/privacy}","received_events_url":"https://api.github.com/users/bitsofinfo/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T00:53:48Z","updated_at":"2016-11-18T00:53:48Z","body":"I don't see any related errors here. My guess is that there must be a change in the way Windows 10 is handling the powershell commands you are invoking or the initialization commands you run in each shell as it it is spawned. If they are hanging then they are waiting on completion of the commands you are executing. I'd try manually executing everything exactly the same as you have everything configured, including any initialization commands."}}
{"actor":{"display_login":"bitsofinfo"}}