The following needs to be done BEFORE WINventory is used.
Should have the latest versions of WMI and Wscript installed.
Windows Script 5.6 for Windows 98, Windows Millennium Edition, and Windows NT 4.0
Windows Script 5.6 for Windows 2000 and XP
Windows Management Instrumentation (WMI) CORE 1.5 (Windows 95/98/NT 4.0)
If online input into a database is desired, a MySQL connector ODBC should be installed.
I have used MyODBC v2.5 to good effect.
MySQL Connector/ODBC 2.50 Downloads
Should have MySQL installed, with a blank database setup called WINventory.
Into this database the file Winventory.sql should be used to create the database structure.
I currently am using 4.0.12
MySQL 4.0 Downloads
A web server should be installed.
I use IIS 5.0.
The files in this archive should be extracted into a directory for use by the web server.
PHP should be installed & configured for use by the web server.
My current PHP install is 4.3.0.
I use this for MySQL administration. Currently it is how I input the text generated from 'offline' audits.
When inventorying clients, the script audit.vbs should be used.
If inventorying in an 'online' environment, the line online = "y" should be set.
If inventorying in an 'offline' environment, the line should be online = "n"
The script can be run at the command prompt locally by typing -
cscript audit.vbs (for online) or
cscript audit.vbs > pcname.txt //NoLogo (for offline).
The result is a text file, which can be copied & pasted into the page to 'Add a PC'.
HTTP authentication in IIS
Taken from the online PHP.net manual http://www.php.net/manual/en/features.http-auth.php
I searched mightily and didn't find this information anywhere else, so here goes. When using HTTP auth with the php CGI, you need to do the following things:
1. In your php.ini file, set "cgi.rfc2616_headers = 0"
2. In Web Site Properties -> File/Directory Security -> Anonymous Access dialog box, check the "Anonymous access" checkbox and uncheck any other checkboxes (i.e. uncheck "Basic authentication," "Integrated Windows authentication," and "Digest" if it's enabled.) Click OK.
3. In "Custom Errors", select the range of "401;1" through "401;5" and click the "Set to Default" button.
It's this last step that is crucial, yet not documented anywhere. If you don't, instead of the headers asking for credentials, IIS will return its own fancy but useless 'you are not authenticated' page. But if you do, then the browser will properly ask for credentials, and supply them in the $_SERVER['PHP_AUTH_*'] elements.