Search found 89 matches

by boyddt_co
Thu Sep 29, 2011 4:53 am
Forum: PowerShell
Topic: LDAP queries and values
Replies: 5
Views: 3529

LDAP queries and values

Sometimes I feel so thick. Using the information above $_.properties['cn'] I get the information as requested but it is an object where what I would really like is just the text string. I've tried $_.properties['cn'].tostring() and $_.properties['cn'].value and though they are no longer objects they...
by boyddt_co
Thu Sep 29, 2011 4:02 am
Forum: PowerShell
Topic: LDAP queries and values
Replies: 5
Views: 3529

LDAP queries and values

Hey, thanx for the explanation. I did move the bracket next to the foreach-object and that fixed it. As for the books, what do you suggest? I've downloaded Windows Powershell Pocket Reference but I'm looking for something more robust for a learning tool.David
by boyddt_co
Thu Sep 29, 2011 3:01 am
Forum: PowerShell
Topic: LDAP queries and values
Replies: 5
Views: 3529

LDAP queries and values

I took your code and put it into my script, when I run it I get the following message:cmdlet ForEach-Object at command pipeline position 1Supply values for the following parameters:Process[0]:This is the code I haveFunction ScriptingAnswers { $filter = "(&(objectClass=user)(objectCategory=p...
by boyddt_co
Wed Sep 28, 2011 6:37 am
Forum: PrimalScript
Topic: LDAP queries and values
Replies: 2
Views: 1587

LDAP queries and values

Thanx for the info.
by boyddt_co
Wed Sep 28, 2011 6:37 am
Forum: PowerShell
Topic: LDAP queries and values
Replies: 5
Views: 3529

LDAP queries and values

I'm hoping that this is the correct place to post and if not can you direct me where I should post. Not necessarily a PrimalScript issue.I am trying to query LDAP (ActiveDirectory) to pull user information from a particular OU. I get the data and it presents on the screen successfully. But what I'm ...
by boyddt_co
Wed Sep 28, 2011 6:32 am
Forum: PrimalScript
Topic: LDAP queries and values
Replies: 2
Views: 1587

LDAP queries and values

I'm hoping that this is the correct place to post and if not can you direct me where I should post. Not necessarily a PrimalScript issue.I am trying to query LDAP (ActiveDirectory) to pull user information from a particular OU. I get the data and it presents on the screen successfully. But what I'm ...
by boyddt_co
Fri Sep 16, 2011 6:53 am
Forum: PrimalScript
Topic: PrimalSense Quest AD Management
Replies: 3
Views: 2073

PrimalSense Quest AD Management

I've been working on getting primal sense working with the quest snapin for powershell. I've created the profile in C:UsersboyddtDocumentsWindowsPowerShell and named it Microsoft.PowerShell_profile.ps1. In the profile I've got one line Add-PSSnapin Quest.ActiveRoles.ADManagementWhen I open a powersh...
by boyddt_co
Thu Jul 21, 2011 10:34 am
Forum: PowerShell
Topic: Return values from functions
Replies: 7
Views: 3557

Return values from functions

you're the man.. I actually focused on the wrong thing, thanks for setting me straight. I'll look up those books.
by boyddt_co
Thu Jul 21, 2011 10:12 am
Forum: PowerShell
Topic: Return values from functions
Replies: 7
Views: 3557

Return values from functions

OK, I got it figured out. My original post was passing the distinguished name to the function we switched it to the CN which won't work. I changed the function and it works. Now i just need to incorporate it into the rest of the script and get moving forward. Thank you for all of your help. One las...
by boyddt_co
Thu Jul 21, 2011 9:26 am
Forum: PowerShell
Topic: Return values from functions
Replies: 7
Views: 3557

Return values from functions

line 16 would be ($searcher.findone()).Get....