How can I open the PowerShell embedded environment for remote access

I have an ASP.Net application that can run inline spaces for which I created quite extensive PowerShell functionality, including:

  • Interactive console and web interface ISE-like UI
  • number of commands displaying functionality and application management
  • PS drive provider to view application content ... etc.

The problem is that I need this functionality, available for the Windows PowerShell Console, to create scripts or configuration scripts, etc., so I will need to expose such built-in space externally through remote PowerShell. I am aware of the existence of a PowerShellTunnel and a remote vertex that preceded this, but these solutions are limited. I would need to expose the full functionality of such a script for external scripts, for example. interactively i have interactivity on the web / in app. But to have the whole story, I need a remote part.

Has anyone done this and could not point me in the direction where I can find how to turn on the remote (or even local) Windows Powershell console to create the correct connection to my application?

+4
source share
1 answer

How about using an Http feed like Scott Hanselman once wrote?

http://www.hanselman.com/blog/ScriptBlockAndRunspaceRemotingInPowerShell.aspx

0
source

Source: https://habr.com/ru/post/1495044/


All Articles