windows 一如既往returns "The System cannot find the file specified"

windows Runas always returns "The System cannot find the file specified"

当我使用 运行as /? 中显示的相同语法时,

Windows runas.exe 应用程序无法运行。例如,显示的用法之一是 runas /trustlevel<TrustLevel> program,但是,当我使用 runas /trustlevel<0x20000> calc 时,我得到 "The system cannot find the file specified." 它在谈论什么文件?

我注意到另一个人问了类似的问题,但他们正在尝试使用使用 Delphi 编写的控制台程序:Got "The system cannot find the file specified" when I run NETSH from CreateProcess but it works ok on Command Prompt? 但是我在 Windows 中使用 DOS 命令,所以我不明白为什么如果我在命令提示符或开始菜单->运行 或任务管理器->文件中键入相同的命令会 运行 ->运行 但当我使用 运行as 时将不起作用。

<>是cmd.exe中的输入输出重定向操作符。 /trustlevel<0x20000> 要求 cmd.exe 从名为 0x20000 的文件中读取。

正确的语法是runas /trustlevel:0x20000 calc

帮助输出中的 <something> 语法表示参数是必需的。 [something] 是可选的。

/trustlevel 不会更改 UAC 完整性级别,因此这不是减少您的权限的好方法,尽管它会为管理员组添加一个仅拒绝 SID,因此它可能是通过 Safer API 实现的.