API access to PowerShell Web Access? -


powershell web access allows run powershell cmdlets through web browser. shows web based console window.

is there way run cmdlets without typing them in console window? , there way results back?

i'm envisaging app lets non-technical user restart print queue (for example) without having know powershell. app display list of print queues , user select 1 , restart queue. app wrapper takes care of syntax , variables users don't need know.

is there way through powershell web access? or there other way non windows app send arbitrary commands windows server without reinventing wheel?

not powershell web access**. designed interactive session.

there few ways this. examples illustrative , may outdated, insecure, etc.

  • create asp.net web application running c#. run powershell in c#. use powershell remoting needed. example.
  • create gui applications using windows presentation foundation or winforms. use powershell remoting needed. example.
  • create services api (e.g. rest) powershell can hit.
  • ** ok, lied. create clunky solution uses delegated, constrained endpoints accessed through powershell web access.
  • for each of above solutions uses powershell remoting, consider delegated and/or constrained endpoints. example.

we have web application allows users perform functions parameters. uses asp.net backed c# set of predefined powershell scripts , configuration of can stored in sql db. example...

  • jane can restart application pool x on server y.
  • john can restart service z on server q.
  • it support can unlock own 'administrative' accounts standard accounts.
  • all of can run non-windows computers. of might exposed allow use on mobile devices : )

if have use cases, small overhead of designing system , writing code behind pay off quite quickly.

cheers!


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -