Bonne suiteComputer Name: PC-DE-JEAN-NOËL
Operating System
Caption: Microsoft Windows 7 Édition Familiale Premium
Version: 6.1.7601
BuildNumber: 7601
BuildType: Multiprocessor Free
OSProductSuite: 768
OSArchitecture: 64 bits
OSType: 18
OtherTypeDescription: (2003 Server R2 release only)
ServicePackMajorVersion: 1.0
Processors
NumberOfProcessors: 1
NumberOfLogicalProcessors: 4
PCSystemType: 1
Manufacturer: GenuineIntel
Name: Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
Description: Intel64 Family 6 Model 23 Stepping 10
Architecture: 9
AddressWidth: 64
NumberOfCores: 4
DataWidth: 64
Family: 1
MaximumClockSpeed: 2336
Computer Name: WIN7
Operating System
Caption: Microsoft Windows*7 Édition Familiale Premium
Version: 6.1.7601
BuildNumber: 7601
BuildType: Multiprocessor Free
OSProductSuite: 768
OSArchitecture: 64 bits
OSType: 18
OtherTypeDescription: (2003 Server R2 release only)
ServicePackMajorVersion: 1.0
Processors
NumberOfProcessors: 1
NumberOfLogicalProcessors: 2
PCSystemType: 1
Manufacturer: AuthenticAMD
Name: AMD Athlon(tm) II X2 260u Processor
Description: AMD64 Family 16 Model 6 Stepping 3
ProcessorID: 178BFBFF00100F63
Architecture: 9
AddressWidth: 64
NumberOfCores: 2
DataWidth: 64
Family: 1
MaximumClockSpeed: 1800
Computer Name: UTILISAT-5A92AD
Operating System
Caption: Microsoft Windows XP Professionnel
Version: 5.1.2600
BuildNumber: 2600
BuildType: Multiprocessor Free
OSProductSuite:
Computer Name: UTILISAT-5A92AD
Operating System
Caption: Microsoft Windows XP Professionnel
Version: 5.1.2600
BuildNumber: 2600
BuildType: Multiprocessor Free
OSProductSuite:
OSType: 18
OtherTypeDescription: (2003 Server R2 release only)
ServicePackMajorVersion: 3.0
Processors
NumberOfProcessors: 1
NumberOfLogicalProcessors: 2
Manufacturer: GenuineIntel
Name: Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz
Description: x86 Family 6 Model 15 Stepping 13
ProcessorID: BFEBFBFF000006FD
Architecture: 0
AddressWidth: 32
NumberOfCores: 2
DataWidth: 32
Family: 2
MaximumClockSpeed: 2000
Sub WMI_nous_en_dit_toujours_moins()
Dim objWMIService, objOS, colOSes
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colOSes = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
For Each objOS In colOSes
Debug.Print " Nom de l'ordinateur: " & objOS.CSName
Debug.Print " Nom: " & objOS.Caption 'Name
Debug.Print " Concepteur: " & objOS.Manufacturer
Debug.Print " Version: " & objOS.Version 'Version & build
Debug.Print " N° de la Build: " & objOS.BuildNumber 'Build
Debug.Print " Type de Processeur: " & objOS.BuildType
Debug.Print " Processeur: " & objOS.OSArchitecture
Debug.Print " Autre Description: (2003 Server R2 release only)" & objOS.OtherTypeDescription
Debug.Print " Service Pack: " & " Service Pack " & objOS.ServicePackMajorVersion
Next
End Sub
Nom de l'ordinateur: WIN7
Nom: Microsoft Windows*7 Édition Familiale Premium
Concepteur: Microsoft Corporation
Version: 6.1.7601
N° de la Build: 7601
Type de Processeur: Multiprocessor Free
Processeur: 64 bits
Autre Description: (2003 Server R2 release only)
Service Pack: Service Pack 1
Userform avec une textb ox et un commandbuttonComment on peu afficher ceci dans un UserForm?
A+
Amicalement
Lone-wolf
Private Sub CommandButton1_Click()
Dim objWMIService, objOS, colOSes
Dim StrResults$
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colOSes = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
For Each objOS In colOSes
StrResults = " Nom de l'ordinateur: " & objOS.CSName & vbCrLf
StrResults = StrResults & " Nom: " & objOS.Caption & vbCrLf 'Name
StrResults = StrResults & " Concepteur: " & objOS.Manufacturer & vbCrLf
StrResults = StrResults & " Version: " & objOS.Version & vbCrLf 'Version & build
StrResults = StrResults & " N° de la Build: " & objOS.BuildNumber & vbCrLf 'Build
StrResults = StrResults & " Type de Processeur: " & objOS.BuildType & vbCrLf
'StrResults = StrResults & " Processeur: " & objOS.OSArchitecture & vbCrLf
StrResults = StrResults & " Autre Description: (2003 Server R2 release only)" & objOS.OtherTypeDescription & vbCrLf
StrResults = StrResults & " Service Pack: " & " Service Pack " & objOS.ServicePackMajorVersion & vbCrLf
Next
TextBox1.Value = StrResults
End Sub