Jnrk xbnm ctrl alt del windows server

Как отключить Ctrl-Alt-Del при входе в Windows Server - отправлено в Windows NT/2000/2003/2008/2012/2016/2019: Каждый раз при включении или подключении по RDP к Windows Server 2003, система требует ввода сочетания клавиш Ctrl-Alt-Del. На рабочем сервере функция полезная, но на тестовых серверах в виртуальной среде точно ненужная.   1. Как отключить Ctrl-Alt-Del при входе в Windows Server? Запускаем Редактор локальной групповой политики: Пуск – Выполнить – вводим gpedit.msc. Далее в от...

#1

Отправлено 17 Апрель 2013 — 04:34

Phil

    Генеральный Директор

  • Администратор
  • 7 610 сообщений

Каждый раз при включении или подключении по RDP к Windows Server 2003, система требует ввода сочетания клавиш Ctrl-Alt-Del. На рабочем сервере функция полезная, но на тестовых серверах в виртуальной среде точно ненужная.

1. Как отключить Ctrl-Alt-Del при входе в Windows Server?

Запускаем Редактор локальной групповой политики: ПускВыполнить – вводим gpedit.msc.

Далее в открывшимся окне:

В нерусифицированной версии винды:

Конфигурация компьютера -> Конфигурация Windows –> Параметры безопасности –> Локальные политики -> Параметры безопасности -> Интерактивный вход: не требовать нажатия сочетания клавиш CTRL+ALT+DEL –> Отключен

gpedit-nteractive-logon.png

Computer Configuration –> Windows Settings –> Security Settings –> Local Policies –> Security Options –> Interactive logon: Do not require CTRL+ALT+DEL — Enabled

После такой манипуляции при входе в систему будет сразу окно с требованием ввести пароль.

Все. Удачи

  • Наверх

#2


Phil

Отправлено 18 Май 2015 — 18:07

Phil

    Генеральный Директор

  • Администратор
  • 7 610 сообщений
; отключение запроса на пояснение причин перезагрузки
[HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTReliability]
"ShutdownReasonOn"=dword:00000000
 
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionpoliciessystem]
"VerboseStatus"=dword:00000000              - отключение статусных сообщений при перезагрузке
"DisableStatusMessages"=dword:00000001 - не помню, но тоже что-то полезное из этой темы
"disablecad"=dword:00000001                    - отключение Ctrl+Alt+Del при входе 

  • Наверх

Enable or Disable CTRL+ALT+DEL on Windows Server 2016

In this article, I’m going to show you how to disable CTRL+ALT+DEL on Windows Server 2016 or 2012 R2. In our previous articles, we have explained Configuring Account Lockout Policy in Windows Server 2016, Configuring Password Policies, and Configuring Audit Policy in Windows Server 2016. Here, I’m going to discuss on how to enable disable CTRL+ALT+DEL on Windows Server 2016. It’s really annoying when ask you this shortcut to enter while login to Windows Server. I myself does not like it. But for security reason it’s good. If you want to get rid of this, just go ahead with this step by step guide.

What is CTRL+ALT+DEL?

If this policy is enabled on a computer, a user is not required to press CTRL+ALT+DEL in order to log on. Not having to press CTRL+ALT+DEL leaves the user susceptible to attacks that attempt to intercept the user’s password. Requiring CTRL+ALT+DEL before log-on ensures that the user is communicating by means of a trusted path when entering their password.

If this policy is disabled, then any user is required to press CTRL+ALT+DEL before logging on to Windows (unless they are using a smart card for Windows login). This policy is disabled by default on workstations and servers that are joined to a domain. It is enabled by default on stand-alone workstations.

Disable CTRL+ALT+DEL on Windows Server 2016

To disable CTRL+ALT+DEL on Windows Server 2016 follow below steps.

Step #1. Open Local Security Policy then navigate to Server manager> Tools>Local Security Policy.

Enable or Disable CTRL+ALT+DEL on Windows Server 2016

Local Security Policy

Step #2. Go to Local Policies>Security Options. Search for Interactive logon: Do not require CTRL+ALT+DEL. Double click on it.

