or... make an agent (kix script running as service) that will at startup run an inventory, store as local ini file and then at random times startup + rnd(*120 minutes or whatever) upload to SQL server

your logon script can read the ini file for required info necessary details that your script needs... memory, SP, hotfixes, whatever. which whould be faster than determining it at logon runtime... the inventory processess whould be 'hidden' in the startup processes where it is expected to be slow
_________________________
How to ask questions the smart way <-----------> Before you ask