Chapter 30. How to Run a Program as Another User
There are three ways of doing this: via Explorer, via a command-line tool, and programmatically. Using Explorer, right-click the program you want to run and choose the “Run As” option. You'll see the dialog shown in Figure 30.1. If the “Run As” menu option doesn't show up in the context menu when you right-click, try holding down the Shift key on your keyboard while right-clicking. That should do the trick.
Figure 30.1. The Run As dialog
In case you've ever wondered what the other option in this dialog is for, the one that says, “Protect my computer and data from unauthorized program activity,” it's ...
Get The .NET Developer's Guide to Windows Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.