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 uninstall Windows Server Essentials Experience

Hi,
Simple tip.

1. Cancel the Initial Configuration Wizard on the physical host
2. RUN -> Regedit
3. Remove the registry key telling the Wizard to auto-load:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Delete the entry named: EssentialsRoleConfigWizard

4. Open Server Manager and remove ALL roles/features, EXCEPT those specified below:
* ROLES left installed: Storage Services
* FEATURES left installed: .NET Framework 4.5(no ASP or WCF), SMB 1.0/CIFS, Graphical Management Tools, Server Graphical Shell, PowerShell 4.0, WoW64 Support
5. After removing roles/features and rebooting, you can go ahead and install the Hyper-V role then create your VM

Enjoy.

Windows Explorer is not recognizing correct space of the disk after extended it in the Disk Manager

Hi guys,

Today I am going to describe problem which happens very often on the virtual Windows machines, however I have seen people complying about this problem on the physical servers.

Problem: Windows is not recognizing correct space of the disk after extended it in the Disk Manager.
Than you noticed that yours disk needs more space, after extended space of the virtual disk in the Hyper-v you went to the disk manager and extend the disk. However Windows is still not recognizing space which you just added it.

Extended disk size

Easy fix it for this.
Go to command prompt and enter the following commands:


C:\DISKPART
C:\DISKPART>List Volume
C:\DISKPART>select volume # (select volume which has problem with recognizing space)
C:\DISKPART>extend filesystem
C:\DISKPART>exit

Screenshot 2016-01-18 10.10.27

That’s all.

Good luck.

How to reset iDRAC (Dell)

Sometimes happens that iDrac doesn’t response. We can reset it from command line.
racadm racreset soft
It can takes few good minutes.

We can also restart iDRAC remotely however we have to install DRAC tools.

racadm -r -u -p
racreset soft

We can also reset iDRAC to factory settings

racadm racresetcfg

Remote
racadm -r -u -p
racresetcfg

That’s folks.

How to disable Exchange cached mode in Outlook on the Terminal Server.

Hi,

Today I will show you how to disable Exchange Cached Mode in Outlook on Terminal Server. Unfortunately we can’t do it using GPO because “Use Cached Exchange Mode for new and existing Outlook profile” only exists in the User tree.

Open regedit

Go to: HKLM – > Software -> Policies -> Microsoft -> Office -> 15.0 -> Outlook -> OST and create dword NoOST -> give value 2.

HKEY_LOCAL_MACHINE/SOFTWARE/Policies/Microsoft/Office/14.0/Outlook/OST

For outlook 2010 change 15.0 to 14.0.

Disable OST on Terminal Server

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.

How to create report of user mailbox size for Exchange in Powershell.(DisplayName, PrimarySmtpAddress, TotallItemSize).

This is one of my favorite Powershell scripts. Easy way to show how big are Exchange mailboxes and make your boss happy 🙂

This is the result:

Exchange Users, Mialbox Report

Copy and past 🙂

$Report=@()
$mailbox=Get-mailbox –resultsize unlimited
$mailbox| foreach-object{
$DisplayName=$_.DisplayName
$SmtpAddress=$_.PrimarySmtpAddress
$TotalItemSize=(get-mailboxstatistics –identity $DisplayName ).TotalITemSize
$obj=new-object System.Object
$obj|add-member -membertype NoteProperty -name "DisplayName" -value $DisplayName
$obj|add-member -membertype NoteProperty -name "PrimarySmtpAddress" -value $SmtpAddress
$obj|add-member -membertype NoteProperty -name "TotalItemSize" -value $TotalItemSize
$Report+=$obj
}
$path_s=[Environment]::GetFolderPath("Desktop")
$Report|Sort "TotalItemSize" -Descending | export-csv $path_s\report.csv -notype

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