I have a Linux box that runs PHP/Apache, and I'd like to be able to query computers in my network with WMI, then display the results on a PHP page. I'm interested in retrieving small things, like a process list.
How should I go about doing this? Security isn't a huge concern, but I'd like to keep at as tight as possible.
From what I've read on Google, some people suggest writing a separate application all together, as they think WMI isn't secure.
Any direction would be appreciated. Thanks!
PHP & WMI
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Sure!
Microsoft's Site: http://www.microsoft.com/whdc/system/pn ... fault.mspx
Wikipedia: http://en.wikipedia.org/wiki/Windows_Ma ... umentationWindows Management Instrumentation (WMI) is a set of extensions to the Windows Driver Model that provides an operating system interface through which instrumented components can provide information and notification. WMI is Microsoft's implementation of the Web-Based Enterprise Management (WBEM) Standard from the Distributed Management Task Force (DMTF).
WMI allows scripting languages like VBScript to manage Microsoft Windows personal computers and servers, both locally and remotely. WMI is preinstalled in Windows Server 2003, Windows XP, Windows Me, and Windows 2000.
Microsoft's Site: http://www.microsoft.com/whdc/system/pn ... fault.mspx
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
-
kingconnections
- Forum Contributor
- Posts: 137
- Joined: Thu Jul 14, 2005 4:28 pm
Like this:
Just use the command line version. But it has to be hosted on a windows machine.
Code: Select all
print passthru('wmic bios get serialnumber');Just use the command line version. But it has to be hosted on a windows machine.