WHM Displaying Unlimited Quota (edquota: Quota file not found or has wrong format. No filesystems with quota detected.)

Issue Faced Symptoms:

While running /scripts/fixquotas it displays the following error message and also displays unlimited disk space in 
WHM >> Main >> List accounts.

============================================================
root@server [/]# /scripts/fixquotas --force
Installing Default Quota Databases......Done
Linux Quota Support
Quotas are now on
Reading package package1
Resetting quota for user1 to 10000 M
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
Reading package package2
Resetting quota for user2 to 300 M
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
Reading package package3
Resetting quota for user3 to 2000 M
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
============================================================

Resolution Steps:

============================================================
root@server [/]#touch /home/quota.user
root@server [/]#touch /home/quota.group
root@server [/]#chmod 600 /home/quota.user
root@server [/]#chmod 600 /home/quota.group
============================================================

Sometimes the following command too gives error message:
============================================================
root@server [/]# quotacheck -acugv
quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.
============================================================

Then run following command
============================================================
root@server [/]# quotacheck -acugvm
quotacheck: Scanning /dev/simfs [/] quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
done
quotacheck: Checked 35178 directories and 378713 files
quotacheck: Old file not found.
quotacheck: Old file not found.
============================================================

Then run the following command to fix the issue:
============================================================
root@server [/]#/scripts/fixquotas --force
============================================================

Get current Logon Server.



Sometimes when logged into any windows machines/Servers you wonder about the exact logon server which you used to login. So, in-orderto gather the exact Logon Server Name you can use the following command in your powershell and it will display the exact logon Server Name:



[System.Environment]::GetEnvironmentVariable("logonserver")

Active Directory schema attribute details



The Active Directory schema contains formal definitions of every attribute that can exist in an Active Directory object. 

$schema =[DirectoryServices.ActiveDirectory.ActiveDirectorySchema]::GetCurrentSchema()

$schema.FindClass('user').optionalproperties | Where-Object {$_.name -eq 'employeeid'}