Run scripts, troubleshoot issues, and automate tasks across your Windows devices—securely and without disrupting users.
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.
Discover how you PowerShell allows you to schedule repetitive tasks so you prioritize effectively.