Index: /trunk/src/VBox/Main/ConsoleImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/ConsoleImpl.cpp	(revision 30906)
+++ /trunk/src/VBox/Main/ConsoleImpl.cpp	(revision 30907)
@@ -887,5 +887,16 @@
     if (SUCCEEDED(hrc) && value == "1")
     {
-        fProvideGuestCredentials = TRUE;
+        /* Provide credentials only if there are no logged in users. */
+        Bstr noLoggedInUsersValue;
+        ULONG64 ul64Timestamp = 0;
+        Bstr flags;
+
+        hrc = getGuestProperty(Bstr("/VirtualBox/GuestInfo/OS/NoLoggedInUsers"),
+                               noLoggedInUsersValue.asOutParam(), &ul64Timestamp, flags.asOutParam());
+
+        if (SUCCEEDED(hrc) && noLoggedInUsersValue != Bstr("false"))
+        {
+            fProvideGuestCredentials = TRUE;
+        }
     }
 
