APIPA comes to static IP Virtual Machine after Rebooting

I was installing security updates which require rebooting the server, after the reboot i wasn’t able to connect to the server remotely, after connecting through the Hyper-V console i found that the machine got APIPA address in spite of having a static IP address.

After searching over the internet i found the solution, i will mention it here and share the source as well.

from the command prompt write:

  • netsh interface ipv4 show inter

Result will be:

1 50 4294967295 connected Loopback Pseudo-Interface 1
11 10 1500 connected Local Area Connection

 

11 keep this number in your mind.

Then run the following command:

  • netsh interface ipv4 set interface 11 dadtransmits=0 store=persistent
  • Then go to services:

Disable  DHCP Client service.

  • Restart the Machine.

Resources:

http://lyngtinh.blogspot.com/2011/12/how-to-disable-autoconfiguration-ipv4.html

Advertisements

Create a file with a specific size

when i was testing the maximum message size should be allowed on Exchange Server , i needed to attach files with specific size, so instead of searching your files for the required size i found this kind command to generate the files with the required size:

you have to use FSUTIL command in the following format:

FSUTIL file createnew < path and name of the file > < size in bytes >

for Example;

To create a file with 20 MB size:

fsutil file createnew d:\TestFile.txt 20000000

 

Resources:

http://windowsitpro.com/systems-management/how-can-i-create-file-certain-size-windows-xp-and-later

BitLocker Drive Encryption:

 

To make your Data accessible only by an authorized people, Microsoft introduced very great tool to do Full Disk Encryption, it is the BitLocker Drive Encryption.

BitLocker Drive Encryption feature is included in an Enterprise and Ultimate editions of windows Vista and Windows 7 in addition to windows server 2008 and windows server 2008 R2.

How to Encrypt your Drive?

· From the control panel click on BitLocker Drive Encryption, All removable and fixed Disk Drives will be shown.

 

Read the rest of this entry »

How to Enable GodMode in windows7 ?

 

GodMode is a feature in windows7 , make you take the control of whole computer system from one folder instead  of opening many system folders and going here and there, this tool make the administration is easier and faster.

How to use it ?

  • Create a new folder.
  • Rename the folder to GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} (note that you can change the “GodMode” text, but the previous period and code number are essential).
  • The folder icon will change — double click it to show the GodMode window. Godmode