Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
One of my teammates asked why a few commands are not working in PowerShell?
We tried diskpart.exe and ended up with this error:
diskpart.exe
Cannot start "diskpart.exe". Interactive console applications are not supported.
To run the application, use the Start-Process cmdlet or use "Start PowerShell.exe" from the File menu.
To view/modify the list of blocked console applications, use $psUnsupportedConsoleApplications, or consult online help.
At line:0 char:0
It's good. Don't worry about it. Try in Windows PowerShell ConsoleHost. It will work.
But why not from ISE?
Explanation
$psUnsupportedConsoleApplications
Results:
wmic
wmic.exe
cmd
cmd.exe
diskpart
diskpart.exe
edit.com
netsh
netsh.exe
nslookup
nslookup.exe
powershell
powershell.exe
The above commands will not work as expected. Please be aware of it and do PowerShell :)
Other Languages
This article is also available in the following languages: