Query AD from Powershell core on a RHEL

Welcome Forums General PowerShell Q&A Query AD from Powershell core on a RHEL

Viewing 4 reply threads
  • Author
    Posts
    • #175741
      Participant
      Topics: 16
      Replies: 14
      Points: 67
      Rank: Member

      Has anyone queried AD from Powershell core on a RHEL?

    • #175759
      Participant
      Topics: 0
      Replies: 115
      Points: 433
      Helping Hand
      Rank: Contributor

      Brian,

      Can you provide more information as to what you are looking for assistance with? What are you trying to accomplish/research about?

      • #175774
        Participant
        Topics: 16
        Replies: 14
        Points: 67
        Rank: Member

        I have a CSV being delivered to a folder on a linux server on a daily interval. I need to add a few fields into that CSV by pulling data from AD.
        I have the logic worked out for doing it on a windows box. But on a Linux box I have no idea if/how to query AD.

    • #175795
      Participant
      Topics: 0
      Replies: 115
      Points: 433
      Helping Hand
      Rank: Contributor

      Currently Microsoft ActiveDirectory team doesn't support PowerShell Core. The Active Directory Module is only support for Windows machines. I would suggest looking into using LDAPSearch for your queries against Active Directory instead.

      https://access.redhat.com/documentation/en-US/Red_Hat_Directory_Server/8.2/html/Administration_Guide/Finding_Directory_Entries-Using_ldapsearch.html

    • #175900
      Participant
      Topics: 6
      Replies: 108
      Points: 301
      Helping Hand
      Rank: Contributor

      Any word on getting the ActiveDirectory module ported to Powershell Core? That ends up being probably my most used module, and I'd love to be able to run it from a Mac or on a Linux box...

    • #175915
      Participant
      Topics: 0
      Replies: 115
      Points: 433
      Helping Hand
      Rank: Contributor

      Unfortunately nothing I'm aware of the last blog about ActiveDirectory and PowerShell Core was back at the end of July 31st 2018 in the Dev Blogs. The latest blog about PowerShell Core is 04-04-2019.  Links below for reference.

      Increased Windows Modules coverage with PowerShell Core 6.1

      PowerShell Core Release Improvements

Viewing 4 reply threads
  • You must be logged in to reply to this topic.