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.

Alle User in einer Gruppe anzeigen

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe ein Problem mit einem VBS Skript.

Ich möchte mit dem Script alle gruppen einer ou mit der anzahl der user die in der gruppe sind ermitteln.

die auflistung der gruppen funktioniert soweit auch, allerdings meldet er einen fehler bei "For Each struser in objGroup.Member" Das Objekt ist keine auflistung.

habt ihr eine idee?

Set objOU = GetObject("LDAP://OU=Anwendungsgruppen,OU=Ressourcen,OU=Organisation,DC=dom,DC=de")


objOU.Filter = Array("Group")



For Each objGroup in objOU

    'Wscript.Echo objGroup.member

'Set objGroup = GetObject("LDAP://" & objGroup2.Name & ",OU=Anwendungsgruppen,OU=Ressourcen,OU=Organisation,DC=kkp,DC=local")

'Wscript.Echo objGroup.member

i = 0


Set objDictionary = CreateObject("Scripting.Dictionary")


For Each struser in objGroup.Member

   i = i + 1


   Set objMember = GetObject("LDAP://" & strUser)

    strType = objMember.Class


    If Not objDictionary.Exists(strType) Then

        objDictionary.Add strType, "1"

    Else

        objDictionary.Item(strType) = objDictionary.Item(strType) + 1

    End If

    Next


Wscript.Echo "Total members in the group: " & i



Next





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.