How can I implement runas /noprofile /netonly /user:@ using C#.
System.Diagnostics.ProcessStartInfo have fields like user, domain, password, verb (where we can use runas) but how to set netonly. Using the Cmd it doesnot need a token but while using diagnostics a token is being requested due to which security error "{"The security database on the server does not have a computer account for this workstation trust relationship"}" occurs, as my system is not a trusted partner in that domain. In Cmd no such problem is faced.I want to use UI for entering user info. As my system is not a trusted partner I can't use Impersonation.