No announcements
Found 2457708 threads
-
0 Votes
Using a variable in a get-aduser command
-separated items) like in your first command. To get it to work that way, use an array, not a string. ...Answered | 9 Replies | 600 Views | Created by IndyBeerGuy - Tuesday, November 27, 2018 8:59 PM | Last reply by jrv - Tuesday, November 27, 2018 10:48 PM -
2 Votes
PowerShell -Identity in get-aduser is null or empty on command when using a variable
value" creates a string but I'm not sure. If get-aduser is saying $memberID is $null then it's not wrong. Also you don't need to use echo at all ...Answered | 14 Replies | 31374 Views | Created by OleDogNewTrix - Friday, April 5, 2013 3:55 PM | Last reply by Haydn Walker - Thursday, October 25, 2018 3:04 PM -
0 Votes
Passing a variable
Hi Dave, Lets break it in parts. Get the individual components working, then you can have it all together. $eadd is an array of strings as ...Unanswered | 1 Replies | 570 Views | Created by Dave Casson - Tuesday, August 18, 2015 6:38 PM | Last reply by Satyajit321 - Thursday, August 20, 2015 11:04 AM -
0 Votes
get-aduser command failing
Hi everyone, I am trying to run the following command: Get-ADUser -Filter * -SearchBase ...Answered | 3 Replies | 1140 Views | Created by dbutch1976 - Thursday, September 15, 2016 6:40 PM | Last reply by jrv - Thursday, September 15, 2016 8:16 PM -
0 Votes
Unable to retrieve value into a variable using get-aduser
I am using the following commandlet to get the list of last password set and then using a variable to get the value and add -365 to it, however ...Discussion | 6 Replies | 267 Views | Created by Irfan Ahmed11 - Wednesday, July 29, 2020 3:59 PM | Last reply by Irfan Ahmed11 - Wednesday, July 29, 2020 6:56 PM -
0 Votes
Select users with Get-ADuser using a variable
OR this: Get-ADUser -Properties * -Filter * | Where {$_.DepartmentNumber -in $DepartCode} | Select ...Unanswered | 18 Replies | 787 Views | Created by Windows Engineering - Thursday, July 19, 2018 10:45 PM | Last reply by Windows Engineering - Friday, July 20, 2018 4:46 PM -
0 Votes
Get-ADUser with properties variable
Using Get-ADUser with variables works except for the properties variable. If I type in the attrbutes directly it works. If I use a ...Answered | 3 Replies | 22600 Views | Created by olsonta - Monday, February 20, 2012 1:56 PM | Last reply by olsonta - Tuesday, February 21, 2012 5:57 PM -
1 Votes
Get-ADUser Filter Variable Issues
= $staffemail.mail foreach($domain in $domains) { $data += get-aduser -server $domain -filter {(EmailAddress -like "*$EM*")} ...Answered | 2 Replies | 3041 Views | Created by Francesc0 C - Wednesday, February 24, 2016 11:08 PM | Last reply by Xecros - Thursday, February 25, 2016 12:58 AM -
0 Votes
Get-ADUser not excepting variable
returns no values to the array $ADUser - if I plug a string (such as the user first name and last name) I get results back, but never when I try to pass the names through ...Answered | 10 Replies | 420 Views | Created by jpaulson61 - Wednesday, October 26, 2016 7:45 PM | Last reply by jpaulson61 - Thursday, October 27, 2016 11:39 AM -
0 Votes
Exclude OU in PowerShell Get-ADUser command
Hi Dominik, the plainest method I have found is post-retrieval filtering: Get-ADUser -Filter {profilePath -Like "*"} -Properties ...Proposed | 2 Replies | 3004 Views | Created by Strzelba77 - Tuesday, December 6, 2016 8:03 AM | Last reply by Strzelba77 - Tuesday, December 6, 2016 9:27 AM -
1 Votes
get-aduser using upn
Correction. The "get-aduser" commandlet needs a filter. Get-qaduser does not need a filter. My apologies.Answered | 7 Replies | 43604 Views | Created by bwgroupja - Tuesday, June 20, 2017 2:07 PM | Last reply by Daniel Burchfield - Tuesday, June 20, 2017 3:53 PM -
3 Votes
Get-ADUser Error Get-ADUser : Not a valid Win32 FileTime
default set exposed by Get-ADUser), but I would have to look up which are default. This Wiki documents both default and extended properties exposed by ...Answered | 4 Replies | 9987 Views | Created by Mylion007 - Wednesday, April 6, 2016 8:38 PM | Last reply by Mylion007 - Thursday, April 7, 2016 4:25 PM -
0 Votes
Using a variable in a FileCopy command as file name
The code you wrote does not use fname as a variable. It is just a string. Look closely at the code. OI posted PowerShell because, if you do ...Unanswered | 6 Replies | 321 Views | Created by OldCityCat - Saturday, January 18, 2020 3:20 PM | Last reply by jrv - Monday, January 20, 2020 12:40 PM -
1 Votes
I have a two part get-aduser / set-aduser question.
1) Clear Get-ADUser -Filter {$_.ExtensionAttribute14 -like "YES"} | Set-ADUser -Clear ExtensionAttribute14 2) Set ...Answered | 1 Replies | 2822 Views | Created by John Owens - Maximus - Wednesday, January 30, 2013 5:21 PM | Last reply by Kazun - Wednesday, January 30, 2013 5:25 PM -
0 Votes
Using a variable with dtexec /set command?
Hi, I want to run a package using dtexec and pass in a variable that I would use to set another package ...Answered | 5 Replies | 5079 Views | Created by sadie2 - Tuesday, July 1, 2008 1:03 AM | Last reply by sadie2 - Tuesday, July 1, 2008 2:24 AM -
0 Votes
Using Get-ADUser but 3.0 needs a filter? What changed?
but in ISE it always asks for cmdlet Get-ADUser at command pipeline position 1 Supply values for the following ...Answered | 2 Replies | 2976 Views | Created by MarcGel - Tuesday, March 18, 2014 8:38 PM | Last reply by jrv - Tuesday, March 18, 2014 8:55 PM -
0 Votes
problem in Get-Aduser
Get-Aduser -filter {name -eq "u$i"} ----> no result (nothing is shown in output) a Guy said: " PowerShell won't ...Answered | 3 Replies | 2099 Views | Created by john.s2011 - Sunday, March 8, 2015 5:29 AM | Last reply by john.s2011 - Monday, March 9, 2015 12:18 PM -
1 Votes
using variable in oledb command
You cant use parameter directly like that The way to do it is to have derived column task to add parameter as a column in your pipeline and then use it ...Answered | 2 Replies | 576 Views | Created by Papil1 - Monday, October 15, 2018 1:10 AM | Last reply by Visakh16 - Monday, October 15, 2018 6:19 AM -
1 Votes
Cant make work with variable in Get-ADuser command to get UPN
If it was a plain text file of usernames, it could be as simple as: get-content user.txt | Get-ADUser | ...Answered | 9 Replies | 3188 Views | Created by BucketheadFan - Monday, February 25, 2019 5:54 PM | Last reply by JS2010 - Thursday, February 28, 2019 8:24 PM -
0 Votes
Using a variable for a whole command line
You cannot pu tit in a variable and run it except. Your command also leaves a lot to be desired ...Answered | 3 Replies | 568 Views | Created by FRacine - Sunday, January 25, 2015 4:06 AM | Last reply by FRacine - Sunday, January 25, 2015 11:21 PM - Items 1 to 20 of 2457708 Next ›
No announcements