Gents,
i have a small invoke-command issue:
Invoke-Command-ComputerName $computername-ScriptBlock {Get-Content-Path c:\test.log|Select-String'Hello'|Select-Object-last1 }
if i run this command on the remote computer it returns the value, if i run this in a invoke-command it returns empty lines. can't strings be returned with invoke-command ?
if i put more "hello" lines in the text file and remove the select-object -last 1, it returns more empty line's.
i know it is child's play for you guys :). but for me it is one bridge to far..
all help is greatly appreciated.
Thanks