09.02.2014 Views

Windows sysinternals

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8 Security Utilities 279<br />

a smartcard PIN on systems configured for smartcard logon. You can also use ShellRunAs<br />

similarly to Runas.exe but with a more convenient graphical interface. None of ShellRunAs’<br />

features require administrative rights, not even the registering of context menu entries.<br />

ShellRunAs can be used on <strong>Windows</strong> XP or newer.<br />

FIGURE 8-4 ShellRunAs prompting for user credentials.<br />

ShellRunAs also supports the Runas.exe netonly feature, which was never previously available<br />

through a <strong>Windows</strong> GUI. With the netonly option, the target program continues to use the<br />

launching user’s security context for local access, but it uses the supplied alternate credentials<br />

for remote access. (See Figure 8-5.) Note that a console window might flash briefly when<br />

ShellRunAs starts a program with netonly.<br />

FIGURE 8-5 ”Run As Different User” options added to the Explorer context menu.<br />

The valid command-line syntax options for ShellRunAs are listed next, followed by<br />

descriptions of the command-line switches:<br />

ShellRunAs /reg [/quiet]<br />

ShellRunAs /regnetonly [/quiet]<br />

ShellRunAs /unreg [/quiet]<br />

■ /reg Registers Run As Different User as an Explorer context menu option for the<br />

current user. (See Figure 8-5.)<br />

■ /regnetonly Registers Run As Different User (Netonly) as an Explorer context menu<br />

option for the current user.<br />

■ /unreg Unregisters any registered ShellRunAs context menu options for the<br />

current user.<br />

■ /quiet Does not show a result dialog box for registration or unregistration.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!