如何将提升的命令提示符转换为常规命令提示符?

我的系统上禁用了UAC,并且所有命令提示符都以提升的方式启动(“Administrator:…”)。 即使我从开始菜单启动cmd.exe,它仍然是提升。

有没有办法以某种方式运行非提升命令提示符?

我需要这样做,以便我可以修复某些软件中的错误,除非以pipe理员身份运行,否则无法正常工作。

Sysinternals来救援! 有一个选项是前一段时间添加的,以有限的用户身份运行一个命令。

Usage: psexec [\\computer[,computer2[,...] | @file][-u user [-p psswd]][-ns][-l][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-<priority>][-an,n,... ] cmd [arguments] -d Don't wait for application to terminate. Only use this option for non-interactive applications. -e Does not load the specified account's profile. -f Copy the specified program to the remote system even if the file already exists on the remote system. -i Run the program so that it interacts with the desktop of the specified session on the remote system. If no session is specified the process runs in the console session. -l Run process as limited user (strips the Administrators group and allows only privileges assigned to the Users group). On Windows Vista the process runs with Low Integrity. 

具体来说,我build议运行

 psexec -i -d -l "your command here" 

这将以交互方式运行命令(以便您可以看到结果),(因此命令行立即返回 – 不是绝对必要的)以及作为受限用户。

您可以从计算机上的pipe理员组中删除您的用户名,或者创build没有pipe理员权限的另一个帐户。

以下命令将在没有提升的情况下运行程序,也不作为受限用户运行。 换句话说,完整性水平将是中等而不是高或低。

 psexec -u %USERDOMAIN%\%USERNAME% -p password command arguments 

添加-l将以有限的用户身份运行程序(即完整性级别低)。

据我所知,你不能“解除”一个过程。

如果从另一个应用程序(非提升应用程序)启动cmd.exe,则不应以pipe理员身份启动。