In the past few weeks we have had several backup failures because the storage area for Shadow Copy's was limited to 320 mb's (standard size windows picks sometimes). We need to have the storage space between 5 and 10 % of the disk space else backups become unstable and systemstate backsups often fail.
We create a automated report for all our systems with a failed backup, where we check the systems on a lot of different settings (VSS writers, diskspace, eventlogs etc). And would like to include the limit of the storage area for each volume in this report. But we run into the problem that commands like "vssadmin list shadowstorage" only list disks that have something listed under "Used" If used is empty the commands ignore them.
We already tried WMI and C# but they got the same limitation :
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_ShadowStorage",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Win32_ShadowStorage instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "MaxSpace: " & objItem.MaxSpace
Next
We also used procmon to find the related registry key's but so far we have no luck with those.
Is there any way to get the configured maximum size Use Limit for each volume no matter if it lists "0 bytes on <volume>" or not?