<< Back to Script Library

Remote PowerShell to Computer

Opens a remote PowerShell session to the selceted computer(s) or to the computer(s) hosting the selected process(es) or user session(s). WinRM and PowerShell remoting already needs to be configured on the target computers. You can do that with ControlUp using the "Enable PSRemoting" SBA.
Version: 1.11.12
Created: 2015-08-20
Modified: 2016-08-17
Creator: Eugene Kalayev
Downloads: 792
Tags: powershell PSRemote Remote
The Script Copy Script Copied to clipboard
$target = $args[0]
$cmds = "-Noexit","-command enter-pssession -computername $target"
Start-Process powershell.exe -ArgumentList $cmds