Query AD from Powershell core on a RHEL

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

This topic contains 5 replies, has 3 voices, and was last updated by

 
Participant
1 week, 2 days ago.

  • Author
    Posts
  • #175741

    Participant
    Topics: 15
    Replies: 13
    Points: 54
    Rank: Member

    Has anyone queried AD from Powershell core on a RHEL?

  • #175759

    Participant
    Topics: 0
    Replies: 100
    Points: 363
    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: 15
      Replies: 13
      Points: 54
      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: 100
    Points: 363
    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: 78
    Points: 143
    Helping Hand
    Rank: Participant

    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: 100
    Points: 363
    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

You must be logged in to reply to this topic.