internal string GetComputerOperatingSystem(string Host)
        {
            ActiveDirectoryHelper adhelper = new ActiveDirectoryHelper();

            try
            {
                ADComputerDetail computerobject = adhelper.GetComputerByName(Host);
                string           os             = computerobject.OperatingSystem;
                return(os);
            }
            catch (Exception)
            {
                return(null);
            }
        }
        internal string GetOu(string Host)
        {
            ActiveDirectoryHelper adhelper       = new ActiveDirectoryHelper();
            ADComputerDetail      computerobject = adhelper.GetComputerByName(Host);

            string ou;

            if (computerobject != null)
            {
                ou = computerobject.DistinguishedName.ToLower();
                ou = adhelper.ExtractOU(ou);
                return(ou);
            }
            else
            {
                return(null);
            }
        }