marck1...

The code I posted above has never failed. It also does not depend on PCMCIA or power mgmt software. The key...as far as I know will only be there if there is a physical battery in the machine.

Everyone else...

If someone could prove it wrong I would really apreciate it. Dont know why you would use some big WMI script when all you have to do is check for a registry key. Besides...I wish I could say we wont have any Win9x machines soon...But Im sure they will be around for a while. And IS is not going to spend the resources in adding WMI capabilities to them.

[ 23. September 2003, 16:13: Message edited by: CitrixMan ]