http://www.leeholmes.com/blog/Script...owerShell.aspx
Interesting entry...
I can't seem to extend this to NNTP though.
I think the proper PSH equivalent of [Return] is "`r"?
I tried different combos without luck:
PS C:\> $nntp=@"
>> LIST
>> `r`n
>> QUIT
>> `r`n
>> "@
>> <--Seems to just hang
PS C:\> $nntp|.\connect-remote.ps1 news.microsoft.com 119
PS C:\> $nntp=@"
>> LIST
>> `r
>> QUIT
>> `r
>> "@
>> <--Seems to just hang
PS C:\> $nntp|.\connect-remote.ps1 news.microsoft.com 119
PS C:\> $nntp=@"
>> LIST
>> QUIT
>> "@
>>
PS C:\> $nntp|.\connect-remote.ps1 news.microsoft.com 119
200 NNTP Service 6.0.3790.1830 Version: 6.0.3790.1830 Posting Allowed
501 Syntax Error in Command
Any ideas?