No announcements
Found 2440374 threads
-
0 Votes
get-aduser
Hi, Use: $samacc = (Get-ADUser -Filter {SamAccountName -like $filter).SamAccountName Get-User returns ...Answered | 3 Replies | 785 Views | Created by Salsak - Wednesday, March 15, 2017 8:23 AM | Last reply by SKAIFFER - Wednesday, March 22, 2017 11:08 PM -
1 Votes
get-aduser from a csv file
Thanks for the quick reply. I have tried, but receive the following error: ERROR: Get-ADUser : Variable: '_' found inAnswered | 10 Replies | 64989 Views | Created by glenn.hurley - Monday, June 25, 2012 7:35 PM | Last reply by scerazy - Tuesday, October 30, 2018 10:39 AM -
2 Votes
Using an encrypted variable in a 'Run Command' activity?
Hello! What I'm trying to achieve is using a 'Run Command' activity in order to start a small VBscript file. ...Answered | 2 Replies | 2755 Views | Created by YannickJ - Wednesday, September 26, 2012 1:52 PM | Last reply by YannickJ - Monday, October 1, 2012 11:17 AM -
0 Votes
Help with adding users to groups using a CSV
be able to use a variable as part of the filter command. CSV looks like thisAnswered | 2 Replies | 417 Views | Created by IanF.UKS - Monday, January 30, 2017 12:22 PM | Last reply by IanF.UKS - Monday, January 30, 2017 2:24 PM -
0 Votes
get-aduser
You have to add it to the properties and to the select statement: HELP Get-AdUser -Full \_(ツ)_/Answered | 1 Replies | 509 Views | Created by CMS36 - Thursday, September 8, 2016 3:21 PM | Last reply by jrv - Thursday, September 8, 2016 3:34 PM -
0 Votes
Building a "Dynamic" filter for Get-ADUser
build the -filter in the Get-ADUser, I started with a "if" based on if country is empty or not, but realized, I need to have a lot of ...Answered | 6 Replies | 3276 Views | Created by FNordberg - Thursday, April 24, 2014 8:48 PM | Last reply by FNordberg - Sunday, April 27, 2014 8:35 PM -
3 Votes
Using a variable in my filter statement
Import-Csv .\input.csv | ForEach { $fullName = $_.Name Get-ADUser -Filter 'Name -eq $fullName' } EDIT: ...Answered | 19 Replies | 2320 Views | Created by kheld - Thursday, September 19, 2013 2:01 PM | Last reply by kheld - Thursday, September 19, 2013 3:38 PM -
1 Votes
Get-ADUser with variable filter not returning results - parse error
mjolinor beat me to it :) What you also could try is to put the wildcard in your search variable, like: $ADUserString = ...Answered | 3 Replies | 11840 Views | Created by Kiwiincharge - Thursday, June 26, 2014 9:49 AM | Last reply by Vivian_Wang - Monday, June 30, 2014 7:06 AM -
0 Votes
Command Line execution in SSIS using Variable
I have a SSIS package and i declared a user variable with the scope "DataFlow". I am running from command line and if i wont provide the variable ...Answered | 1 Replies | 4566 Views | Created by Srinivas Vinnakota - Thursday, April 30, 2009 4:49 PM | Last reply by Eric Wisdahl - Thursday, April 30, 2009 5:14 PM -
0 Votes
Set-ADUser > How to use a variable within a hashtable?
The following command works: Set-ADUser Administrator -Add @{ExtensionAttribute1='test'} The following commandAnswered | 1 Replies | 4002 Views | Created by Remco Tiel - Tuesday, December 27, 2011 1:21 PM | Last reply by Remco Tiel - Tuesday, December 27, 2011 3:15 PM -
0 Votes
Using a variable in Get-Content or Select-String
If "MSSQL$DEV" is the value of the variable you're using for the pattern match, I think that may be the problem. The default pattern type ...Answered | 5 Replies | 7628 Views | Created by ShoelessMike - Monday, November 8, 2010 9:15 PM | Last reply by mjolinor - Tuesday, November 9, 2010 3:39 PM -
0 Votes
Using a Variable in SSIS - Error - "Command text was not set for the command object.".
Hi All, I am using a OLE DB Source in my dataflow component and want to select SQL Query from the master table I have created variables ...Answered | 1 Replies | 895 Views | Created by Vipin jha - Wednesday, January 7, 2015 11:23 AM | Last reply by Vaibhav.Chaudhari - Wednesday, January 7, 2015 11:31 AM -
0 Votes
Can I get a variable from a variable?
list of possible items and check the variable for each one to see if it needs to be modified or not. I was going to do a foreach ($color in $colors) but ...Answered | 2 Replies | 1300 Views | Created by Kelemvor33 - Tuesday, June 25, 2013 9:25 PM | Last reply by Kelemvor33 - Wednesday, June 26, 2013 1:40 PM -
0 Votes
Using a 'global variable'
Yes... you can do that inside the control flow using SQL Task and inside a dataflow using OLEDB Command. I can make an example for you in SSIS ...Answered | 4 Replies | 3840 Views | Created by PetedeLux - Monday, December 15, 2008 6:48 PM | Last reply by PetedeLux - Friday, December 19, 2008 4:01 PM -
0 Votes
Get-ADUser in domain2
I logged on $domain1 I got the following error when running Get-ADUser -Filter {samaccountname -eq $userid} -Server ...Answered | 3 Replies | 615 Views | Created by Ian3 - Tuesday, November 26, 2013 7:22 PM | Last reply by Mike Laughlin - Tuesday, November 26, 2013 8:51 PM -
0 Votes
Get-ADUser
$userList = Import-csv .\Users.csv $NewCSVObject = @() ForEach($CSVuser in $userList) { $result = $CSVuser.Name try { $NewCSVObject += ...Answered | 1 Replies | 3401 Views | Created by JPKI - Thursday, October 4, 2012 8:11 PM | Last reply by Kazun - Friday, October 5, 2012 5:13 AM -
1 Votes
Using get-adUser with Multiple Filter items
https://community.idera.com/database-tools/powershell/ask_the_experts/f/powershell_for_exchange-24/21062/using-get-aduser-with-multiple-filter-items Thank ...Answered | 1 Replies | 551 Views | Created by net_tech - Tuesday, September 3, 2019 1:54 PM | Last reply by JS2010 - Tuesday, September 3, 2019 2:04 PM -
0 Votes
Using a variable with IN
IN keyword. I need to sum the results and so using a subquery doesn't work and another approach I tried was using a derived ...Answered | 6 Replies | 5865 Views | Created by cehligner - Monday, March 2, 2009 3:10 AM | Last reply by cehligner - Monday, March 2, 2009 10:13 PM -
0 Votes
Get-MailboxDatabaseCopyStatus to a variable
I am trying to email myself a script using PS and need to set a variable to Get-MailboxDatabaseCopyStatus. If I simply ...Answered | 1 Replies | 2287 Views | Created by Danny Webb - Tuesday, July 22, 2014 1:48 PM | Last reply by Amit Tank - Tuesday, July 22, 2014 8:48 PM -
0 Votes
Get-ADUser
You can use the command below to get a list of users with the distinguishedName attribute. Get-ADUser -FilterAnswered | 17 Replies | 1501 Views | Created by saulpomell - Wednesday, July 18, 2018 2:34 PM | Last reply by saulpomell - Tuesday, July 24, 2018 1:10 PM
No announcements