Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I'm looking for a way to embed a PowerShell console (which will open with admin privileges) inside a window in WPF.
I need the console to open and run a script (ps1 file) from a certain path and of course there will be I/O between the console and the user.
I want the console to be an integral part of the window in XAML and not something external.
Is there a way to do this in C #? 


What I have tried:

................................................
Posted
Updated 9-Feb-21 18:00pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900