windows-systeminfo-viewer
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
# Filename : system.php
# Author : Mitch Vroege
# Projectname : Windows Systeminfo Viewer
# Projectversion : 0.1
# Releasedate : xx-xx-xx
error_reporting(E_ALL);
# Create object
$wmi = new COM("Winmgmts://");
# Get Os info
$oss = $wmi->execquery("SELECT * FROM Win32_OperatingSystem");
# Show Os info
foreach($oss as $os)
{
echo "OS - Name: " . $os->name . "<br />";
echo "OS - Version: " . $os->version . "<br />";
echo "OS - ServicePack: " . $os->servicepackmajorversion . "." . $os->servicepackminorversion . "<br />";
echo "OS - Manufacturer: " . $os->manufacturer . "<br />";
echo "OS - Windows Directory: " . $os->windowsdirectory . "<br />";
echo "OS - Local Setting: " . $os->locale . "<br />";
#echo "OS - Available Phisical Memory (RAM): " . $os->freephisicalmemory . "<br />";
echo "OS - Total Virtual Memory (VM): " . $os->totalvirtualmemorysize . "<br />";
echo "OS - Available VM: " . $os->freevirtualmemory . "<br />";
}
# Get hardware info
$hws = $wmi->execquery("SELECT * FROM Win32_ComputerSystem");
# Show hardware info
foreach($hws as $hw)
{
echo "SYS - System Name: " . $hw->name . "<br />";
echo "SYS - Manufacturer: " . $hw->manufacturer . "<br />";
echo "SYS - Model: " . $hw->model . "<br />";
echo "SYS - Time Zone: " . $hw->currenttimezone . "<br />";
#echo "SYS - Total RAM: " . $hw->totalphisicalmemory . "<br />";
}
# Get CPU info
$cpus = $wmi->execquery("SELECT * FROM Win32_Processor");
# Show cpu info
foreach($cpus as $cpu)
{
#echo "CPU - Type: " . $cpu->achitecture . "<br />";
echo "CPU - Name: " . $cpu->name . "<br />";
echo "CPU - Description: " . $cpu->description . "<br />";
echo "CPU - Clockspeed: " . $cpu->maxclockspeed . " MHz<br />";
echo "CPU - Current Load: " . $cpu->loadpercentage . "%<br />";
}
?>
# Filename : system.php
# Author : Mitch Vroege
# Projectname : Windows Systeminfo Viewer
# Projectversion : 0.1
# Releasedate : xx-xx-xx
error_reporting(E_ALL);
# Create object
$wmi = new COM("Winmgmts://");
# Get Os info
$oss = $wmi->execquery("SELECT * FROM Win32_OperatingSystem");
# Show Os info
foreach($oss as $os)
{
echo "OS - Name: " . $os->name . "<br />";
echo "OS - Version: " . $os->version . "<br />";
echo "OS - ServicePack: " . $os->servicepackmajorversion . "." . $os->servicepackminorversion . "<br />";
echo "OS - Manufacturer: " . $os->manufacturer . "<br />";
echo "OS - Windows Directory: " . $os->windowsdirectory . "<br />";
echo "OS - Local Setting: " . $os->locale . "<br />";
#echo "OS - Available Phisical Memory (RAM): " . $os->freephisicalmemory . "<br />";
echo "OS - Total Virtual Memory (VM): " . $os->totalvirtualmemorysize . "<br />";
echo "OS - Available VM: " . $os->freevirtualmemory . "<br />";
}
# Get hardware info
$hws = $wmi->execquery("SELECT * FROM Win32_ComputerSystem");
# Show hardware info
foreach($hws as $hw)
{
echo "SYS - System Name: " . $hw->name . "<br />";
echo "SYS - Manufacturer: " . $hw->manufacturer . "<br />";
echo "SYS - Model: " . $hw->model . "<br />";
echo "SYS - Time Zone: " . $hw->currenttimezone . "<br />";
#echo "SYS - Total RAM: " . $hw->totalphisicalmemory . "<br />";
}
# Get CPU info
$cpus = $wmi->execquery("SELECT * FROM Win32_Processor");
# Show cpu info
foreach($cpus as $cpu)
{
#echo "CPU - Type: " . $cpu->achitecture . "<br />";
echo "CPU - Name: " . $cpu->name . "<br />";
echo "CPU - Description: " . $cpu->description . "<br />";
echo "CPU - Clockspeed: " . $cpu->maxclockspeed . " MHz<br />";
echo "CPU - Current Load: " . $cpu->loadpercentage . "%<br />";
}
?>