i have a working script for my software inventory with Windows NT/2k but it doesn't work with 98 / ME. Can anyone help me and post a script for these OS that works ??? That would be very helpful. Thanks
IF (existkey($ikey) = 0) $completed="no" $index=0 DO $icode=ENUMKEY($ikey, $index) IF (@error = 0) IF ($debug_mode = "yes") ? $ikey+"\"+$icode ENDIF IF (len($icode) <> 0) $ikey1=$ikey+"\"+$icode IF (existkey($ikey1) = 0) $completed1="no"
$index1=0
DO $icode1=ENUMVALUE($ikey1, $index1) IF (@error = 0) IF ($debug_mode = "yes") ? $icode1 ENDIF
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You can not use ADSI (WinNT://) if it is not installed. I don't even know if you can use WinNT:// with Win9x. You also can not connect to a Win9x remote registry if you did not install and activate Win9x remote registry service (I think that is the correct name).
[ 16. July 2003, 15:42: Message edited by: Howard Bullock ]
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
There are actually even morte problems. There's a reference to c$ with regards ot the logfile which will require administrative privileges.
The .INI file is being read via READLINE even though .INI ifles have a special formatting so that they shoudl only be used in conjunctions with READPROFILESTRING/WRITEPROFILESTRING.
Remote registry access will not work under Windows 9x unless it has been installed manually. This requires changes tot he network setup, installation of the remote registry service and other configurations
Additionally, ADSI and WMI will need to installed mnuallyt and need to be configured manually to allow remote administrative access.
Finally, the whole script is written without any concern for Windows 9x computers at all and will even create problems under Windows NT/2000/XP/2003 computers due to potential differences in the %SYSTEMROOT% directories and potentially disabled administrative shares.
_________________________
There are two types of vessels, submarines and targets.
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
The whole script will need a complete re-write in order to run it locally. You should also write it in such a way that it will be OS-agnostic and run locally under any Windows OS. Make use of the build-in macros to differentiate between different OSes.
_________________________
There are two types of vessels, submarines and targets.
what comes to that ADSI provider you get object... as far as I saw, you never even use it.
so you can fully skip it! basically your script did work with minor adjustments. but as you see there are more complex scripts to accomplish better results. also, good example. your windows version from reg. we get it in kixtart with macros like @producttype, @produtsuite, @inwin and @dos.