Re: [PHP] PHP and Powershell

2013-07-22 Thread Serge Fonville
the sender by return e-mail. *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 12:16 PM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell Thank you for your clarification. Have you considered placing the whole

RE: [PHP] PHP and Powershell

2013-07-22 Thread Alan Loos
@lists.php.net Subject: Re: [PHP] PHP and Powershell Hi, Thanks for your change. I understand what has happend, from MSDN forums http://social.technet.microsoft.com/Forums/windowsserver/en-US/4b841530-9d8c-4d09-a77c-b89c6e0bafab/how-do-i-capture-data-from-invokecommand http://technet.microsoft.com/en-us

Re: [PHP] PHP and Powershell

2013-07-19 Thread Serge Fonville
Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object to get only certain object properties. To better answer your question: First, why do you specify ComputerName as 127.0.0.1 if the credential is already

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
[mailto:serge.fonvi...@gmail.com] Sent: Friday, July 19, 2013 3:05 AM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object

Re: [PHP] PHP and Powershell

2013-07-19 Thread Serge Fonville
have received this e-mail in error, please immediately notify the sender by return e-mail. ** ** *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 3:05 AM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell How have you determined that invoke-command requires -computername? Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https

Re: [PHP] PHP and Powershell

2013-07-19 Thread Serge Fonville
by return e-mail. ** ** *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 11:13 AM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell ** ** How have you determined that invoke-command requires -computername

Re: [PHP] PHP and Powershell

2013-07-19 Thread Tedd Sperling
To all: Sorry for top posting and sorry for sounding like the list-police, but you need to trim the excess from your post. Hitting reply without considering that other have to read through a bunch of old add-on email is not good. So, please just trim your post to what is important. Cheers,

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
:16 PM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell Thank you for your clarification. Have you considered placing the whole powershell -command parameter in a .ps1 script and executing that instead? The benefit would be that it is easier to read and test

[PHP] PHP and Powershell

2013-07-18 Thread Alan Loos
Good morning everyone, First time posting in here, although I've been listening in for a few weeks now. So this one has got me stumped, I am fairly new to PHP but I cannot seem to Google through this one. I cannot figure out how to 'exclude' PSComputerName and RunspaceId, which is ultimately