Interactive console applications do not work properly through remoting sessions - by Trevor Sullivan [MVP]

Status : 


Sign in
to vote
ID 798058 Comments
Status Active Workarounds
Type Bug Repros 1
Opened 8/21/2013 11:28:04 AM
Access Restriction Public


Interactive console applications, such as: diskpart.exe, nslookup.exe, powershell.exe, wmic.exe, cmd.exe, netsh.exe, etc. do not work properly (or at all) when launched inside of a PowerShell Remoting session. The PowerShell Integrated Scripting Editor (ISE) has a variable called $psUnsupportedConsoleApplications. This variable contains a string array denoting the specific executables that cannot be launched in the ISE. This variable should also be extended to PowerShell Remoting sessions, to prevent those executables from running.
Sign in to post a comment.
Posted by Erutan409 on 9/9/2015 at 1:14 PM
I can attest to this happening when running php CLI in a remote session. My code gets input from the user via <? $value = fgets(STDIN); ?>

My code loops through getting input until it meets a certain criteria. This works properly when on the host server. However, when in remote session, the function loops WITHOUT waiting for user input.
Posted by Trevor Sullivan [MVP] on 8/21/2013 at 11:43 AM
Update: Attached video demonstrating the issue.