profesorfalken / jPowerShell

Simple Java API to interact with PowerShell console
Apache License 2.0
215 stars 83 forks source link

Piped Command #60

Open davibaldin opened 5 years ago

davibaldin commented 5 years ago

Hi,

Passing this command for execution:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate

It's return response is being empty. It seems | Select-Object is the problem.

Version: 3.1.0 Java: 1.8.latest Windows 10

Thanks and Regards.

profesorfalken commented 5 years ago

Hello,

This is weird, because I have used many times jPowershell to launch piped commands like that and it worked.

When you launch that same command in the Powershell console, does it return any output?

Best regards