probier das mal
WMI muss Installiert sein
Sub wmi
Set oArrBIOS = GetObject("winmgmts:").ExecQuery("Select * From Win32_BIOS Where PrimaryBIOS=true") 'get the primary machine bios chip properties
file=Freefile()
Open "C:\wmi.txt" For Output As file
Print #file,""
Print #file,"[Bios]"
Print "WMI Auswertung : Bios"
Forall oBIOS In oArrBIOS
Print #file,"Manufacturer: " + oBIOS.Manufacturer
Print #file,"Name: " + oBIOS.Name
Print #file,"ReleaseDate: " + oBIOS.ReleaseDate
Print #file,"PrimaryBIOS: " + oBIOS.PrimaryBIOS
Print #file,"BIOSVersion: " + oBIOS.SMBIOSBIOSVersion
Print #file,"MajorVersion: " + oBIOS.SMBIOSMajorVersion
Print #file,"Status: " + oBIOS.Status
Print #file,"Version: " + oBIOS.Version
Print #file,"Seriennummer: " + oBIOS.SerialNumber
End Forall
Print #file,""
Print #file,"[ComputerSystem]"
Print "WMI Auswertung : Computersytem"
Forall item In GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("Win32_ComputerSystem")
Print #file,"Caption: " & Item.Caption
Print #file,"PrimaryOwnerName: " & Item.PrimaryOwnerName
Print #file,"Domain: " & Item.Domain
Print #file,"DomainRole: " & Item.DomainRole
Print #file,"Manufacturer: " & Item.Manufacturer
Print #file,"Model: " & Item.Model
Print #file,"NumberofProcessors: " & Item.NumberofProcessors
Print #file,"SystemType: " & Item.SystemType
Print #file,"SystemStartupDelay: " & Item.SystemStartupDelay
Print #file,"TotalPhysicalMemory: " & Item.TotalPhysicalMemory
End Forall
Print #file,""
Print #file,"[VideoController]"
Print "WMI Auswertung : Videocontroller"
Forall Item In GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("Win32_VideoController")
Print #file,"Caption: " & Item.Caption
Print #file,"CurrentHorizontalResolution: " & Item.CurrentHorizontalResolution
Print #file,"CurrentVerticalResolution: " & Item.CurrentVerticalResolution
Print #file,"CurrentNumberOfColors: " & Item.CurrentNumberOfColors
End Forall
Print #file,"-----------------------------------------------------------------------"
Print #file,"[DiskDrive]"
Print "WMI Auswertung : Diskdrive"
Forall Item In GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("Win32_DiskDrive")
Print #file,"Caption: " & Item.Caption
Print #file,"Description: " & Item.Description
Print #file,"InterfaceType: " & Item.InterfaceType
Print #file,"Manufacturer: " & Item.Manufacturer
Print #file,"Partitions: " & Item.Partitions
Print #file,"Sectors: " & Item.Sectors
Print #file,"ScsiBus: " & Item.ScsiBus
Print #file,"ScsiTargetID: " & Item.ScsiTargetID
Print #file,"Size: " & Item.Size
End Forall