How to get AD computer info into SCCM Configmgr 2007/2012 Database ?

Getting Active Directory information into SCCM Database can be done by configuring Active Directory discovery Methods in SCCM Configmgr but there are cases, wherein some of the computers may not be discovered or Computers do not exist in AD but do available in SCCM Database. I used MaikKoster Old blog post as reference and made some customization's/Updates…