How to disable APIPA(Automatic Private IP Address)

Before to get started with how to disable APIPA, its better to understand what is APIPA?

Short for Automatic Private IP Addressing, a feature of later Windows operating systems. With APIPA, DHCP clients can automatically self-configure an IP address and subnet mask when a DHCP server isn't available. When a DHCP client boots up, it first looks for a DHCP server in order to obtain an IP address and subnet mask.
If the client is unable to find the information, it uses APIPA to automatically configure itself with an IP address from a range that has been reserved especially for Microsoft. The IP address range is through The client also configures itself with a default class B subnet mask of A client uses the self-configured IP address until a DHCP server becomes available.

The APIPA service also checks regularly for the presence of a DHCP server (every five minutes, according to Microsoft). If it detects a DHCP server on the network, APIPA stops, and the DHCP server replaces the APIPA networking addresses with dynamically assigned addresses.

From last few days I am facing issue of my broadband connection, my laptop is not getting IP from DHCP server. Instead it taking IP of 169.254.* range (APIPA) so below is my solution to resolve the issue by disabling APIPA.

Disable APIPA

1. Open regedit from run.

2. Now go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tcpip\Parameters
3. And create new DWORD (32 Bit) Value and give it name as “IPAutoconfigurationEnabled” and value must be 00000000.

4. Close the regedit window and restart you client system.

You will never get IP of 169.254.* range of you once you disabled you APIPA.

Thursday by Prashant Shalgar · 0


Disk Management | Windows Operating System Basis and Dynamic Disk management

Disk Management
Basic Disks:
Basic Disk only works with Partitions.
Most common storage types used with Windows Operating Systems., with Basic Partition you can create Primary, Extended or Logical Drives., you can also say it’s the Original disk.

In Basic Disk If a drive (ex: E: Drive) is used up we can format the drive without any issues and recreate the File System and data.

Dynamic Disks: Dynamic Disks works with Volumes.

It provides features which Basic Disk do not support., like the ability to create volumes that cover multiple disks.
Types of Dynamic Volumes:

Simple Volume: This can be extended.
Spanned Volumes: It can consists of upto 32 disks.
Striped Volumes: It can consists of upto 32 disks. ( RAID 0 ) [Block by block striping]
Mirrored: It only consists of two disks ( RAID 1 ) [Block by block mirroring]
Striped with Parity: It can consists of upto 32 disks. (RAID 5 )

Simple Volumes:
Simple volume is a kind of dynamic disk volume.

Spanned Volumes: If one disk goes down all files are lost & whole library goes unavailable. It utilizes one disk at a time and when it fills it movies to the other disks.

Striped Volumes: Condition -> All disk should be of same size.
It utilizes all available disk at a time, still performance will be of 1 Disk times total disks., same as Spanned volumes if 1 disk fails whole library goes down.

Mirrored Volumes: Condition -> Disk should be of same size.
This is a fault tolerant volume, it makes use of two disk and it writes the same file to two disks., you can attach both disk to a controller drive (SCSI Controller ) two controller attaches to each drive for fault tolerant.

Striped Volumes: RAID 5
It writes a file to 3 disks (Ex: 1st Disk, 2nd Disk & 3rd Disk) and saves a parity information to another disk. So when a disk falls all the data will be reconstructed using parity checksum.
Difference between Basic Disk and Dynamic Disk.

Basic Disk
Dynamic Disk
Industry Standard, Primary partition can be read by Unix/Linux.
Logical Disk Manager, easy to transfer disk to another server.
Single drive
Unlimited volumes
Laptops / Removable
Flexible volumes.

Adding and Breaking Mirrored Disks:

You can make use of Command line utility “Diskpart”, run Command prompt with admin privilege:
and type-> DISKPART
DISKPART> Select Volume D:
Output: Volume 2 is the selected volume.
DISKPART>add disk3
Diskpart complete in adding a mirror to the volume.
DISKPART>break disk2 (will break)
DISKPART>break disk3 nokeep (this will delete the mirror)

Steps to Convert MBR disk to GPT disk:
Run Command prompt with admin privilege:

Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: Winadmin-LPT
DISKPART> list disk
  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          465 GB  1024 KB
DISKPART> select disk 0
Disk 0 is now the selected disk.
DISKPART> list partition
  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary            100 MB  1024 KB
  Partition 2    Primary             65 GB   101 MB
  Partition 3    Primary            100 GB    65 GB
  Partition 0    Extended           300 GB   165 GB
  Partition 4    Logical            300 GB   165 GB
DISKPART> select partition 0
Partition 0 is now the selected partition.
DISKPART> delete partition
DISKPART> convert gpt

Disk checking utilities:
1. System File Checker tool (SFC.exe)
CMD> sfc /scannow
2. Check Disk from a Command Line to Check for and fix Disk Errors
CMD> chkdsk /f /r
/F       Fixes errors on the disk.
/R       Locates bad sectors and recovers readable information (implies /F).

Tata Consultancy Services Interview Question:
How many primary partition you can have in Basic Disk?
Ans -> You can have 4 primary partition in Basic Disk, or 3 primary partition and 1 extended partition or logical partition.

Saturday by Gyan Mainali · 0


How to make laptop as a WiFi hotspot

This is amazing trick to create WiFi hotspot network using you laptop or PC (Need WiFi Card).

Step by Step procedure to create WiFi Hotspot.
  1. Make sure that you have working internet connection to your laptop.
  2. Turn on your WiFi Network
  3. Go to Network and Sharing Center and click on "Change adapter settings"
  4. And Note the Name of you WiFi network adapter.In my case its "Wi-Fi"
  5. And Open the properties window by right clicking on you internet adapter card (your network adapter name could be "Ethernet Or Local Area Connection")
  6. On Sharing tab choose "Allow other network users to connect through this computer's Internet Connection" and select the WiFi adapter name that you have noted in step 4 and click OK.
  7. Open Command Prompt as administrator (Evaluated Command Prompt)
  8. Now type Below Commands 
netsh wlan set hostednetwork mode=allow ssid="XYZ" key=Password 

(at XYZ give the desire name that your WiFi Hotspot will show while connecting and Type desire password in place of "Password")

netsh wlan start hostednetwork

netsh wlan show hostednetwork

I have created one batch script for this commands, you can download it here and right click Run As Administrator

Note - 
     You have to  run this commands or script every time whenever you turn off and start your system.

Sunday by Prashant Shalgar · 0

Windows Admin Jobs in Pune