Saturday, December 24, 2022

RDPClient_SSL(TsSslEventHandshakeContinueFailed): 2022-12 Cumulative Update for Windows Server 2016 for x64-based Systems (KB5021235)

 Hi there, 

Post installation of this update - "2022-12 Cumulative Update for Windows Server 2016 for x64-based Systems (KB5021235)" on one of the domain controllers in Azure VM.  We started facing a weird RDP Authentication issue where users with even the correct credential failed to take an RDP session of remote systems in another network(site).

After investigating further, We noticed the below warning message in the event log for RDP Service-

RDPClient_SSL: An error was encountered when transitioning from TsSslStateHandshakeInProgress to TsSslStateDisconnecting in response to TsSslEventHandshakeContinueFailed (error code 0x80004005).

In the end, we had to uninstall this CU Update - KB5021235 from the domain controller which has fixed the issue.

So if you're having a similar issue, I request you to please try uninstalling this update or hold for installation. 

Hopefully, the Microsoft update team will fix this issue very soon.

Thank you,

 

Wednesday, December 14, 2022

Learning Linux - Create a simple shell script(Part-2)

 In part 1 of this blog series, We have seen how to work on essential Linux commands. In part 2, We will assist you to understand the basic logic and loop format while creating your first bash script. 

Prerequisites: I am hoping you have basic knowledge and experience with Linux. 

- Use scripting to automate system maintenance tasks

Scripting: #! Shebang - #!/bin/bash , # comment a line or text

- Conditional Logic(if)

IF Example: 

if [condition block] 

then

Command section

elif [condition block] 

then 

Command section

else 

Command section

fi 

    Conditional Operators

              
                

        






   

    -Processing shell command exit codes

        Exit Code: run 'echo $?' post running any command to know the exit code


    - Use Looping constructs (for, etc.) to process file, command line input

For Loop: Perform repetitive tasks 

Example: 

for mission in $(cat mission-names.txt)

do 

create-and-launch-rocket $mission

done

    while Loop usage: wait in the loop until specific condition matches/create infinite loops/Menu driven programs

Example:

while [$rocket_status = "launching"]

do

sleep 2

rocket_status = rocket-status $mission_Name

done

-> echo "Thank You :) "