Introduction
This article explains how to disable specific features on a Server 2022 system with two local users, one admin and one standard. We will cover disabling Command Prompt (cmd), PowerShell, Ctrl+Alt+Del, and Microsoft Edge.
Disabling Command Prompt (cmd)
To disable the Command Prompt, follow these steps:
- Press
Windows key + Xand selectSystem. - Click on
Advanced system settings. - Go to the
Advancedtab and click on theSettingsbutton underPerformance. - In the
Visual Effectstab, scroll down toAdjust for best appearanceand selectAdjust for best performance. - Click
Applyand thenOK.
Command Prompt is now disabled.
Disabling PowerShell
To disable PowerShell, you need to modify the PowerShell execution policy:
- Open PowerShell as an administrator.
- Type
Set-ExecutionPolicyRemoteSignedand press Enter. - Confirm the change by typing
Yand pressing Enter.
PowerShell is now disabled for scripts from the internet. To disable PowerShell completely, you can also remove the PowerShell executable:
- Press
Windows key + Rand typeregeditto open the Registry Editor. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers. - Create a new key with the name
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe". - Set the value
"Disable"inside the new key.
Disabling Ctrl+Alt+Del
To disable Ctrl+Alt+Del, you need to modify the Group Policy:
- Press
Windows key + Rand typegpedit.mscto open the Local Group Policy Editor. - Navigate to
User Configuration>Admin Templates>System>Logon. - Double-click on
Shutdown: Allow control alt delete. - Set it to
Disabledand clickOK.
Disabling Microsoft Edge
To disable Microsoft Edge:
- Press
Windows key + Rand typeregeditto open the Registry Editor. - Navigate to
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Policies\Admin. - Create a new key with the name
"Microsoft-Windows-Shell-ExperienceHost. - Set the value
"DisableShellExperienceHost"inside the new key to1.
Microsoft Edge is now disabled.
Summary
In this article, we learned how to disable Command Prompt, PowerShell, Ctrl+Alt+Del, and Microsoft Edge on a Server 2022 system with two local users. We covered disabling Command Prompt through the System Properties, PowerShell through the execution policy and Registry Editor, Ctrl+Alt+Del through the Local Group Policy Editor, and Microsoft Edge through the Registry Editor.