About 50 results
Open links in new tab
  1. powershell - How to effectively use the `-Filter` parameter on Active ...

    What is so bad about -Filter *? You are effectively selecting and returning every object that exists in AD, based on the cmdlet you are using (e.g. Get-ADUser, Get-ADComputer, Get-ADGroup, the generic …

  2. Get-ADUser with multiple filters & variables - Stack Overflow

    I'm trying to get AD users into a variable using multiple filters. However one of the filters has variables in it & I can't get it to work... I have searched for similar issues & tried appl...

  3. Filter result from Get-ADUser using sAMAccountname

    Aug 24, 2019 · I would like to extract a username from AD using Get-ADUser. The issue I'm having is when using sAMAaccount name as filter, I get multiple results if the value is found in multiple entries. …

  4. Get-ADUser -Filter using Variable Array - Stack Overflow

    Jan 28, 2025 · Get-ADUser -Filter using Variable Array Asked 11 months ago Modified 11 months ago Viewed 118 times

  5. How do I get specific properties with Get-AdUser

    15 I have the following PS script written: Get-ADUser -Filter * -SearchBase 'OU=Users & Computers, DC=aaaaaaa, DC=com' -Properties DisplayName | Export-CSV "ADUsers.csv" From what I can tell it …

  6. Get-ADUser with whenCreated in filter - Stack Overflow

    Jan 16, 2021 · However, I'm facing this redundant issue of not being able to fetch AD user objects with Get-ADUser while using the whenCreated attribute along with -gt or -ge or -lt (excepting -le) in -Filter …

  7. Get-ADUser -Filter {name -like "sakthi*"} -Properties name |select name

    Get-ADUser -Filter {name -like "sakthi*"} -Properties name |select name Asked 13 years, 4 months ago Modified 8 years, 4 months ago Viewed 77k times

  8. Combining PowerShell Get-ADUser Filters - Stack Overflow

    Jun 29, 2023 · Regardless of that - you should not use -filter * -properties * for the Get-AdUser query. That puts a lot of unnecessary stress to your AD. Instead provide only the properties you need and …

  9. Filtering Get-aduser on csv contents - Stack Overflow

    Jul 15, 2016 · I would rather do this Get-ADUser -Filter * -Properties EmailAddress | select EmailAddress,SamAccountName Export-CSV c:\results.csv -NoTypeInformation and filter users i …

  10. windows - Getting AD users having a specific keyword within …

    Aug 22, 2016 · I want to get all of those users starting with a specific keywords in AD User Description field using PowerShell. Keyword: Could not execute powershell Import-Module ActiveDirectory Get …