public static bool iis7_site_isRunning(string siteName)
        {
            if (string.IsNullOrEmpty(siteName))
                throw new NullReferenceException("siteName");

            using (var iisManager = new ServerManager())
            {
                var site = iisManager.GetSiteByName(siteName);
                var state = site.State;
                return state == ObjectState.Started;
            }
        }
        public static void iis7_start_site(string siteName)
        {
            if (string.IsNullOrEmpty(siteName))
                throw new NullReferenceException("siteName");

            using (var iisManager = new ServerManager())
            {
                var site = iisManager.GetSiteByName(siteName);
                site.Start();
                iisManager.CommitChanges();
            }
        }