That amazing moment amazing amazing moment when you are able to resolve a long pending issue even that the TechNet forum was all baboons about it.
Having issues with management of your once applied quotas via File Server Resource Manager (FSRM) on your WIndows Server 2008 R2 SP2. Apparently the following can be the reasons for this error:
- You have installed the FSRM role; created quotas; un-installed the FSRM role and re-installed it.
- You have installed the FSRM as a Windows Feature instead of a Role.
And you will be apparently having these following errors/warnings in your Event Viewer:
- Warning 12317: File Server Resource Manager failed to enumerate share paths or DFS paths. Mappings from local file paths to share and DFS paths may be incomplete or temporarily unavailable. FSRM will retry the operation at a later time.
- Error: DfsMapCacheAdd(Domain), 0x8007054b, The specified domain either does not exist or could not be contacted.
- Error 8197: File Server Resource Manager Service error: Unexpected error.
- Error: CGlobalStoreManager::Install(), 0x80070005, Access is denied.
Now when you access the Quota tab from the FSRM MMC; you get the an error and no quotas are visible. Or you apply a quota on a folder but instead you get an error saying that the quota for the folder already exists but you don’t see any.
This is apparently due to the fact that the system files associated with the FSRM either get corrupted or the SYSTEM account access is restricted to these files or the previously installed FSRM role settings are still not completely removed.
Now the work around to this issue depends upon how bad have you played with your FSRM role. Just to let you know that This workaround will remove all your previously implemented quota rules and templates.
The work around to this is basically deleting the system files related to the FSRM. Before doing that; uninstall the FSRM Role or the FSRM Feature you installed previously.
Now to delete the FSRM related system files; you won’t be able to access them with you Admin credentials (even Enterprise Admin is not able to alter these files). Only the SYSTEM account has access to it.
Now to access these files here is a small tool; rather set of tools I used. Download the PSTools and follow the following steps.
- Unzip the downloaded PSTools.
- Run Command Prompt as Administrator.
- Navigate to the folder where you unzipped the PSTools.
- Execute the following command
PSEXEC -i -s -d CMD
Click YES if you have executed the command for the first time. A new Command Prompt window will be opened which basically is running under the privileges of the SYSTEM Account.
Now what you need to do is first delete a couple of files from inside the partition on which you have applied quotas before. If you have quotas applied on multiple partitions then you will need to repeat the following steps for all the partitions.
What you will basically do is delete the files quota.xml and quota.md from the %SystemVolumeInformation\SRM folder. These two system files will be write-protected hence you will need to alter the rights before deleting them.
In the newly opened Command Prompt window; execute the following commands but do not close the windows yet after these commands.
cd \System Volume Information\SRM
attrib quota.xml -s -h
attrib quota.md -s -h
Along these files you will also need to delete the files ReportSettings.xml and SrmGlobalSettings.xml inside the root drive (i.e. C:\) %SystemVolumeInformation\SRM\Settings folder. In the same Command Prompt window opened earlier; execute the following commands.
cd \System Volume Information\SRM
attrib ReportSettings.xml -s -h
attrib SrmGlobalSettings.xml -s -h
After deleting these system files; install the FSRM Role again; this time hopefully you will be able to install the FSRM Role without any errors. If not then feel free to leave a message! Cheerio!!