Get-ADUser Examples: How to Find AD Users with PowerShell

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 13

  • @stowgood
    @stowgood ปีที่แล้ว +1

    Really helpful! I've been wanting to learn filters for a while so I can make a table of all the users in my office location easily

  • @bbbrianwilliams
    @bbbrianwilliams 2 ปีที่แล้ว +1

    Great video. Please continue to post more like this.

    • @ActiveDirectoryPro
      @ActiveDirectoryPro  2 ปีที่แล้ว

      Much more on my website.
      activedirectorypro.com/blog/

  • @rivage3900
    @rivage3900 ปีที่แล้ว +1

    Great tutorial!

  • @reneseuret6271
    @reneseuret6271 2 ปีที่แล้ว

    @7:43 What would be the script to change that logon script for all users in that OU?

    • @ActiveDirectoryPro
      @ActiveDirectoryPro  2 ปีที่แล้ว

      You can use the set-aduser command to update the scriptpath.
      set-aduser -Identity robert.allen -scriptpath logonscript.bat

  • @Sabs761010
    @Sabs761010 6 หลายเดือนก่อน

    hi, how can I get a list of the computers from AD with the user that has login into them?

  • @stowgood
    @stowgood ปีที่แล้ว

    Is there any way I can tip you for this video? I am very grateful.

  • @James-qq3ne
    @James-qq3ne ปีที่แล้ว

    How do I use this script to search for multiple users I have in a CSV file or text file? I don't want to do them one by one.

  • @Siva3rdeye
    @Siva3rdeye ปีที่แล้ว +1

    What is the name powershell gui?

  • @สุรนาถแก้วทองคํา
    @สุรนาถแก้วทองคํา 10 หลายเดือนก่อน

    How do I filter out user accounts that haven't logged in for more than 90 days?

    • @ActiveDirectoryPro
      @ActiveDirectoryPro  9 หลายเดือนก่อน

      $date= (get-date).AddDays(-90)
      Get-ADUser -Filter {LastLogonDate -lt $date} -Property LastLogonDate | Select Name, SamAccountName, LastLogonDate