Hi,
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
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Hi,
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
I sincerely doubt if WinRT apps (which are sandboxed) can instantiate or launch PowerShell.
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.
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.
Powershell is disabled for Windows RT.
Add your 2¢