NinjaOne’s Remote PowerShell empowers IT teams to securely execute scripts and commands in real time—no need for a VPN or user interruption. Streamline troubleshooting and automation across endpoints with complete control from a single console.
Execute PowerShell commands instantly on any Windows based endpoint without initiating a remote desktop session or disrupting the user.
Quickly diagnose and resolve issues, automate repetitive tasks, and manage systems efficiently across distributed environments.
Leverage scripts to manage multiple devices at once, making it easy to apply changes, or perform maintenance across your entire environment with minimal effort.
All sessions are logged for compliance and security, ensuring full visibility and control over administrative actions.
Run powershell commands in real time, just like you would locally.
Create a library of powershell scripts ready to use.
By using conditions and scripts, you can create automations to solve common IT issues without manual intervention.
Remote PowerShell is a NinjaOne feature that allows you to run PowerShell cmdlets and scripts directly and interactively on a managed endpoint, as if you were sitting in front of the remote computer, without starting a remote desktop session or interrupting the end user.
Follow the steps below to start a remote PowerShell session in NinjaOne.
Follow the steps below to run a Powershell script on the remote Windows computer.
Note: The script should exist in the automation library.
In NinjaOne, PowerShell remoting does not need to be enabled manually—it’s a built-in feature that is always available for Windows endpoints, however, running scripts might be disabled on the target computer. To enable running scripts on a Windows computer, simply run this PowerShell command: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass.
When you are at the PowerShell console and you want to run a PowerShell script, simply invoke the script by typing the path + name (the script must be in the computer you are remoting).
i.e. C:\Path\To\Your\Script\YourScript.ps1
Take into account that some features, like NinjaOne tags are only available when running from an automation script.
Fortunately, PowerShell is cross-platform, meaning it runs on Windows, Linux, and macOS. This has been true since the release of PowerShell Core (version 6.0), which was introduced in January 2018.
To launch the PowerShell console from Linux, simply type pwsh in the terminal. On some Linux distributions you may need to use powershell instead.
Keep in mind that the PowerShell package may need to be installed manually, since it is not a built-in feature in Linux.
Although NinjaOne cannot open a PowerShell remote session on a Linux machine, it does allow you to initiate a remote terminal session for Linux endpoints. Once there, you can launch PowerShell.
Follow the steps below to run an interactive PowerShell session from NinjaOne using the Linux terminal.
Note: the steps below assume that the PowerShell package is already installed on the remote computer.