无法注销 Windows Server 2008

发布于 2024-12-14 14:15:05 字数 502 浏览 5 评论 0原文

我当前已使用远程桌面登录 Windows Server 2008 R2 (x64) 服务器。当我点击“开始”->“注销后,弹出此消息:

在此处输入图像描述

消息内容如下: “正在等待所有管理单元完成...”

背景中出现第二个对话框,其中显示:

MMC 无法初始化管理单元。

现在我无法注销,也无法调出任务管理器。我可以按 ctrl-alt-del 然后单击任务管理器,我可以右键单击任务栏并单击启动任务管理器,我可以单击开始菜单并单击注销,但这些都没有执行任何操作。我也无法单击屏幕截图中显示的“确定”按钮。

这是一个实时网络服务器,所以我不想尝试重新启动服务器。

我可以直接从远程桌面断开连接,但当我稍后重新登录时,这些对话框仍然会显示。

有什么想法吗?难道只需要等到半夜重启服务器就可以了吗?

I'm currently logged into my Windows Server 2008 R2 (x64) server, using Remote Desktop. As soon as I clicked on Start -> Log Out, this message popped up:

enter image description here

The message says:
"Waiting for all snap-ins to complete..."

There's a second dialog box in the background that says:

MMC cannot initialize the snap-in.

Now I can't log out and I can't bring up task manager. I can hit ctrl-alt-del and then click Task Manager, I can right-click the task bar and click Start Task Manager, and I can click the start menu and click Log Out, but none of those do anything. I also can't click the OK button that is shown in the screenshot.

This is a live web server, so I don't want to try restarting the server.

I can just disconnect from Remote Desktop, but these dialog boxes are still shown when I log back in later.

Any ideas? Do I just need to wait until the middle of the night and restart the server?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

弥枳 2024-12-21 14:15:05

尝试从命令提示符 shutdown /l

C:\Users\User>shutdown /?
Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]
    [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

    No args    Display help. This is the same as typing /?.
    /?         Display help. This is the same as not typing any options.
    /i         Display the graphical user interface (GUI).
               This must be the first option.
    /l         Log off. This cannot be used with /m or /d options.
    /s         Shutdown the computer.
    /r         Shutdown and restart the computer.
    /g         Shutdown and restart the computer. After the system is
               rebooted, restart any registered applications.
    /a         Abort a system shutdown.
               This can only be used during the time-out period.
    /p         Turn off the local computer with no time-out or warning.
               Can be used with /d and /f options.
    /h         Hibernate the local computer.
               Can be used with the /f option.
    /e         Document the reason for an unexpected shutdown of a computer.
    /m \\computer Specify the target computer.
    /t xxx     Set the time-out period before shutdown to xxx seconds.
               The valid range is 0-315360000 (10 years), with a default of 30.
               If the timeout period is greater than 0, the /f parameter is
               implied.
    /c "comment" Comment on the reason for the restart or shutdown.
               Maximum of 512 characters allowed.
    /f         Force running applications to close without forewarning users.
               The /f parameter is implied when a value greater than 0 is
               specified for the /t parameter.
    /d [p|u:]xx:yy  Provide the reason for the restart or shutdown.
               p indicates that the restart or shutdown is planned.
               u indicates that the reason is user defined.
               If neither p nor u is specified the restart or shutdown is
               unplanned.
               xx is the major reason number (positive integer less than 256).
               yy is the minor reason number (positive integer less than 65536).

Try from the command prompt shutdown /l

C:\Users\User>shutdown /?
Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]
    [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

    No args    Display help. This is the same as typing /?.
    /?         Display help. This is the same as not typing any options.
    /i         Display the graphical user interface (GUI).
               This must be the first option.
    /l         Log off. This cannot be used with /m or /d options.
    /s         Shutdown the computer.
    /r         Shutdown and restart the computer.
    /g         Shutdown and restart the computer. After the system is
               rebooted, restart any registered applications.
    /a         Abort a system shutdown.
               This can only be used during the time-out period.
    /p         Turn off the local computer with no time-out or warning.
               Can be used with /d and /f options.
    /h         Hibernate the local computer.
               Can be used with the /f option.
    /e         Document the reason for an unexpected shutdown of a computer.
    /m \\computer Specify the target computer.
    /t xxx     Set the time-out period before shutdown to xxx seconds.
               The valid range is 0-315360000 (10 years), with a default of 30.
               If the timeout period is greater than 0, the /f parameter is
               implied.
    /c "comment" Comment on the reason for the restart or shutdown.
               Maximum of 512 characters allowed.
    /f         Force running applications to close without forewarning users.
               The /f parameter is implied when a value greater than 0 is
               specified for the /t parameter.
    /d [p|u:]xx:yy  Provide the reason for the restart or shutdown.
               p indicates that the restart or shutdown is planned.
               u indicates that the reason is user defined.
               If neither p nor u is specified the restart or shutdown is
               unplanned.
               xx is the major reason number (positive integer less than 256).
               yy is the minor reason number (positive integer less than 65536).
烟织青萝梦 2024-12-21 14:15:05

当我最初发布这个问题时,我完全忘记了我在服务器上安装了 PCMonitor,它给我的选项之一是使用我的手机查看登录的用户并将其注销。

当我发送注销用户的命令时,我的远程桌面会话就结束了,然后当我重新登录 MMC 对话框时,对话框终于消失了。

抱歉,对于没有安装此类应用程序的人来说,这不是一个更好的答案。

When I originally posted this question, I had completely forgotten that I have PCMonitor installed on the server and one of the options it gives me is to use my phone to see logged in users and to log them out.

As soon as I sent the command to log out my user, my Remote Desktop session ended, and then when I logged back in the MMC dialog boxes were finally gone.

Sorry it's not a better answer for anyone that doesn't have an app like that installed.

你另情深 2024-12-21 14:15:05

我知道这是一个老问题,但我今天遇到了同样的问题。根据 CrazyDart 的评论...

在服务器上(无需远程到网络上的另一台服务器),转到“管理员工具”->远程桌面-> 远程桌面服务管理器,选择服务器,右键单击列表中您的用户名,然后选择注销。

我也无法打开任务管理器或命令提示符(除非我以管理员身份运行,其中 shutdown /l 命令根本不执行任何操作)。

感谢 CrazyDart 的帮助。我本来想投你一票,但我似乎无法发表评论......

I know this is an old question but I ran into the same issue today. Following on from CrazyDart's comment...

On the server (no need to remote to another server on the network) go to Administrator Tools -> Remote Desktop -> Remote Desktop Services Manager, select the server, right click your user name from the list and select log-off.

I was also unable to open Task Manager or Command Prompt (unless I ran as administrator, in which the shutdown /l command simply did nothing).

Thanks to CrazyDart for this one. I'd up vote you, but I can't seem to do it for comments...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文