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.

VBA und Active Directory

Empfohlene Antworten

Hallo zusammen,

ich habe hier eine Excel-Tabelle in der wird der Name einer gewünschten Gruppe eingetragen. Dann wird ein Button geklickt und die Gruppe wird im AD erstellt. Anschließend gibt man die NT-Nutzer ein, die in diese Gruppe sollen. Nach klicken auf einen anderen Button werden die User eingetragen in die Gruppe. Nun möchte ich einen dritten Button erstellen, der in den Eigenschaften der Gruppe in der Registerkarte "Managed by" bzw. "Verwaltet von" einen NT-Nutzer eintragen kann als Manager. Und den Haken auf dieser Registerkarte möchte ich auch gesetzt haben wenn möglich. Allerdings hab ich keinen blassen schimmer...

Den Code habe ich bisher:

Sub add_manager()

Dim r As Range

Sheets("groups").Activate

Dim objGroup As Object

Dim strGroupAdsPath As String

strGroupAdsPath = "WinNT://" & Range("conf_NTDomain").Text & "/" & r.Text & ",Group"

Set objGroup = GetObject(strGroupAdsPath)

Dim m As Variant, added As Object, failed As Object

Set added = CreateObject("Scripting.Dictionary")

Set failed = CreateObject("Scripting.Dictionary")

objGroup.Put "managedBy", "CN=HansPeter,OU=firma1,OU=ExternalUsers,DC=ecn,DC=Test-Gruppe,DC=com"

objGroup.SetInfo

End Sub

Wäre cool wenn ihr helfen könntet!

Gruß

Das habe ich dazu im Internet gefunden. Wenn ich jedoch meine Werte eintrage und es erstmal alles manuell versuche läuft es trotzdem nicht. :(

Set objGroup = GetObject _

("LDAP://cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com")

objGroup.Put "managedBy", "cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com"

objGroup.SetInfo

  • 3 Wochen später...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.