Remote logins are currently disabled ошибка

Remote logins are currently disabled error is a very commons error that user faces. The issue has been common when using the active directory, remote login on a domain controller, etc. Every time the user tries to log in to the server, the error appears and stops the login process. Furthermore, the error also appears while transferring the files from server to domain if you do not know how to troubleshoot this issue then it can be a headache in this article on troubleshooting this error. We will cover methods that will help eliminate this issue.

Remote Logins Are Currently Disabled

Causes of Remote Logins are Currently Disabled Error Problem:

Remote Logins Are Currently Disabled Citrix Error can occur due to multiple reasons. If any user that has the administrator privileges may disable the logins using the changelogon command easily. In was if the RDP port is closed for connection in the security setup, then this error appears. Another issue in which this error appears is while using the Citrix application, as the app has some privacy policy that parents the user for remote logging in. Furthermore, the error also if the Host server is put into the drain mode.

  • Disable login
  • Citrix privacy policy
  • The host server is put into the drain mode

Similar Types of Remote Logins are Currently Disabled Error Issue:

  • Server 2016
  • Windows 2016
  • Change logon /enable
  • Change logon /enable remotely
  • Rds farm
  • 2016
  • Server 2008 r2
  • Terminal server sessions disabled remote logins currently disabled

How to Fix Remote Logins are Currently Disabled Error Issue

Troubleshooting Remote Logins Are Currently Disabled Citrix Error can be a little complicated. We have demonstrated methods that you can use to fix this error. The following are the methods. In the first method, we will manually enable the service or process using the command prompt. In the second method, we will enable the logon services using the Remote Desktop Session Host Configuration Utility. In the third method, we will fix the issue using the registry editor. Finally, in the fourth method, we will talk about some essential points that you should know.

1. Using Command Prompt –

In this method, we will fix the Remote Logins are Currently Disabled Citrix issue by using the command prompt. We will execute the command that will enable the disabled remote login services. Follow the steps.

  • STEP 1. In the Start menu, type cmd
  • STEP 2. Now right click on the command and click on Run as administrator
  • STEP 3. In the command prompt window, type the following command
psexec.exe \SERVERNAME change logon /enable
  • STEP 4. Above command will enable the remote logins and eliminate the error
  • STEP 5. PSEXEC.EXE is a handy utility, following are the other attributes that you can use to know some important information
    • The psexec.exe command can be used using the following attributes
      change logon /enable  /disable  /query
      The parameters that are used by the change logon command are:

      • /enable: This attribute is used to enable logins from client
      • /disable: This attribute is used to disable logins from the client, already logged on users will have no effect
      • /query: This attribute is used to display the current logon status

2. Using the Remote Desktop Session Host Configuration Utility –

In this Remote Logins are Currently Disabled Server 2008 method, we will the Remote Desktop Session Host Configuration Utility enable the logon services.

  • STEP 1. In the Start menu, type run and then hit Enter
  • STEP 2. Now in the Run box type tsconfig.msc and then hit Enter

tsconfig

  • STEP 3. In the Remote Desktop Session Host Configuration window, Under the Edit settings

RDHC

  • STEP 4. You will see that Restrict each user to a single session has been put Yes

RDHC

  • STEP 5. Right-click on Restrict each user to a single session > Properties
  • STEP 6. Now uncheck the Restrict, each user to a single session checkbox
  • STEP 7. Click on Apply then ok for getting back of this type of Remote Logins are Currently Disabled Server 2008 Citrix error.

3. Using Registry –

In this method, we will use the registry editor to resolve the Remote Logins are Currently Disabled Citrix issues. Kindly follow each step carefully as wrong changes may cause system instability. Follow the steps now.

  • STEP 1. Go to the Start > type in the search/run box regedit then hit Enter
  • STEP 2. In  the registry editor navigate to the following path
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Terminal Server
  • STEP 3. On the Right Locate the fSingleSessionPerUser, then double click on it
  • STEP 4. In the Value data put 0, to allow Multiple sessions

