Tech Off Thread

5 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Powershell Commands in winRT

Back to Forum: Tech Off
  • User profile image


    I am currently working on a winRT app that needs to run some Powershell commands but I can't seem to find a way to do it.

    I'm searching the equivalent of this:

    Runspace runspace = RunspaceFactory.CreateRunspace();


    Thanks in advance

  • User profile image
    Sven Groot

    I sincerely doubt if WinRT apps (which are sandboxed) can instantiate or launch PowerShell.

  • User profile image

    There's probably a really round-about way that you could do it by having a server setup as a Management OData endpoint so you could call the PowerShell using a web service. You might even be able to tell that server to remote back in to the calling client to run something locally, but it's horrible and probably not worth the trouble.

  • User profile image

    Thanks for the help.

    As you said, it's horrible and not worth the trouble. I think the only option is making a second program (WPF) and leave the metro UI to implement that piece of functionality.

  • User profile image

    Powershell is disabled for Windows RT.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.