ITEEDU

Runas

允许用户用其他权限运行指定的工具和程序,而不是用户当前登录提供的权限。

语法

runas [{/profile|/noprofile}][/env][/netonly][/smartcard][/showtrustlevels][/trustlevel] /user:UserAccountName program

参数

/profile

加载用户的配置文件。/profile 是默认值。

/no profile

/noprofile 指定不加载用户的配置文件。这使应用程序载入的更加快速,但是在一些应用程序中也会引起错误。

/env

指定当前使用的网络环境,而不是用户的本地环境。

/netonly

指明指定的用户信息只用于远程访问。

/smartcard

/smartcard 表示凭据是否是由智能卡提供的。

/showtrustlevels

列出 /trustlevel 开关项。

/trustlevel

指定应用程序运行所在的授权级别。使用 /showtrustlevels 查看可用的信任级别。

/user:UserAccountName

指定在其下运行程序的用户帐户的名称。用户帐户的格式应是 user@domain 或 domain\user。

program

指定要用在 /user 中指定的帐户运行的程序或命令。

/?

在命令提示符显示帮助。

未完见下页