Disable CTRL+ALT+DEL on Windows Server 2016 | 2012

Disable CTRL+ALT+DEL on Windows Server 2016

Step #3. Once you double clicked on Interactive logon: Do not require CTRL+ALT+DEL. There you have two options “Enabled & Disabled”. By default that’s disabled and you have to enable it. When you enabled it, this will not ask you to press CTRL+ALT+DEL to continue.

Disable CTRL+ALT+DEL on Windows Server 2016

Interactive logon: Do not require CTRL+ALT+DEL

Conclusion

It was all about on how to enable or disable CTRL+ALT+DEL on Windows Server 2016 or Server 2012. I hope you guys have enjoyed reading this post. If you have any question regarding this post or our previous posts, just feel free to share via comment section down below with us. Thanks for being with us.

blank

Mukhtar Jafari

Mukhtar Jafari is the founder and CEO of wikigain.com. He is CISCO CCENT & CCNA Certified and has got his diploma in IT Networking from North Metro TAFE PERTH. He is currently working as a Help Desk Technician at DEEPTECH Perth Western Australia. In addition, he loves helping other tech enthusiasts so he is working part-time on wikigain.com. He shares his experience through this website for IT beginners.

Это вольный перевод статьи с сайта tamas.io о программном отключении и включении горячих клавиш Windows средствами C#. Совсем недавно мне самому понадобились подобные функции в моей программе и я с удивлением обнаружил, что в рунете ничего об этом нет, да и вообще в сети об этом сказано совсем немного. Так что, если интересно или также нужно, как было мне — добро пожаловать!

Я написал эту статью в 2007 году и она до сих пор ходит по сети и упоминается в различных обсуждениях, включая StackOverflow и DotNetSpider, так что я решил вновь опубликовать её. Это было актуально уже тогда и не было проверено на Windows 7, в силу того, что её на тот момент просто не существовало физически.
Перед тем, как продолжить чтение, прошу, обратите внимание на то, что эта статья вовсе не призывает вас создавать вредоносные приложения. Вы можете использовать приведённый код в целях обучения или для развлечения.

После небольшого исследования по отключению клавиш и их сочетаний я узнал, что есть несколько способов изменения поведения ранее упомянутых ключевых комбо.

Не волнуйтесь, мы не будем рассматривать их здесь, но я покажу, как с ними работать.

Используем возможности редактирования реестра C#, чтобы установить / изменить групповую политику для последовательности клавиш CTRL-ALT-DEL. Давайте посмотрим, что можно сделать не написав ни строчки кода. Откройте «Пуск -> Выполнить» и наберите gpedit.msc. Перейдите к: Конфигурация пользователя> Административные шаблоны> Система>Варианты действий после нажатия CTRL-ALT-DEL (User Configuration > Administrative Templates > System > CTRL+ALT+DELETE Options). Это то место, где стандартным способом можно установить действие, которое будет вызвано нажатием этого комбо. Дважды щёлкните по «Удалить диспетчер задач» (Remove Task Manager). Изменение этого параметра меняет значение в SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem и значение DisableTaskMgr получит значение 1.

Теперь задача стала яснее.

Важно, не пропустите эту строку:

using Microsoft.Win32;

Метод, который я написал, выглядит следующим образом:

public void KillCtrlAltDelete()
        {
            RegistryKey regkey;
            string keyValueInt = "1";
            string subKey = @"SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem";

            try
            {
                regkey = Registry.CurrentUser.CreateSubKey(subKey);
                regkey.SetValue("DisableTaskMgr", keyValueInt);
                regkey.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }

Таким образом, мы позаботились об изменении значения комбинации CTRL-ALT-DEL. Рассмотрим остальные сочетания. Возможно, вам могло показаться это сложным, но это проще простого. Как отключить ALT + F4? Всего 5 строк кода:

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            base.OnClosing(e);
        }

Хорошо. Об остальном пришлось много читать и сейчас будет трудно назвать точно те статьи, которые мне помогли разобраться, но из всех было штук 15, которые содержали хоть какую-то полезную информацию. Я дам вам метод, который называется хук. Фрагмент кода использует LowLevelKeyboardProc, который:

