DNS Server on Windows 2008 and 2012 compatibility

Used dnscmd operation instead of Windows 2012 specific powershell commands