none
Starting the CommandPrompt wtih a Process Class dont give me the full access, why?? RRS feed

  • Question

  • Hey,

    If i write following:

    Process.Start("cmd.exe");

    surerly, the commandprompt will appear, buttry following:

    If i enter "manage-bde -status" the commandprompt reject and tell, that he doesn't know the Command.

    If i open the commandprompt via Windows, he accept the command. (It tells about BitLocker)

    Certainly i mindet the admin rights.

    Can anybody tell about this behaviour???  

    • Moved by Min ZhuModerator Monday, December 10, 2012 7:28 AM (From:Windows Presentation Foundation (WPF))
    Saturday, December 8, 2012 11:52 AM

Answers

  • Hello,

    This question is not related with the WPF.

    If you set  your program target is x86 and Proces.Start("cmd.exe) start an 32bit version of cmd and manage-dbe won't run. So set target of  your program to x64 so cmd.exe will run 64bit mode than manage-dbe will run.

    Good luck

     

    Saturday, December 8, 2012 4:02 PM

All replies

  • Hi,

    Right Click -> Run As Administrator .

    Have you tried it ?


    One good question is equivalent to ten best answers.

    Saturday, December 8, 2012 11:56 AM
  • ???? dont mess my quesion please and read it more accuratly

    Saturday, December 8, 2012 2:01 PM
  • This is a clear answer to your question: How to force C# App to run as administrator on Windows 7

    Right Click on project -> Add new item -> Application Manifest File

    Then in that file change a line like this:

    <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

    Compile and run!

    Hope this helps

    Lloyd Sheen


    Lloyd Sheen

    Saturday, December 8, 2012 3:44 PM
  • Hello,

    This question is not related with the WPF.

    If you set  your program target is x86 and Proces.Start("cmd.exe) start an 32bit version of cmd and manage-dbe won't run. So set target of  your program to x64 so cmd.exe will run 64bit mode than manage-dbe will run.

    Good luck

     

    Saturday, December 8, 2012 4:02 PM