Hey,does somebody know, if it is possible to host Powershell within c# and authenticate as administrator. Hosting Powershell is not the problem, but the thing with the authentication.
Situation:I need to write an application for Managing Exchange (ExchangeSnapin works fine) and DNS. To get this done I decided to use powershell instead of (psexec.... etc.) My Problem now is that if the user is not an administrator he should enter his admin credentials so that he can use f.ex. dnscmd over powershell.
I hope somebody can help, because i stuck in this .....Thanks a lot