How to migration DHCP from Windows Server 2008 to 2012

Today simple tip how to migrate DHCP from Windows Server 2008 to 2012.

  • Log on to the old/existing DHCP server.
  • Click Start, click Run, type cmd in the Open box, right-click, and then “Run as Administrator”.
  • Type netsh dhcp server export C:\Users\Desktop\dhcp.txt all , and then press ENTER.
  • Install the DHCP role on the new (2012) DHCP server using Server Manager.
  • Copy the exported DHCP text file to the desktop of the new DHCP server.
  • Verify that the DHCP service is installed and started on the new DHCP server.
  • Click Start, click Run, type cmd in the Open box, right-click, and then “Run as Administrator”.
  • Type netsh dhcp server import C:\Users\Desktop\dhcp.txt all , and then press ENTER
  • Open DHCP console on the new server.
  • In the console tree, right-click DHCP.
  • Select “Authorize”.

That’s all folks.

How to remove PUBLIC FODER using ADSIEdit

Most of our clients are moving to Office 365. I found out that sometimes is really difficult to remove Public Folders.

This is easy way to solve it is use ADSI-Edit.

Exchange 2010

  1. Open ADSI-Edit and got to configuration
  2. Navigate to this path:
  3. CN=Configuration,DC=DOMAIN,DC=LOCAL
  4. CN=Services
  5. CN=Microsoft Exchange
  6. CN=EXCHANGE_ORG
  7. CN=Administrative Groups
  8. CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
  9. CN=Databases
  10. CN=PUBLIC_FOLDER_DATABASE
  11. Now you can delete the PF-Database you want to get rid off.

Exchange 2007

  1. Open ADSI-Edit and got to configuration
  2. Navigate to this path:
  3. CN=Configuration,DC=DOMAIN,DC=LOCAL
  4. CN=Services
  5. CN=Microsoft Exchange
  6. CN=EXCHANGE_ORG
  7. CN=Administrative Groups
  8. CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
  9. CN=Servers
  10. CN=SERVERNAME
  11. CN=InformationStore
  12. CN=STORAGE_GROUP
  13. CN=PUBLIC_FOLDER_DATABASE
  14. Now you can delete the PF-Database you want to get rid off.

Exchange 2003

  1. Open ADSI-Edit and got to configuration
  2. Navigate to this path:
  3. CN=Configuration,DC=DOMAIN,DC=LOCAL
  4. CN=Services
  5. CN=Microsoft Exchange
  6. CN=EXCHANGE_ORG
  7. CN=Administrative Groups
  8. CN=First administrative Group
  9. CN=Servers
  10. CN=SERVERNAME
  11. CN=InformationStore
  12. CN=STORAGE_GROUP
  13. CN=PUBLIC_FOLDER_DATABASE

ADSIEDIT_Public_Folder_Remove

How to fix problem when your hard drive became RAW.

Few days ago my boss asked me to check one hard drive. I was able to get everything. However next time when we connected this hard drive windows asked us to format it (RAW ).

This is how I fixed it.

  1. Go to Disk Management .
  2. Right click on problematic partition and chose option Change Drive Letter and Paths.
  3. Click add if partition is not mounted.
  4. Change letter for example X.
  5. Go to RUN.
  6. Type CMD.
  7. Type chkdsk X: /f
  8. Chkdsk should report some issues and fix them 🙂

That’s all folks.

QNAP: File System is not clean

If you use QNAP which is not connected to UPS you probably see error   “File System is not clean”  very often.  This is my way how to check and clean files system fast on QNAP.

Step 1: You have to connect to QNAP via SSH.
Step 2: Copy and past every line separately.

/etc/init.d/services.sh stop
/etc/init.d/opentftp.sh stop
/etc/init.d/Qthttpd.sh stop
umount /dev/md0
e2fsck -f -v -C 0 /dev/md0
reboot

How to Activate/Deactivate Windows from command line.

Sometimes Windows has problem with activation. We can  easy solve this problem from command line.

Activation Windows from Command Line:

Find CMD and “Run as administrator”

Type:  slmgr -ipk your-mak-key-here

If everything went well you will see this windows

Windows Activation Success

Type:  slmgr -ato

Activation Windows

 

Deactivation Windows from Command Line:

Find CMD and “Run as administrator”.

Type: slmgr -upk

If everything went well you will see this window.

Unninstalled product key

Now your Windows installation is fully genuine.