Web Changes

This commit is contained in:
Haya Nmeir 2012-11-27 22:57:15 +02:00
parent 1ed886a045
commit 6437148de4
37 changed files with 1618 additions and 482 deletions

View file

@ -30,6 +30,8 @@ using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Management;
namespace WebsitePanel.Server.Utils
{
@ -402,6 +404,22 @@ namespace WebsitePanel.Server.Utils
{
return Environment.GetEnvironmentVariable("windir");
}
/// <summary>
/// Checks Whether the FSRM role services are installed
/// </summary>
/// <returns></returns>
public static bool CheckFileServicesInstallation()
{
ManagementClass objMC = new ManagementClass("Win32_ServerFeature");
ManagementObjectCollection objMOC = objMC.GetInstances();
foreach (ManagementObject objMO in objMOC)
if (objMO.Properties["Name"].Value.ToString().ToLower().Contains("file server resource manager"))
return true;
return false;
}
}
}