Expose Windows PowerShell Commands as REST call -
i'm not familiar windows os have powershell commands want execute need expose them rest call. i'm not sure easiest secure method that. environment lamp multiple rest applications. not have special front end client uses these applications.
i able use code in blog post verbatim expose powershell cmdlets directly via rest: exposing powershell json-emitting, rest-like web service
this c# asp.net web app run in iis.
it's interesting general purpose, think better method write own. using asp.net ideal because have access runspaces, natively executing powershell code (as opposed janky thing shell out powershell.exe or that).
writing own let's decide how structure api way want.
even when used above code, wrote own powershell module , exposed functions wrote myself purpose.
you might have @ powershell pipeworks, looks promising i've not had chance play it.
Comments
Post a Comment