fSingleSessionPerUser,

  • STEP 5. Save the changes and restart your system to get back from this Remote Logins are Currently Disabled Server 2008 problem.

4. Basic Troubleshooting –

Here we have mentioned some common verification points for getting rid out of this Remote Logins are Currently Disabled Server 2008 Citrix issue.

  • Make sure that the RDP port is allowed/open for connection in the security setup.
  • Make sure that the Host Server has not been put on “Do not allow new connections.
Conclusion:

We have seen four ways that will help you in eliminating Remote Logins Are Currently Disabled Citrix Error. The error only occurs if the netlogon or similar setting has been disabled. With this article you get all the methods by using step by step guide also we have briefly discussed its causes.

We hope these Remote Logins are Currently Disabled Citrix article resolves your issues. For more articles on troubleshooting, follow us. Thank you!

  • Remove From My Forums
  • Question

  •  

    Hello,

    I have a RDS farm with two RD Session Hosts. I use DNS Round Robin and life is good and everything working until I try to take out one of the servers from the farm. To do so I go to the RD Session
    Host Configuration | Member of farm in RD Connection Broker | General tab | and check ‘Allow connections, but prevent new logons’.

    When users now try to connect to the farm and DNS resolves the farm entry rdsfarm1.domain.com with the IP pointing to the RD Session Host I disabled they see the message ‘Remote Logins are currently
    disabled’. If they hit the server which is not disabled then everything works fine.

    I now found the following thread in this forum and in there is sounds like this is expected. I personally would have expected that disabled RDS Session Host is still forwarding requests to Connection
    Broker but that does not seem to be the case.

    http://social.technet.microsoft.com/Forums/en/windowsserver2008r2rds/thread/858f8068-35d7-4093-8294-9dab191d957d

    If this is expected and I would have to take additionally the DNS entry for the disabled server out as well then this would not work for us and we would have to implement NLB. But before I do
    that I wanted to double-check if my theory is correct or if I have setup something wrong.

    Please let me know.

    Thank you
    Marcus

Answers

  • Hi Marcus,

    Your understanding is correct.  If you use DNS RR for balancing the initial connections, then you will need to remove the DNS record if you take a server out of service for some reason.  You may solve this issue by setting up dedicated redirector(s), using
    NLB, or using a rdp-aware hardware load balancer.  For example, if you had a dedicated redirector you could take a RDSH server down for maintenance and things would still work as long as the redirector server and the other RDSH server were still working. 
    The DNS entry for the farm would point to the redirector ip address instead of the RDSH servers.

    -TP

    • Marked as answer by

      Thursday, April 5, 2012 5:28 PM

  • Hi,

    Yes, use Drainstop on the host you plan to take out of service.  This will make sure that no new initial connections will be sent to the RDSH via NLB.

    -TP

    • Marked as answer by
      Yuan WangMicrosoft employee
      Wednesday, April 25, 2012 7:44 AM

If you trying to connect to a RDP server and you get this error:

Remote logins are currently disabled.

Description: The user is attempting to log on to a Terminal Server where an administrator has disabled logon by issuing the CHANGE LOGON /DISABLE command. In order to enable logon, the CHANGE LOGON /ENABLE command must be issued.

You would require the help of psexec utility to gain access to the command prompt of the desired server. You the below syntax:

psexec.exe “\SERVERNAME change logon /enable”

Overview of the CHANGE LOGON Command
The change logon command uses the following syntax:
change logon /enable | /disable | /query
The parameters that are used by the change logon command are:
/enable: Use this parameter to turn on logons from client sessions.
/disable: Use this parameter to turn off any further logons from client sessions. Currently-logged-on users are not affected.
/query: Use this parameter to display the current logon status.

NOTES: The change logon command applies to logons from client sessions. Logons from the console session are not affected.

Print Friendly, PDF & Email

