http 503 service unavailable on SharePoint

In CategoryWindows, Windows Server Technology

Error: http 503 service unavailable

Whenever I see this error message on share point site, first I look at status of Application pool . If it is disabled/stopped then I look at windows event-viewer log .

There were couple of warning messages followed by an error message in event viewer .

Warning Message 1: Event ID 5059 : Event Source : WAS

“The identity of application pool SharePoint – mysharepoint.loacl443 is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.”

Warning Message 2: Even ID 5057 : Event Source: WAS
“Application pool SharePoint – mysharepoint.loacl443 has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.”

Error Message :
“Application pool SharePoint – mysharepoint.loacl443 has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.”

sharepoint event viewer errors

sharepoint event viewer errors

As a solution ,

I have changed application identity account password and set the same password for that service account from share point management shell .

Set-SPManagedAccount -identity MYDOMAIN\serviceaccount_user -NewPassword (Converto-Securestring “P@ssword” -AsPlainText -Force) -SetNewPassword

sharepoint web application pool settings

sharepoint web application pool settings

Then restarted WAS service from command prompt window ( run as Administrator )
net stop was /y
net start was

net start w3svc

Change RDP listening port without System Reboot

In CategoryWindows, Windows Server Technology


We can easily change remote desktop listening port to some other port than the default 3389.

By default RDP listens on TCP 3389. Once we change this port to some other port , We may need to restart the system to activate the new listening port .

open registry editor and navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Then click on PortNumber and select radio button Decimal which will show value in Decimal. Now enter a desired port number and close the registry editor.

To activate this new port , press Windows+R on keyborad which opens up run window. Type services.msc in run window and press enter now we can restart “Remote Desktop Services” from Sevices list . This will cause any existing remote desktop connection to close and one may need to reopen remotedesktop on new port by entering IPADDRESS:NEWPORT on Remote Desktop client (mstsc)

mysql command prompt backup on windows

In CategoryWindows

Open command prompt  by typing cmd in windows run window

locate mysql installation directory if mysql bin path is not added on your system .

for example ,

command_prompt>cd  C:\Program Files\MySQL\MySQL Server 5.0\bin


command_prompt>mysqldump.exe -uROOT -pMYPASSWORD MY_DATABASE > c:\backup.sql

to bakup all the databases  just type the command mysqldump.exe -uROOT -pMYPASSWORD –all-databases > c:\backup.sql







Windows 7 slow down After installing service pack

In CategoryWindows

Your computer slowed down just after installing service pack  ?

Yeah ! I too faced the similar problem .

I installed service pack on my windows 7  and as soon as I restarted the computer , Processor usage reached 50%  with no running applications.

Finally found that the cause for this was a process called mscorsvw.exe  process  . This process is responsible for compiling  .net assemblies .

When we installed the service pack which includes the .net updates or pacthes   , it will re compile the assemblies in the background.

Once this process complete ,the  processor usage will return to normal.

If we run the command ” C:\WINDOWS\Microsoft.NET\Framework\(version of framework)\ngen.exe executequeueditems ” It will forcibly process the queued items.

On my computer the active ngen.exe was in v2.0.50727 so , I just right clicked on  accessories –> commandprompt and choose run as Administrator , then typed the command

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe executequeueditems