How to enable hibernate on windows 8.1

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

1

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

2

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

3

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

4

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

5Step 4: Check “Hibernate”

6

And “Save changes”.

Now, right click on start button..

7

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

8

How to Create Domain Controller in Windows Server 2008 R2

Domain concept is introduced in windows NT. Domain Controller (DC) is a server that is responsible to maintain security within window server domain. To install Domain Controller (DC) in Windows Server 2008 R2, follow the steps.

Step 1: Click “Start -> Administrative tools -> Server Manager -> Roles -> Add Roles”

1

Step 2: Click next on the following screen.

2

Step 3: Select Server Role – “Active directory domain service” and Click Next.

3

4Step 4: Click “Install”

5

Step 5: Now install DNS Server and active directory service. Go to “run” and type “dcpromo”

6

Step 6: In Active Directory Domain Services Installation Wizard. Press “Next” and don’t check on “Use advance mode installation”.

7

8

Step 7: Select “Create a new domain in a new forest” and click “Next” on the following screen

9

Step 8: Type your domain name and click “Next”.

10

Step 9: Select Windows Server 2008 R2 and click “Next”

11

Step 10: If this is the first Domain controller then the following message will be visible. Check “DNS Server” and click “Next”

12Step 11: Press “Yes” to continue.

13

Step 12: Select the location to keep log of Active Directory Domain Controller.

14

Step 13: Type administrator password and Confirm password for directory service and click “Next”

15

Step 14: Click “Next” of Summary window and check reboot the computer of the following screen.

16

17

Step 15: Your Domain Controller installed successfully. Now login to the system by domain Id.

last

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.

tasklist

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.

netstat

If you look at the output, you will see that local address of PID 3224 is 0.0.0.0:55956 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”

1

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.

3

4

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.

5

  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.

6

7

  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.

OS01

Here,
/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
Here,
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

1
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.