VBScript to get DC SYSVOL information (path, size, free space)

1.2k Views Asked by At

I am obtaining information about my DCs and need to pull in the path to sysvol, total size, and free space remaining.

Cant his be done in VBScript and if so how?

Thanks

2

There are 2 best solutions below

4
On

You can do it through the WMI. See an example here: http://www.computerperformance.co.uk/vbscript/wmi_disks.htm

0
On

Have a look at this Microsoft support page - the registry entries are in this document of where the SYSVOL and other NTDS directories are stored.

You might find that you can also get this information through Active Directory however I'm not sure - I will check ADSIEdit shorly.