Tag: domain

Microsoft Servers, Microsoft Windows Server 2012, Microsoft Windows server 2016

Migrate active directory FSMO from windows server 2012 R2 to windows server 2016

Windows server 2016 was released for public (GA) on mid oct 2016. Its exciting time as businesses are already working on migrating their services in to new windows server 2016 infrastructures. In this post, I am going to explain how you can migrate from active directory running on windows server 2012 R2 to windows server …


Get Domain or Workgroup with C

You will need to include the libraries netapi32.lib and iphlpapi.lib into your project. DsRoleGetPrimaryDomainInformation – retrieves state data for the computer. This data includes the state of the directory service installation and domain data. DsRoleFreeMemory – frees memory allocated by the DsRoleGetPrimaryDomainInformation function. #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <dsrole.h>   void GetDomain(){ DWORD …