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
Trwa kampania e-mailowa naśladująca wiadomości przychodzące z serwisu biznes.gov.pl
Trwa kampania e-mailowa naśladująca wiadomości przychodzące z serwisu biznes.gov.pl - ostrzega Zespół Reagowania na Incydenty Bezpieczeństwa Komputerowego Naukowej i Akademickiej Sieci Komputerowej
Trwa kampania e-mailowa naśladująca wiadomości przychodzące z serwisu biznes.gov.pl - ostrzega Zespół Reagowania na Incydenty Bezpieczeństwa Komputerowego Naukowej i Akademickiej Sieci Komputerowej (CSIRT NASK).
Eksperci z CSIRT NASK wyjaśniają, że fałszywe e-maile informują o powiadomieniu, jakie czeka na odbiorcę w rządowym serwisie informacyjno-usługowym, a którego kopia znajduje się jakoby w załączniku.
W rzeczywistości załącznik to plik spakowany w formie archiwum, zawierający złośliwy skrypt, który po otwarciu może zainfekować system operacyjny urządzenia.
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
Płatnik pakiet podpisany przez Certyfikat ZUS - który jest nieaktualny
Płatnik wygenerował kolejny problem błąd który się pojawia podczas wysyłania deklaracji:
Pakiet podpisany przez Certyfikat ZUS - który jest nieaktualny
Certyfikat jest poza okresem ważności, co wynika z weryfikacji bieżącego zegara systemowego lub sygnatury czasowej.
Status certyfikatu na dzień złożenia podpisu: poprawny
Problem występuje ponieważ:
Certyfikat jest dostępny pod linkiem http://www.zus.pl/bip/pliki/PE-2-ZUS-EWD.pem
Program Płatnik pozwala na automatyczne pobranie certyfikatu przez opcje: Przekaz / Ustawienia przekazu elektronicznego / Certyfikaty / Pobierz.
Aktualizacja certyfikatu jest niezbędna dla prawidłowego działania aktualizacji i komunikacji programu Płatnik z systemem informatycznym ZUS.
Dotychczasowy certyfikat PE-2-ZUS-EWD 2 września 2022 r. przestaje być ważny.
- Numer SN dotychczasowego certyfikatu: 4ae54d7706519daee9ae6553bea7d7e1
- Numer SN nowego certyfikatu: 044b3689676f40ccf0f0d7b56472b77f
Uwaga, w przypadku pojawienia się poniższego komunikatu wystarczy kliknąć ok.
Informacja nie będzie się pojawiała po opublikowaniu nowej metryki w programie Płatnik.
Rozwiązanie:
Bardzo ważne przed wgraniem certyfikatu należy usunąć stary certyfikat z rejestru za pomocą przycisku Usuń z konfiguracji (Obok przycisku Pobierz). Jeżeli nie wykonamy tego kroku nowy certyfikat będzie niewidoczny.
Wchodzimy na Płatnika - Przekazy -> Ustawienia przekazu elektronicznego - zakładka Certyfikaty i klikamy POBIERZ - certyfikat sam automatycznie zostanie dodany do systemu!!

Certyfikat można też dodać ręcznie przez system ale pierwsze rozwiązanie jest prostsze i szybsze.
Uwaga - Jeżeli na komputerze pracują osoby na kilku kontach - certyfikat należy pobrać dla każdej osoby!
Strona 32 z 125