How to enable hibernate on windows 8.1

Step 1: Press Windows + R to get “run” window and type “powercfg.cpl”


Press enter. Now you will be lead to “Power options” window.


Step 2: Click on “Choose what power buttons do”.


Step 3: Click on “Change settings that are currently unavailable”


Now some controls are enabled. Scroll down, there you can able to see “Hibernate” option which is not ticked.

5Step 4: Check “Hibernate”


And “Save changes”.

Now, right click on start button..


After this change, “Hibernate” will be visible in settings charm shutdown command also


How to register .NET framework in IIS

If you install IIS after installing framework, you have to register framework in IIS. Otherwise you will get following message after hosting application in IIS.

ASP.NET 4.5 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.5 in order for your site to run correctly.

You may get error of different version instead of 4.5 according to your configuration. So to register framework in IIS, run the following command in command window.

  • Register framework to IIS without changing existing web applications to use this version of

C:\windows\Microsoft.NET\Framework\v4.0.30319->aspnet_regiis –ir

  • Or Installing framework to IIS

C:\windows\Microsoft.NET\Framework\v4.0.30319->aspnet_regiis –i

This installed ASP.NET version v4.0.30319 without updating all script maps. After installing Rational

System Architect XT, the following command was run:

C:\windows\Microsoft.NET\Framework\v4.0.30319->aspnet_regiis -s W3SVC/1/ROOT/SAXT

This installed ASP.NET version v4.0.30319 at the specified application root and its subfolders. All existing script maps in the specified path and below were updated.

For the Rational System Architect XT Web Service add-on product, the Registration tool was run with the following command:

C:\windows\Microsoft.NET\Framework\v4.0.30319->aspnet_regiis -sW3SVC/1/ROOT/SAXTWebService

Which Service is using which port?

Every day we fell in some difficulties and want to know which service is using by which port? Ports are divided into three ranges: The well-known ports (from 0 to 1023), the registered ports (from 1024 to 49151) and Dynamic (Private) ports (from 49152 to 65535). The Internet Assigned Numbers Authority (IANA) is responsible for the global coordination of the port assignment. Here I will show some tools to figure out the problem. Two well-known utility NETSTAT.EXE and TASKLIST.EXE will be used here.

TASKLIST.EXE is used to know the list of processes with its owing id. When we run >tasklist in command window we see the following output.


Suppose, we want to know which port is used by skype? After running >>tasklist you will see the above output. Here you will see Image Name: Skype.exe with process id or PID: 3224. Now if you want to know which process owes process id or PID 3224? Just run >>tasklist /FI “PID eq 3224”. You will see the following output.

Tasklist pid

NETSTAT.EXE is used to identify what ports are being used by a particular process. The syntax that we will be using for NETSTAT.EXE is as follows: netstat.exe –a –n –o. Here,

  • -a: listing of all connections and listening ports
  • -n: display address and port numbers in numerical form
  • -o: display the owning PID associated with each connection

Now after running >netstat –a –n –o , you will see the following screen.


If you look at the output, you will see that local address of PID 3224 is which mean process id 3224 used port 55956. You already know that 3224 is the PID of process Skype.exe. So, you came to know that process skype.exe is used port 55956.

Configure Windows Server 2008 R2 to install SharePoint 2010

To install SharePoint 2010 on Windows Server 2008 R2 we need to configure server with the following roles and features.

Add Roles: Application Server & Web Server

To install SharePoint 2010 we need to configure server with the following roles and features.

Add Roles: Application Server & Web Server

  1. Click “Server Manager”
  2. Click “Roles”
  3. Click “Add Roles”
  4.  Mark “Application Server and Web Server”


5. Click “Add Required Features” in the above screen.

  1. Click Next
  2. Select Role Services of Application server like below screen.

28.       Select Role Services of Web Server like below screens.



9.       Click next & Install

Add Roles: File Services

  1. Click “Server Manager”
  2. Click “Roles”
  3. Click “Add Roles”
  4. Mark “File Services”
  5. Click “Next”
  6. Select “File Server” like below screen.


  1. Click Next & Install

Add Features:

  1. Click “Server Manager”
  2. Select Features at the left side of the screen
  3. Click “Add Features”
  4. Select features like below screens.



  1. Click “Next”
  2. Restart your computer

Folder permission from windows command line

To give all permission in temp folder for every one, run command prompt with admin privilege and then run the following command.


/t means “apply change recursively”
/e means “edit existing DACL”.

Alternative way
You can try with the following command
C:>icacls “C:\Windows\temp” /grant mahedee:(OI)(CI)F
F= Full Control
CI= Container Inherit
OI= Object Inherit

How to find pen drive hidden folder

Sometimes due to virus attack, our pen drive data is hidden.  We think, all folders are deleted. So, check first before you format your Usb otherwise you will lose your data forever.  Sometimes hidden files are not displayed even if you “Show hidden files and folders” in the Folders Options. To find hidden folder in your pen drive. Just run the following command in your command window.

attrib -h -r -s /s /d g:\*.*

For accurate command just copy the above command and pest it. Here g: is considered your pen drive.  Replace g by your pen drive “drive letter”

How to release port 80

Few days ago, I fall in a problem. I could not start apache server by XAMP control panel. There was a message shown port 80 busy. However ultimately, I found the solution this was due to IIS server. IIS Server was running on port 80 at that time.

Here is the step by step procedure, how I release port 80

1. Go to command prompt.
2. Check which process is using port 80

  • On the command prompt window, type the following command.

    netstat -o -n -a | findstr 0.0:80

  • You will see the following screen

The last column is process Id column

Open Task Manager to check the process ID

  1. Right click on the taskbar to open the the task manager.
  2. Go to the Processes tab.
  3. Click the View menu
  4. And make sure you select the PID (Process Identifier) as shown in the image below.

Now you can see which process is using which PID and description like the following

Stop the services

  1. Go to Task Manager.
  2. Click the Services tab
  3. Arrange the Services by description or by
  4. For IIS I found Service name as IIS Admin
  5. Right click on it and select Stop Sevice.