locked
PowerShell in WintRT RRS feed

  • Question

  • Dear Team

    How run PowerShell or CMD commands in Windows RT (c#)?


    • Edited by S_SATHIA Friday, January 18, 2013 6:30 AM
    Friday, January 18, 2013 6:19 AM

Answers

  • Hi,

    Because of the sandboxed nature of WinRT, there's no (supported) way to run PowerShell commands from a WinRT app.

    You could implement a second (native) application that runs the commands for your App and have your WinRT application communicate with that through a file (which they both can read) but that would mean users have to download a native Windows application to get your metro app to work properly.

    Hope this helps


    Please mark the best replies as answers
    Blog: bloggingabout.net/blogs/rick
    Twitter: @rickvdbosch

    • Marked as answer by Jesse Jiang Wednesday, January 23, 2013 8:10 AM
    Friday, January 18, 2013 7:36 AM

All replies

  • Hi,

    Because of the sandboxed nature of WinRT, there's no (supported) way to run PowerShell commands from a WinRT app.

    You could implement a second (native) application that runs the commands for your App and have your WinRT application communicate with that through a file (which they both can read) but that would mean users have to download a native Windows application to get your metro app to work properly.

    Hope this helps


    Please mark the best replies as answers
    Blog: bloggingabout.net/blogs/rick
    Twitter: @rickvdbosch

    • Marked as answer by Jesse Jiang Wednesday, January 23, 2013 8:10 AM
    Friday, January 18, 2013 7:36 AM
  • Hi Bosch

    Thanks for your reply. I shall try working as you mentioned and share if successful.

    -Sathia

    Friday, January 18, 2013 9:13 AM