Для обслуживания терминальных серверов в составе RDS фермы существует специальный режим Drain Mode (режим стока, слива). Переведя RDS сервер в drain режим, вы можете запретить серверу принимать новые RDP подключения пользователей, а текущие подключения будут активными пока пользователи не отключатся через logoff или по таймауту RDS сессии. После этого вы можете выполнить техническое обслуживание сервера, не останавливая работу RDS фермы (установить обновления, изменить настройки сервера или программ, обновить конфигурационные файлы и т.д.)

Содержание:

  • Что такое Drain Mode в Windows Server RDS?
  • Запрет входа новых пользователей на RDS сервер
  • Управление Drain Mode с помощью PowerShell

Что такое Drain Mode в Windows Server RDS?

Drain mode впервые появился в Windows Server 2008 (Terminal Services Server Drain mode) и позволяет запретить RDS хосту принимать новые подключения. Как правило этот режим используется, когда администратору сервера нужно произвести обслуживание сервера (установить обновления Windows, настроить или обновить приложения), не затрагивая доступность всей RDS фермы. RDS хост может работать в трех режимах Drain Mode:

  • Allow All Connections (это режим по умолчанию) -сервер RD Session Host принимает новые подключения;
  • Allow Reconnections, but Prevent New Logons – пользователям разрешено переподключаться к существующим сеансам, но создавать новые запрещено. Если перезагрузить сервер, ни один пользователь не сможет подключится к нему;
  • Allow Reconnections, but Prevent New Logons until the Server Is Restarted – пункт аналогичный предыдущему, только после перезагрузки режим User Logon сбрасывается на Allow All Connections.

Запрет входа новых пользователей на RDS сервер

Вы можете включить Drain Mode на хост сервере RDS в настройка RDS коллекции.

  1. Откройте Server Manager -> All Servers -> Добавьте все RDS сервера фермы;
  2. Выберите Remote Desktop Services в левой панели Server Manager. Выберите раздел RDS коллекций (Collections);
  3. В секции HOST SERVERS выберите сервер, которые нужно перевести в Drain и в контекстном меню выберите пункт “Do not allow new connections” (Не разрешать новые подключения).

rds коллекция Do not allow new connections

Пользователи с активными сессиями смогут переподключиться к этому серверу, а все новые подключения будут перенаправлены Connection Broker-ом на другие хосты RDS фермы.

Также вы можете изменить Drain режим локально на RDS хосте из командной строки. Для этого используется команда
change logon
.

команда change logon

Чтобы запретить вход новых пользователей, выполните команду:

change logon /drain

change logon /drain - New user logons are DISABLED, but reconnections to existing sessions are ENABLED

New user logons are DISABLED, but reconnections to existing sessions are ENABLED

Теперь, если новый пользователь попытается напрямую подключится к RDS хосту (когда RD Connection Broker не используется), появится ошибка:

Remote logins are currently disabled.

rds windows server 2016 ошибка подключения Remote logins are currently disabled.
При этом в логах RDS хоста будет появляться событие с Event ID 1070 от источника TerminalServices-RemoteConnectionManager:

A logon request was denied because the RD Session Host server is currently in drain mode and therefore not accepting new user logons. To configure the server to allow new user logons, use the Remote Desktop Services Configuration tool.

Следующая команда включает режим Drain до перезагрузки хоста:

change logon /drainuntilrestart

Чтобы запретить подключаться к хосту даже пользователям с активными сессиями, выполните команду:

change logon /disable

Session logins are currently DISABLED

Если вы подключены к хосту Remote Desktop Session Host в режиме клиентской сессии, отключили вход данной командой и завершили свой сеанс (
logoff.exe
), вы сможете подключиться к серверу только через консоль (
mstsc /admin
).

Чтобы разрешить подключения, выполните:

change logon /enable

Проверить, включен ли режим стока на вашем RDS сервере можно командой:
change logon /query

Session logins are currently ENABLED

change logon /query
Если при попытке изменить режим Drain на сервере командой change logon появляется ошибка:

Connections are currently ENABLED by Group Policy for this machine, unable to change.

Connections are currently ENABLED by Group Policy for this machine, unable to change.

