PowerShell / JEA

Just Enough Administration
http://aka.ms/JEAdocs
MIT License
257 stars 60 forks source link

Exposing a JEA endpoint as a web service #49

Open Glober777 opened 6 years ago

Glober777 commented 6 years ago

Hi!

Is there a way to expose a JEA endpoint as a web service, so that it could be used by an external system that knows how to make REST calls?

I already have a JEA endpoint that exposes a few custom cmdlets and it works through PS Remoting just fine. I've been asked to look into presenting those as a web service so that those same cmdlets could have been called by our ticketing system (which can make REST calls).

Thanks!

rpsqrd commented 6 years ago

Unfortunately, there are no plans to create a REST interface for JEA. JEA is a combination of PowerShell and WinRM features, so to create a REST interface we'd first need to create a full REST interface for PS Remoting over WinRM. Given the stateful nature of PowerShell, this is not a great fit or priority.

While it may not be useful in this particular instance, Windows Admin Center has shown that you can create a web interface for JEA using remote PowerShell from a web server.