yes, even if in my humble experience i found parsing output of native commands to be more reliable then many other options (you remember the times of Win32::AdminMisc ?)
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.