Значит у вас настроен режим Drain через GPO. Параметр называется Allow users to connect remotely using Remote Desktop Services и находится в разделе политик Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections.

групповая политика rds Allow users to connect remotely using Remote Desktop Services

Отключите данную политику, или переведите ее в режим Not Configured.

Управление Drain Mode с помощью PowerShell

Вы можете управлять настройками Drain mode для коллекции RDS хостов или на отдельном сервере с помощью PowerShell:

Import-Module RemoteDesktop
# запретить новые RDS подключения к этому серверу
Set-RDSessionHost -SessionHost rdsh1.winitpro.ru -NewConnectionAllowed No -ConnectionBroker rdshcb.winitpro.ru
# разрешить подключение пользователям
Set-RDSessionHost -SessionHost rdsh1.winitpro.ru -NewConnectionAllowed Yes -ConnectionBroker rdshcb.winitpro.ru

При изменении режима работы Drain меняются значения следующих параметров в реестре:

  • WinStationsDisabled в HKLMSoftwareMicrosoftWindows NTCurrentVersionWinlogon
  • TSServerDrainMode HKLMSystemCurrentControlSetControlTerminal Server

параметр TSServerDrainMode в реестре

Например в Drain Mode они устанавливаются
WinStationsDisabled = 0
и
TSServerDrainMode = 2
.

Также вы можете проверить текущий режим Drain на хосте таким PowerShell скриптом:

gwmi win32_terminalservicesetting -N "rootcimv2terminalservices" | %{
if ($_.logons -eq 1){
"Disabled"}
Else {
switch ($_.sessionbrokerdrainmode)
{
0 {"Enabled"}
1 {"DrainUntilRestart"}
2 {"Drain"}
default {"error"}
}
}
}

Включается режим Drain в PowerShell так (аналог
Change logon /Drain
):

$temp = (gwmi win32_terminalservicesetting -N "rootcimv2terminalservices")
$temp.sessionbrokerdrainmode=2
$temp.put()

Для перевода сервера в обычный режим (
change logon /enable
), выполните:

$temp = (gwmi win32_terminalservicesetting -N " rootcimv2terminalservices ")
$temp.sessionbrokerdrainmode=0
$temp.logons=0
$temp.put()


powershell - включить/отключить режим стока drain mode

Remote Logins Are Currently Disabled

Troubleshooting Remote Logins Are Currently Disabled Citrix Error can be a little complicated. We have demonstrated methods that you can use to fix this error. The following are the methods. In the first method, we will manually enable the service or process using the command prompt. In the second method, we will enable the logon services using the Remote Desktop Session Host Configuration Utility. In the third method, we will fix the issue using the registry editor. Finally, in the fourth method, we will talk about some essential points that you should know.

1. Using Command Prompt –

In this method, we will fix the Remote Logins are Currently Disabled Citrix issue by using the command prompt. We will execute the command that will enable the disabled remote login services. Follow the steps.

  • STEP 1. In the Start menu, type cmd
  • STEP 2. Now right click on the command and click on Run as administrator
  • STEP 3. In the command prompt window, type the following command

psexec.exe<strong> SERVERNAME </strong>change logon<strong> /enable</strong>

  • STEP 4. Above command will enable the remote logins and eliminate the error
  • STEP 5. PSEXEC.EXE is a handy utility, following are the other attributes that you can use to know some important information
    • The psexec.exe command can be used using the following attributes
      change logon /enable  /disable  /query
      The parameters that are used by the change logon command are:
      • /enable: This attribute is used to enable logins from client
      • /disable: This attribute is used to disable logins from the client, already logged on users will have no effect
      • /query: This attribute is used to display the current logon status

Link to download – https://docs.microsoft.com/en-us/sysinternals/downloads/psexec

Понравилась статья? Поделить с друзьями:
  • Regsvr32 exe ошибка
  • Refresh backgroundquery false ошибка
  • Refra кондиционер коды ошибок
  • Reflash 12345 ошибка
  • Referenceerror gulp is not defined ошибка