News for hackers. Stuff that matters.
Re:My Microsoft Experience (2013) by tacticus on Monday May 25, 2015 @03:02AM (#9598946)
Having used powershell and winrm recently. It doesn't matter if it's a better idea. it's a piece of crap with horrible verbosity issues and so many stupid corner cases it just isn't funny.
Re:My Microsoft Experience (2013) by chris_wot on Monday May 25, 2015 @03:20AM (#9598993)
It seems ok to me, but I don't have extensive experience in it. What specifically do you find problematic? Genuinely interested.
Re:My Microsoft Experience (2013) by pjc50 on Monday May 25, 2015 @10:32AM (#9600165)
Powershell's object pipeline is a great idea. Its interface with the text world trips over at the last hurdle, because it truncates lines at terminal width even if redirected into a file.

I have in my notes:

<pre>Select-String " 23:56.00" -Path file.txt | out-string -width 10000</pre>

better (no headers):

<pre>Select-String " 23:56.00" -Path file.txt | ForEach-Object { Write-Output $_.Line } | Out-File t.txt</pre>

I eventually installed a proper grep and gave up trying to use Select-String.

The hoops you have to jump through to write and run script files are absurd as well, compared to UNIX where you just need to set the executable bit.

Re:My Microsoft Experience (2013) by chris_wot on Monday May 25, 2015 @11:53AM (#9600482)
Hang on... Are those commands working? Out-string -width 10000 should work!

I guess PowerShell has a different take on things.