Процедура LowLevelKeyboardProc — это программно определённая или библиотечно определённая процедура вызова функции, используемая совместно с функцией SetWindowsHookEx. Система вызывает эту функцию каждый раз, когда событие ввода с клавиатуры вот-вот будет размещено в очереди потока ввода. Ввод с клавиатуры может пройти через драйвер или через вызовы функции keybdevent. Если вызов произошёл через вызов keybdevent, то он был «введён» (injected). Тем не менее, хук WHKEYBOARDLL не внедряется в другой процесс. Вместо этого, контекст переключается на другой процесс, на который установлен хук и вызывается в первоначальном виде. Затем, контекст переключается обратно на приложение, которое вызвало это событие.

И снова, не забудьте:


using System.Runtime.InteropServices;
using System.Security.Principal;
using System.Diagnostics;

Здесь всё остальное, что может ещё вам пригодиться:


[DllImport("user32", EntryPoint = "SetWindowsHookExA", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
        public static extern int SetWindowsHookEx(int idHook, LowLevelKeyboardProcDelegate lpfn, int hMod, int dwThreadId);
        [DllImport("user32", EntryPoint = "UnhookWindowsHookEx", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
        public static extern int UnhookWindowsHookEx(int hHook);
        public delegate int LowLevelKeyboardProcDelegate(int nCode, int wParam, ref KBDLLHOOKSTRUCT lParam);
        [DllImport("user32", EntryPoint = "CallNextHookEx", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
        public static extern int CallNextHookEx(int hHook, int nCode, int wParam, ref KBDLLHOOKSTRUCT lParam);
        public const int WH_KEYBOARD_LL = 13;

        /*code needed to disable start menu*/
        [DllImport("user32.dll")]
        private static extern int FindWindow(string className, string windowText);
        [DllImport("user32.dll")]
        private static extern int ShowWindow(int hwnd, int command);

        private const int SW_HIDE = 0;
        private const int SW_SHOW = 1;
public struct KBDLLHOOKSTRUCT
        {
            public int vkCode;
            public int scanCode;
            public int flags;
            public int time;
            public int dwExtraInfo;
        }
        public static int intLLKey;

        public int LowLevelKeyboardProc(int nCode, int wParam, ref KBDLLHOOKSTRUCT lParam)
        {
            bool blnEat = false;

            switch (wParam)
            {
                case 256:
                case 257:
                case 260:
                case 261:
                    //Alt+Tab, Alt+Esc, Ctrl+Esc, Windows Key,
                    blnEat = ((lParam.vkCode == 9) && (lParam.flags == 32)) | ((lParam.vkCode == 27) && (lParam.flags == 32)) | ((lParam.vkCode == 27) && (lParam.flags == 0)) | ((lParam.vkCode == 91) && (lParam.flags == 1)) | ((lParam.vkCode == 92) && (lParam.flags == 1)) | ((lParam.vkCode == 73) && (lParam.flags == 0));
                    break;
            }

            if (blnEat == true)
            {
                return 1;
            }
            else
            {
                return CallNextHookEx(0, nCode, wParam, ref lParam);
            }
        }
public void KillStartMenu()
        {
            int hwnd = FindWindow("Shell_TrayWnd", "");
            ShowWindow(hwnd, SW_HIDE);
        }
private void Form1_Load(object sender, EventArgs e)
        {
            intLLKey = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, System.Runtime.InteropServices.Marshal.GetHINSTANCE(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0]).ToInt32(), 0);
        }

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


public static void ShowStartMenu()
        {
            int hwnd = FindWindow("Shell_TrayWnd", "");
            ShowWindow(hwnd, SW_SHOW);
        }
public static void EnableCTRLALTDEL()
        {
            try
            {
                string subKey = @"SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem";
                RegistryKey rk = Registry.CurrentUser;
                RegistryKey sk1 = rk.OpenSubKey(subKey);
                if (sk1 != null)
                    rk.DeleteSubKeyTree(subKey);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            UnhookWindowsHookEx(intLLKey);
        }

Я надеюсь, вам понравилась статья и вы нашли в ней что-то полезное. Я постарался собрать здесь всю информацию, которую только смог найти по этой теме.

От себя дополню, что в .NET4 код вида:


intLLKey = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, System.Runtime.InteropServices.Marshal.GetHINSTANCE(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0]).ToInt32(), 0);

Не работает. Нужно писать что-то типа:


var inst = LoadLibrary("user32.dll").ToInt32();
intLLKey = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, inst, 0);

Ну и в начало кода структуры AddHooks, среди прочего импорта сделать:


LoadLibrary:
[DllImport("kernel32", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern IntPtr LoadLibrary(string lpFileName);

Надеюсь, перевод получился не совсем плох и окажется кому — либо полезен.
UPD: Ссылка на законченную рабочую программу.

Каждый раз при включении или подключении по RDP к Windows Server 2003, система требует ввода сочетания клавиш Ctrl-Alt-Del. На рабочем сервере функция полезная, но на тестовых серверах в виртуальной среде точно ненужная. Еще одна точно бесполезная функция — Event Tracker, которая каждый раз спрашивает зачем мы перезагружаем сервер. Мне нервные клетки дОроги и поэтому отключу надоедливые функции…

1. Как отключить Ctrl-Alt-Del при входе в Windows Server 2003?

Запускаем Редактор локальной групповой политики: ПускВыполнить – вводим gpedit.msc.

Далее в открывшимся окне:

Конфигурация компьютера -> Конфигурация Windows –> Параметры безопасности –> Локальные политики -> Параметры безопасности -> Интерактивный вход: не требовать нажатия сочетания клавиш CTRL+ALT+DEL –> Отключен

В нерусифицированной версии винды:

Computer Configuration –> Windows Settings –> Security Settings –> Local Policies –> Security Options –> Interactive logon: Do not require CTRL+ALT+DEL — Enabled

WinSrv2003 1 thumb Как отключить Ctrl Alt Del при входе в Windows Server 2003

После такой манипуляции при входе в систему будет сразу окно с требованием ввести пароль.

2. Как отключить Event Tracker?

При каждой перезагрузке любопытная Windows Server 2003 пытается узнать с какой целью мы это делает! А какое твое дело, спрашивается?

WinSrv2003 3 thumb Как отключить Ctrl Alt Del при входе в Windows Server 2003

ОТКЛЮЧИТЬ!

Запускаем Редактор локальной групповой политики: ПускВыполнить – вводим gpedit.msc.

Далее в открывшимся окне:

Конфигурация компьютера –> Административные шаблоны –> Система –> Отображать диалог слежения за завершением работы –> Отключен

В нерусифицированной версии винды:

Computer Configuration –> Administrative Templates –> System –> Display Shutdown Event Tracker –> Disabled

WinSrv2003 2 thumb Как отключить Ctrl Alt Del при входе в Windows Server 2003

Все. Удачи

  • Remove From My Forums
  • Question

  • Hello,

    There seems to be templates to disable different things on CTRL+ALT+DEL screen, but not Shutdown and Restart. How do I disable CTRL+ALT+DEL totally or remove Shutdown and Restart options?

    I need to disable all shortcuts like CTRL+SHIFT+ESC and WINDOWS+???, especially Windows+R as well.

    The aim is to allow user to use only one application that is being run as shell and totally nothing more via Remote Desktop.

    Best regards,

    FlashT

    • Edited by

      Thursday, July 25, 2013 9:05 PM

Answers

  • Hi,

    In an AD domain, this behavior can be controlled by this policy:

    [Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesSecurity Options: Interactive logon: Do not require CTRL +
    ALT + DEL]

    By default, this policy is Not Defined. That means CTRL + ALT + DEL is required.

    In your case, you can enable this policy to achieve your goal.

    Note:

    1.
    The «Control Userpasswords2» command needs administrator privileges.

    2.
    Disabling the CTRL+ALT+DELETE sequence creates a «security hole.» The CTRL+ALT+DELETE sequence can be read only by Windows, ensuring
    that the information in the ensuing logon dialog box can be read only by Windows. This can prevent rogue programs from gaining access to the computer.

    Regards,

    • Edited by
      Tom Zhang – MSFT
      Friday, July 26, 2013 8:37 AM
      edit
    • Proposed as answer by
      Arthur_LiMicrosoft contingent staff
      Saturday, July 27, 2013 1:43 AM
    • Marked as answer by
      Arthur_LiMicrosoft contingent staff
      Friday, August 2, 2013 1:49 AM

How to disable Logoff from Ctrl+Alt+Del via Group Policy in Windows Server 2012 R2

In this post, we will learn the steps to disable Logoff from the Ctrl+Alt+Del options via group policies in Windows Server 2012 R2. Using this policy, we’ll restrict the users from Log off when they press Ctrl+Alt+Del from their keyboard. This will prevent the users from logging off using this option. They can either shutdown, restart or log off from the start menu only.

Pre-requisite:
– On the Domain Controller, create an Organizational Unit and then create some users in the same OU. For this practical, we have created Finance OU and created some users in that.
– A client computer is required to check if the GPO to disable logoff from Ctrl+Alt+Del is working successfully or not.

How to promote Domain Controller

Before we deploy the policy to disable logoff from Ctrl+Alt+Del option, login on the client computer with the Domain user and then press Ctrl+Alt+Del, to check the options that Domain Users can see. In this practical, user can see options like Lock this computer, Switch User, Log off, Change a password and Start Task Manager.

Option “Lock this computer” would lock the computers. Option “Switch User” would switch the user and allows you to login with another User. Option “Log Off” would allow the user to Log off from the Computer. Option “Change a password” would allow user to change the current password. Option “Start Task Manager” would allow to run the task manager. 

Remove Logoff from Ctrl+Alt+Del (8)

Steps to disable Logoff from Ctrl+Alt+Del via Group Policy in Windows Server 2012 R2

1. On Domain Controller (DC), in Active Directory Users and Computers, we have created an OU naming “Finance” and added some users in the OU.

How to create Organizational Units in Active Directory

Remove Logoff from Ctrl+Alt+Del (1)

2. Open Group Policy Management Console (GPMC), and right click on “Finance” and then click on “Create a GPO in this domain, and Link it here“.

Remove Logoff from Ctrl+Alt+Del (2)

3. On New GPO console, enter the name of the group policy object. In this practical, the name of our GPO is “Remove Logoff from Ctrl+Alt+Del“. Click on Ok. It will create a blank GPO and link it with the domain.

Remove Logoff from Ctrl+Alt+Del (3)

4. On GPMC, right-click on the GPO and click on “Edit“. We would edit the default blank GPO to define the settings required.

Remove Logoff from Ctrl+Alt+Del (4)

5. On Group Policy Management Editor (GPME) console, under User Configuration expand Policies then expand Administrative Templates. Under Administrative Templates expand System and click on “Ctrl+Alt+Del Options“. On the right hand side, we can see options like “Remove Change Password”, “Remove Lock Computer”, “Remove Task Manager” and “Remove Logoff”. Double click on “Remove Logoff” to modify the settings of this policy.

Remove Logoff from Ctrl+Alt+Del (5)

6. On Remove Logoff console, select “Enabled” to enable this policy. Click on Apply and Ok. Enabling this policy would remove Logoff from the Ctrl+Alt+Del Options menu.

Remove Logoff from Ctrl+Alt+Del (6)

7. Login on a client computer with any domain user account added in the OU “Finance” and press “Ctrl+Alt+Del”. We can verify that the option of Log off is removed and this policy is successfully deployed.

Remove Logoff from Ctrl+Alt+Del (7)

Similarly, you can deploy all other options that are defined in the above mentioned step number 5 like “Remove Change Password”, “Remove Lock Computer” and “Remove Task Manager”.

Note: This policy would only disable logoff from Ctrl+Alt+Del, user can still log off computer by typing Logoff in the run or in command prompt.

Понравилась статья? Поделить с друзьями:
  • Jni скачать 64 bit windows 10
  • Jmicron pcie sd mmc host controller windows 10
  • Jmicron pci express gigabit ethernet adapter скачать драйвер windows 10
  • Jewels of egypt 3 в ряд скачать бесплатно для windows
  • Jmicron ohci compliant ieee 1394 host controller windows 10 driver