Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VB-Skript - Prüfen ob Programm installiert ist

Empfohlene Antworten

Ich würde gerne mithilfe eines vb skriptes prüfen, ob ein bestimmtes Programm installiert ist.

Danach soll die Versionsnummer ausgegeben werden und in eine Textdatei geschrieben werde, die dann im Netzwerk abgelegt wird. Das ist aber für diesen Thread nicht relevant.

Ich habe folgendes im Netz gefunden:

'officepath="C:\Program Files\Microsoft Office\Office\"

'set fso=createobject("scripting.filesystemobject")

'returnstring=fso.getfileversion(officepath & "winword.exe")

'wscript.echo returnstringset

'fso=nothing


MsgBox "Start"


Set objWMI = GetObject("winmgmts:\\PC0761\root\CIMV2")

[B]Set colItems = objWMI.ExecQuery("SELECT Version FROM Win32_Product WHERE Name Like 'Microsoft Office%'")[/B]


If colItems.Count = 0 Then

	GetOfficeVersion = "0"

End If


For Each objItem In colItems

	GetOfficeVersion = Left(objItem.Version, InStr(1,objItem.Version,".")-1)

Next


Set objWMI = Nothing

Set colItems = Nothing

Set objWMI = Nothing


MsgBox GetOfficeVersion


MsgBox "Ende"

Hier prüft das Skript die installierten Programme ab und sucht nach "Microsoft Office". Leider nimmt das einige Zeit in Anspruch, deswegen hätte ich gerne eine schnellere Methode. Kennt jemand einen anderen Weg? Beispielsweise, dass im Startmenü die Einträge nach Microsoft Office durchsucht werden?

lg

Edit: Startmenü fällt auch weg, weil das Script vor dem Login ausgeführt werden soll :/

Wieso lässt du nicht von einer zentralen Stelle aus, dieses WMI-Query auf Clients laufen? WMI-Abfragen gehen auch übers Netzwerk.

Ansonsten geht das lokal auf den Clients über ein Gruppenrichtlinienskript.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.