Skip to main content

Posts

Plesk : How to create banner notification in plesk

 Today we will learn how to post banner notification in Plesk -Windows. This is useful when you want to display a specific content like new features or downtime message in the homepage of customer panel. We will be using the plesk extension - Broadcast message to achieve this task. To install the extension : C:\> plesk bin extension --install broadcast-message Turn on the extension : C:\> plesk db "update ModuleSettings set value = 1 where name = 'enable' and module_id in (select id from Modules where name = 'broadcast-message')" Turn off the extension : C:\> plesk db "update ModuleSettings set value = 0 where name = 'enable' and module_id in (select id from Modules where name = 'broadcast-message')" Edit the notification text: C:\> plesk db "update ModuleSettings set value = '<new message>' where name = 'message' and module_id in (select id from Modules where name = 'broadcast-message')

Powershell : How to find if a software is installed or not

Task is to write a Function in Powershell which can be used by multiple boxes to find if a software is installed or not. SCRIPT

PowerShell Tip : How to fetch XML Event Data log using Powershell

  So Today, one of the member of our PowerShell Forum asked me the question - How to Fetch the XML Event Data like Prop_DeviceName , Prop_ContainerID etc of a specific event ID 112 from the event log. So here is the solution for the same. In this example we will use the cmdlet Get-WinEvent and will try to grab the details. CODE : Get-WinEvent -FilterHashtable @{Logname="Microsoft-Windows-DeviceSetupManager/Admin";Id=112} -MaxEvents 1 | %{ $eventXml = ([xml]$_.ToXml()).Event $eventXml.EventData.Data } OUTPUT : You can modify the script as per your need. Happy Learning!

Mailenable : Webmail showing Server communication failure

  Many Mailenable users are familiar with the error " Server communication failure. Please refresh your browser and try again. ". This error shows when you try to send an email using Mailenable webmail. In today's lesson, we will learn how to fix this. In general, there are two ways to resolve this problem: STEP 1 : The Mailenable webmail is mostly compatible with 32-bit applications written in .NET 2.0. To begin with, you can try this. Just go to MailenableAppPool and in Advanced settings change the .NET version to 2.0 and 32 bit as TRUE. STEP 2 : If the .NET version is already 2.0 and the error still occurs, then follow these steps. Go to Mailenable Bin path Search for " MeInstaller.exe " file > Run it as Administrator Now Select Option 13. Set .Net Framework version for web application > Next Now it will ask for the ASP.Net configuration details and select the appropriate one you want to use > Execute Hopefully, this will fix the problem.

How to fix Trust Relationship issue in Windows (without System Reboot)

  Hello Readers, today we are going to learn how to Fix trust relationship issue between the workstation and the domain. But before jumping into the solution, we need to learn the concept of Secure channel. What is a Secure Channel ? Before understanding the trust relationship issue, you will need to know what is a Secure channel .  Whenever you add a computer or client machine to an Active Directory domain, your computer account gets created in Active Directory. Secure Channel helps to make the communication between the client machine and DC (Domain Controller), Example : Replicating Group Policies. Always remember in a Secure channel the computer authentication takes place and not the User Authentication So for this Authentication Password is required. Once computer is joined to the domain a password for authentication is proposed to the Active Directory By Default, Computer account password change is initiated by the client computer in every 30 days . This can be modified in Group P

GIT : How to remove untracked files in git

There might be several conditions where you have started editing a file in git but then you realize its not needed any more and want to roll it back.  Such files will be showing in untracked files list in git as show below when you run git status command. Today we will learn how to remove such untracked files in git.  To fix it you can run the below command :  git clean -f 

Linux Tip : How to fix Route issues

Today we are going to learn how to fix route issues on Linux. Suppose you have 2 NIC interface (one is for public traffic - 100 GBPS Link and other one in Private interface for private communication 10 GBPS Link ). What is the exact issue ? Initially our customers reported that they were unable to reach internet on the box (They tried performing ping 8.8.8.8 -or- ping google.com). It was not working via both IP and domain name even tried with browser. So lets begin the troubleshooting : Step 1 : Replicate the issue from your side, because we need to be 100% sure before deep diving. Step 2 : We were able to replicate the same. It was 100% packet loss. So now we need to check if the public interface is up and running or not . Our public interface is eth1 so run command : ip a This will show you if interface is UP / Down. Eth1 was up and running here. Step 3 : Next I was interested to see how is the traffic going out - is it crossing any single hop or not , whether Gateway is reachable