Enable or Disable RDP - Registry (Windows)
nable or Disable RDP - Registry (Windows)
Method 1: CMD
You can use the change logon command to display the status of current logons or to disable and enable logons from Terminal Services clients.
When you disable logons, current users are NOT affected, but new client sessions will NOT connect to the server.
NOTE: You must have administrative privileges to use the change logon command.
When you open a CMD prompt on the terminal server and type change logon /?, you receive:
Enable or disable session logins. CHANGE LOGON \{/QUERY | /ENABLE | /DISABLE\} /QUERY Query current session login mode. /ENABLE Enable user login from sessions. /DISABLE Disable user login from sessions.
NOTE: Logons from the console session are not affected.
NOTE: If you restart the server, logons are enabled.
NOTE: If you disable logons from a client session and then log off, you must log on to the console to enable further logons.
NOTE: When you disable logons, you receive: Session logins are currently DISABLED. When you enable logons, you receive: Session logins are currently ENABLED.
NOTE: When logons are disabled, a client attempting to connect will receive:
Remote logins are currently disabled.
Method 2: Using Registry
Allow or prohibit Remote Desktop connections to your Windows machine through Command Prompt or PowerShell.
Run the required command from shell with Administrative privileges.
To enable RDP:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
To disable RDP:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f
Solution
Often administrators need to have exclusive access to the server and be able to block such access by users. In such situations, it is required to temporarily disable logging in via the RDP protocol. We do this with the commands shown.
Method 2: Using PowerShell
To enable RDP with the PowerShell, use the following steps.
Option 1
To enable RDP:
- Launch PowerShell as Administrator.
- Type the following command and create a script block and use the Invoke-Command cmdlet:
1
|
Invoke-Command –Computername “server1”, “Server2” –ScriptBlock {Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" –Value 0}
|
NOTE: Enabling RDP through PowerShell will not configure the Windows Firewall with the appropriate ports to allow RDP connections.
Type the following:
To disable RDP with the PowerShell, use the following steps.
- Launch PowerShell as Administrator.
- Type the following command:
1
|
Invoke-Command –Computername “server1”, “Server2” –ScriptBlock {Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" –Value 1}
|
Method 3: Use Group Policy
If you have numerous Servers and/or Workstations that you need to enable RDP on and they are in the same Organization Unit structure in Active Directory you should enable RDP through Group Policy.
To enable RDP Using Group Policy.
- Launch the Group Policy Management Console (GPMC)
- Either edit an existing Group Policy Object (GPO) or create a new GPO.
- Navigate to the following GPO node:
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections
BEST Virtual Machine Software For Windows
VirtualBox - Best for virtualization for enterprise and home use for free.
Price: Free Virtual Machine for Personal and Educational use . Personal Use and/or Educational Use expressly exclude any use of the Product for commercial purposes or to operate or run a business, organization, governmental organization, or educational institution.
Website: Virtual Box
VMware Workstation Player - .
Price: Workstation Player is a free application and a non-advanced virtualization application. Workstation Player is a more basic and non-commercial virtualization tool, whereas Workstation Pro is a more advanced and professional virtualization solution for creating and managing Virtual Machines. The licensed version enables Workstation Player to run VMware Workstation Pro and Fusion Pro Virtual Machines. Non-licensed Workstation Player cannot run multiple VMs at once. VMware Workstation Player is free to use, whereas the VMware Workstation Pro requires a license.
Website: VMware
Oracle VM - Best for developing and deploying virtual environments on Windows, Solaris, and Linux for free.
Price: Free
Website: Oracle VM
Hyper-V - Best for creating virtual environments on Windows 10 and Windows Server for free.
Price: Free
Website: Hyper-V
QEMU - Best for creating a virtual environment on multiple architectures and OS for free.
Price: Free
Website: QEMU
Citrix Hypervisor - Best for testing intensive workloads in a virtualized environment for Citrix Virtual App users.
Price:
- Free for Citrix Virtual Apps users only
- Citrix Virtual app: $10 per user per month
Website: Citrix Hypervisor
Red Hat Virtualization - Best for enterprise-level virtualization for a containerized or cloud-native environment.
Price:
- Contact sales for a quote
- Trial: Yes | 60 days
Website: Red Hat Virtualization
VMware Fusion - Best for enterprise-level virtualization for a containerized or cloud-native environment.
Price:
- $149 – $241
- Trial: Yes | 30 days
- Website: VMware Fusion
Xen Project - Best for server virtualization, Infrastructure as a Service (IAAS), and desktop virtualization for free.
Price: Free
Website: Xen Project
Google Cloud Compute Engine - Best for secure and customizable virtualization on multiple platforms.
Price:
- Contact sales for price
- Trial: Yes | 90 days
Website: Google Cloud Computer Engine
KVM - Best for full virtualization of apps on x86 computers running Linux OS.
Price: Free
Website: KVM
Parallels Desktop - Best for Windows, Linux, Mac.
Price: 80 $
Website: Parallels
MOBALiveCD - Best for Windows, Linux, Mac.
Price: Free
Website: Parallels
Linux dd Command Show Progress Copy Bar With Status
Linux dd Command Show Progress Copy Bar With Status
How usedd command while coping /dev/sda to /deb/sdc and display a progress bar when data goes through a pipe? How do I monitor the progress of dd on Linux?
The dd is a free and open source command-line tool for Linux, and Unix-like operating systems. It is mainly used to convert and copy files. Being a program mainly designed as a filter dd usually does not provide any progress indication.
The syntax is as follows to show progress copy bar with dd command:
dd if=/path/input of=/path/output status=progress
Joomla error - Cannot write to log file
Joomla error after upgrade to 3.10.10
0 Cannot write to log file.
/www/libraries/src/Log/Logger/FormattedtextLogger.php:176
Call stack | ||
# | Function | Location |
1 | () | JROOT/libraries/src/Log/Logger/FormattedtextLogger.php:176 |
2 | Joomla\CMS\Log\Logger\FormattedtextLogger->addEntry() | JROOT/libraries/src/Log/Log.php:320 |
3 | Joomla\CMS\Log\Log->addLogEntry() | JROOT/libraries/src/Log/Log.php:166 |
4 | Joomla\CMS\Log\Log::add() | JROOT/libraries/src/MVC/Controller/BaseController.php:535 |
5 | Joomla\CMS\MVC\Controller\BaseController->checkEditId() | JROOT/administrator/components/com_content/controller.php:44 |
6 | ContentController->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:702 |
7 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/administrator/components/com_content/content.php:21 |
8 | require_once() | JROOT/libraries/src/Component/ComponentHelper.php:402 |
9 | Joomla\CMS\Component\ComponentHelper::executeComponent() | JROOT/libraries/src/Component/ComponentHelper.php:377 |
10 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/AdministratorApplication.php:101 |
11 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT/libraries/src/Application/AdministratorApplication.php:159 |
12 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:225 |
13 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/administrator/index.php:51 |