Convert to administrator role running programs with Runs

xiaoxiao2021-03-06  39

D: / Documents and Settings / Michael.lem> Runas /? RunaS Usage:

Runas [/ profile] [/ env] [/ Netonly] / user: Program

/ Profile If you need to load the user's configuration file / ENV to use the current environment, not the user's environment. / Netonly uses / user to use the user @ domain or domain / user form Program Exe in the case of remote access. See the example below

For example:> runas / profile / user: mymachine / administrator cmd> runas / profile / env / user: mydomain / admin "mmc% windir% / system32 / dsa.msc"> runas / env /user:/domain.microsoft. Com "notepad /" my file.txt / ""

Note: The user's password is only entered when prompted. Note: User @ domain is not compatible with / Netonly.

转载请注明原文地址:https://www.9cbs.com/read-76640.html

New Post(0)