try this

$LOGMAXSIZE=VAL(READVALUE("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application","MaxSize"))

Bryce