Powershell Output Blank

Last Modified

Mon Aug 19 17:48 GMT 2019

Description

  • When using the Tools > Command Prompt feature for an agent and entering PowerShell the output goes black.
  • This is generally caused by longer outputs scrolling the screen downward.

Environment

  • N-able N-central
  • Powershell version 5.1.18362.145 or later
  • Windows 10 v1903 includes this PowerShell build by default

Solution

  • The Tools > Command Prompt feature is designed to use the bash commands within Windows and PowerShell isn't native to that interface.
  • The default output in newer versions of PowerShell provide the output in a slightly different method when in interactive mode (default) and when the screen scrolls through N-able N-central 's interface it produces a blank output.
  • The history still exists, but isn't displayed on screen due to these changes in PowerShell.
  • The simplest solution is to use non-interactive mode via the command:
    • powershell -noninteractive
  • This command uses non-interactive mode and will produce output in a manner that is more readable for the CLI.