I have also hit this problem, and seemingly found a solution. Beside the OP's registry keys, I've also found this:
http://tim.mackey.ie/FIXServer2003WontS ... Users.aspx
EnableDefaultReply Is what is needed to bypass the problem with shutdown with users connected, I finally figured it out. I can reset ans shutdown a remote PC by right clicking on the taskbar and using the task manager that is almost as easy as a shortcut amd it works fine. however is someone needs to shutdown the server and they do not have the remote desktop password or any way to connect to the XP machine - no mouse/keyboard/monitor then use this page to enable default reply worked for me to allow me to turn the server off by hitting the power button and it powers the Server all the way down and loggs off the connected users.
http://msdn.microsoft.com/library/defau ... tReply.asp
To set up your system to automatically reply to a message box without displaying it
In the HKLM\System\CurrentControlSet\Control registry key, create a new key named Error Message Instrument.
Under the Error Message Instrument key, add the values of type REG_DWORD from the following table.Value Data Description
EnableDefaultReply 0x00000001 Enables the Enable Default Reply feature
Overall the registry patch is this:
Code: Select all
REGEDIT4
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"AutoEndTasks"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows]
"ShutdownWarningDialogTimeout"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument]
"EnableDefaultReply"=dword:00000001
Possibly these settings are excessive (maybe not all are needed), but applying them and rebooting the VM to enable the settings, has helped in my case.
I only applied the last line to one of the VMs, and it helped alone.
To test whether you have the problem?
1) Start Windows XP VM, using the VirtualBox GUI to see the graphical "physical" console of the Windows VM;
2) Log in to it from RDP, the "physical" WinXP console should say that the session is used remotely, offer to log in administratively and abort or hijack it (if same user) on the console
3) Press "ACPI Shutdown" in GUI or use the command-line
Code: Select all
/usr/bin/VBoxManage controlvm $VM_Name acpipowerbutton
4a) Windows shuts down = you have no problem, end of quest.
4b) Windows does not shut down, RDP session shows no sign of trying to shut down, console says "Other people are logged on to this Computer. Restarting Windows might cause them to lose data. Do you want to continue restarting? (Yes/No)" = You do have the problem, in this case:
5) Apply the registry keys above
6) Reboot windows VM manually
7) Retest according to this procedure from step (1)
NOTE: Windows users don't get a warning message (i.e. shutting down in 30 seconds), tasks were requested to end automatically, so Windows should go down quickly.
Hope this helps (and works for you),
//Jim Klimov