Ich will das Betriebssystem auslesen lassen und dannach eine If Varibale machen klappt aber nicht so ganz:
Set dtmConvertedDate = CreateObject("WbemScripting.SWbemDateTime")
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set oss = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")
For Each os in oss
Set strOS = os.Caption
If strOS.Contains("Microsoft Windows 7") Then
Next
Habt ihr ne Idee?
Set dtmConvertedDate = CreateObject("WbemScripting.SWbemDateTime")
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set oss = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")
For Each os in oss
Set strOS = os.Caption
If strOS.Contains("Microsoft Windows 7") Then
Next
Habt ihr ne Idee?