No announcements
Found 1727619 threads
-
0 Votes
GET-ADUser filter not working
I end up by using the exchange database distinguishedname in the filter: $LeaveDN = (Get-MailboxDatabase -Identity ...Answered | 4 Replies | 3294 Views | Created by octavmarius - Friday, November 10, 2017 4:25 PM | Last reply by octavmarius - Thursday, November 16, 2017 3:22 PM -
2 Votes
Get-Aduser Filtering Issue
In this case, for an enabled users where sAMAccountName does not include the string "health": Get-ADUser -LDAPFilter ...Answered | 5 Replies | 5663 Views | Created by Richard C. Thompson Jr - Tuesday, September 30, 2014 1:12 PM | Last reply by Richard Mueller - Tuesday, September 30, 2014 3:54 PM -
1 Votes
ProfilePath filtering and Get-ADUser
Hi, For me it doens't work in both option get-aduser -filter "profilepath -eq ...Answered | 5 Replies | 34001 Views | Created by phunkymunky - Thursday, January 12, 2012 5:31 AM | Last reply by phunkymunky - Wednesday, January 18, 2012 6:19 AM -
5 Votes
get-aduser filters
I don't think you'd need a loop, at the worst, a where-object piped after: $users = get-aduser -filter * | Where-Object {$_.samaccountname ...Answered | 9 Replies | 3122 Views | Created by zarberg - Wednesday, November 5, 2014 2:36 PM | Last reply by Mekac - Thursday, November 6, 2014 6:44 AM -
5 Votes
Get-aduser -Filter email address
I agree there's a bug in Get-ADUser as I couldn't parse a property of an object: E.G: Get-ADUser -filter ...Answered | 14 Replies | 1319960 Views | Created by Killerbe - Wednesday, June 25, 2014 2:40 PM | Last reply by The Modern Mailman - Wednesday, February 8, 2017 1:20 PM -
1 Votes
powershell get-aduser filtering issue
Could i use get-adgroupmember and pipe the output to get-aduser?Answered | 23 Replies | 2070 Views | Created by glacket - Friday, December 19, 2014 1:56 PM | Last reply by glacket - Monday, December 22, 2014 7:40 PM -
1 Votes
Get-ADUser Filter Variable Issues
modify your foreach loops as follows: foreach($staffemail in $staffemails) { $EM = $staffemail.mail foreach($domain in $domains) ...Answered | 2 Replies | 4469 Views | Created by Francesc0 C - Wednesday, February 24, 2016 11:08 PM | Last reply by Xecros - Thursday, February 25, 2016 12:58 AM -
1 Votes
get-aduser -notcontains filter issue...
.*' does work.Answered | 8 Replies | 5563 Views | Created by Chad Thomsen1 - Tuesday, December 22, 2015 9:03 PM | Last reply by Mike Laughlin - Wednesday, December 23, 2015 2:10 PM -
7 Votes
get-aduser + UPN not working as expected
The BNF description is just wrong by adding the {} although it will work with exact strings like this: Get-ADUser -Filter ...Answered | 10 Replies | 5207 Views | Created by David4576 - Friday, February 17, 2017 3:54 PM | Last reply by David4576 - Wednesday, February 22, 2017 10:31 AM -
0 Votes
get-aduser filtered on OU level
Besides,Here is a workaround: $ous = "ou1","ou2" foreach($ou in $ous) { Get-ADUser -Filter * ...Answered | 6 Replies | 6315 Views | Created by Arno N - Monday, September 26, 2016 3:17 PM | Last reply by Hello_2018 - Tuesday, September 27, 2016 7:41 AM -
1 Votes
Issue filtering using get-mailbox and get-aduser
Hi The answer is Get-Mailbox -ResultSize Unlimited -Filter {-not(RecipientTypeDetails -like '*SharedMailbox*') -and -not(RecipientTypeDetails ...Answered | 3 Replies | 2440 Views | Created by Pres - Saturday, February 13, 2016 8:14 PM | Last reply by it-praktyk - Sunday, February 14, 2016 7:04 PM -
0 Votes
Get-ADUser multi filters issue
After taking a break from the crazy day of work, the "-and" operator is starting to make sense.Answered | 11 Replies | 1046 Views | Created by set300b - Thursday, July 25, 2019 10:21 PM | Last reply by set300b - Tuesday, July 30, 2019 10:37 PM -
0 Votes
Error with Get-ADUser Filter * -Properties *
If something works when run as Administrator, but not otherwise, it usually is a permissions issue.Answered | 2 Replies | 804 Views | Created by TheGrandOldDukeOfYork - Thursday, January 18, 2018 11:11 AM | Last reply by Richard Mueller - Thursday, January 18, 2018 5:58 PM -
0 Votes
Get-ADUser with variable filter not returning results.
The filter work find but the properties give me a error.Answered | 7 Replies | 2737 Views | Created by Patrick Pl - Sunday, May 15, 2016 1:01 PM | Last reply by Richard Mueller - Sunday, May 15, 2016 8:55 PM -
1 Votes
filtering get-aduser (-clike does not work.. what else?)
get-aduser -filter 'department -like "*eco*"' | Where{$_.department -cmatch 'ECO'} \_(ツ)_/Answered | 5 Replies | 599 Views | Created by Mario Ivanov - Saturday, May 25, 2019 6:36 PM | Last reply by Mario Ivanov - Monday, May 27, 2019 6:04 AM -
3 Votes
Using Get-ADUser while Filtering on Custom Attribute
Try this filter: Get-ADUser -Filter {PhysicianNumber -like "*"}Answered | 2 Replies | 32219 Views | Created by Cacophony777 - Tuesday, January 8, 2013 3:47 PM | Last reply by Cacophony777 - Tuesday, January 8, 2013 7:43 PM -
4 Votes
Get-ADUser -Filter { lastLogon -gt $date } compared to Get-ADUser -Filter ' lastLogon -gt $date '
In documentation like at http://technet.microsoft.com/en-us/library/ee617241.aspx the -Filter parameter to Get-ADUser is defined to be of type ...Answered | 3 Replies | 4984 Views | Created by Larry Weiss - Saturday, June 8, 2013 3:57 PM | Last reply by Larry Weiss - Sunday, June 9, 2013 5:34 AM -
0 Votes
How to get Get-AdUser to work with different domains
https://social.technet.microsoft.com/Forums/en-US/home?Answered | 3 Replies | 10843 Views | Created by Paul Byrum - Wednesday, September 3, 2014 9:00 PM | Last reply by Amy Wang_ - Friday, October 10, 2014 9:21 AM -
3 Votes
Get-ADUser not retrieving Properties when using -Filter
So, I'm pretty much stuck doing something such as this: $ADUCN =$(Get-ADUser -Filter 'SamAccountName -like ...Answered | 2 Replies | 3487 Views | Created by Makoto.Mitzuhara - Friday, March 8, 2013 5:17 PM | Last reply by Makoto.Mitzuhara - Monday, March 11, 2013 1:05 PM -
0 Votes
get-aduser -filter -memberof group name issues
If you want more information than is being returned by Get-ADGroupMember, you can pipe the results into Get-ADUser.Answered | 2 Replies | 12617 Views | Created by AaronWhittaker2003 - Thursday, May 8, 2014 6:26 AM | Last reply by Newbie Jones - Thursday, May 8, 2014 9:32 AM - Items 1 to 20 of 1727619 Next ›
No announcements