windows 中的管理员权限不一致

inconsistent administrator permissions in windows

我是一名 mac 用户,第一次涉足 windows 开发,我 运行 遇到了一些令人困惑的管理员权限错误。我正在 运行 通过 Bootcamp 在我昨天刚安装的 macbook pro 上安装 Windows 10(我还没有 "activated windows" 即没有付钱,不确定这是否会对我的问题产生影响)。我是管理员,也是系统上唯一的用户,我首先通过“设置”应用程序检查确认了这一点,然后 运行 执行以下命令:

C:\Users\will\code\chrome-native-messaging>net user "%username%"
User name                    will
Full Name
Comment
User's comment
Country/region code          000 (System Default)
Account active               Yes
Account expires              Never

Password last set            9/26/2016 1:38:13 PM
Password expires             Never
Password changeable          9/26/2016 1:38:13 PM
Password required            No
User may change password     Yes

Workstations allowed         All
Logon script
User profile
Home directory
Last logon                   9/28/2016 1:03:42 PM

Logon hours allowed          All

Local Group Memberships      *Administrators       *Ssh Users
Global Group memberships     *None
The command completed successfully. 



C:\Users\will\code\chrome-native-messaging>net localgroup administrators
Alias name     administrators
Comment        Administrators have complete and unrestricted access to the    computer/domain

Members

-------------------------------------------------------------------------------
Administrator
will
The command completed successfully.

但是,当我 运行 在 SO thread 中建议另一个命令来验证我的管理员状态时,我收到 access denied 错误:

C:\Users\will\code\chrome-native-messaging>fsutil dirty query %systemdrive%
Error:  Access is denied.

非常感谢任何有关如何成功 运行 此命令的指示。谢谢!

您是否使用 Run as Administrator 启动命令提示符?

fsutil 需要提升命令提示符。您可以通过查看 "Administrator: C:...\cmd.exe" 是否在命令提示符的标题栏中来进行检查。