{"id":4481,"date":"2009-02-04T18:49:00","date_gmt":"2009-02-04T18:49:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2009\/02\/04\/console-application-non-support-in-the-ise\/"},"modified":"2019-02-18T13:12:49","modified_gmt":"2019-02-18T20:12:49","slug":"console-application-non-support-in-the-ise","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/console-application-non-support-in-the-ise\/","title":{"rendered":"Console Application (Non) Support in the ISE"},"content":{"rendered":"<p>There are some limitations on how the ISE interacts with console applications you need to be aware of, for apps like ftp and netsh.<\/p>\n<p>First of all, the ISE Runs console apps that don\u2019t require user input just fine.<br \/>For example, \u201cping www.microsoft.com\u201d and \u201ccmd \/c dir \/s\u201d<\/p>\n<p>Piping also works fine in the ISE,<br \/>For example, PS C:\\Users\\ibrar&gt; &#8220;show mode&#8221; | netsh<br \/>netsh&gt;online<\/p>\n<p>Automation in scripts, that don\u2019t require user interventions should be fine.<\/p>\n<p>However, if you run \u201ccmd \/k\u201d which requires input, the ISE will be stuck, and you\u2019ll have to stop the pipeline, using Ctrl-Break or pressing the stop button.<\/p>\n<p>It can get annoying, and it\u2019s slightly less annoying to get an error. If you run cmd, or netsh, you get,<\/p>\n<p>Cannot start &#8220;cmd &#8220;. Interactive console applications are not supported. <br \/>To run the application, use the Start-Process cmdlet or use &#8220;Start PowerShell.exe&#8221; from the File menu.<br \/>To view\/modify the list of blocked console applications, use $psUnsupportedConsoleApplications, or consult online help.<br \/>At line:0 char:0<\/p>\n<p>You can call $psUnsupportedConsoleApplications.Add to add commands accidentally typed into the ISE, like ftp which is not on the list.<\/p>\n<p>The other way to do it, is to be conscious and do \u201cstart ftp.exe\u201d (start is an alias to start-process)<\/p>\n<p>This will launch it into a new window, and not block the ISE. Some customers have done things like<\/p>\n<p>function vim { start-process vim $args }<\/p>\n<p>This will ensure that vim will launch with the filenames that you specify, even when ran in the ISE. It\u2019s a very good thing to keep it in your $profile<\/p>\n<p>And if you really need a console, you can always launch PowerShell using Ctrl-Shift-P or press the PowerShell icon in the command pane<\/p>\n<p>Hope this helps,<br \/>Ibrahim Abdul Rahim<br \/>[MSFT]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are some limitations on how the ISE interacts with console applications you need to be aware of, for apps like ftp and netsh. First of all, the ISE Runs console apps that don\u2019t require user input just fine.For example, \u201cping www.microsoft.com\u201d and \u201ccmd \/c dir \/s\u201d Piping also works fine in the ISE,For example, [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[260],"class_list":["post-4481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-powershell-ise"],"acf":[],"blog_post_summary":"<p>There are some limitations on how the ISE interacts with console applications you need to be aware of, for apps like ftp and netsh. First of all, the ISE Runs console apps that don\u2019t require user input just fine.For example, \u201cping www.microsoft.com\u201d and \u201ccmd \/c dir \/s\u201d Piping also works fine in the ISE,For example, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/4481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=4481"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/4481\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=4481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=4481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=4481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}