Search found 271 matches

by localpct
Fri Jul 27, 2018 11:26 am
Forum: PowerShell GUIs
Topic: Active Directory and DataGridViews
Replies: 11
Views: 951

Re: Active Directory and DataGridViews

Should be lots of fun with all of these properties and figuring our how to use -eq instead of -match 'BadLogonCount', 'badPasswordTime', 'badPwdCount', 'CanonicalName', 'City', 'CN', 'createTimeStamp', 'Deleted', 'Department', 'directReports', 'EmailAddress', 'EmployeeNumber', 'employeeType', 'Given...
by localpct
Fri Jul 27, 2018 10:42 am
Forum: PowerShell GUIs
Topic: Active Directory and DataGridViews
Replies: 11
Views: 951

Re: Active Directory and DataGridViews

I did try to use your code, but just posting a line with no context of where it belongs doesn't help my learning. I have currently replaced my jobscript with Param ($user) #Pass any arguments using the ArgumentList parameter (get-aduser $user -properties Givenname, surname).PsObject | select -expand...
by localpct
Fri Jul 27, 2018 10:06 am
Forum: PowerShell GUIs
Topic: Active Directory and DataGridViews
Replies: 11
Views: 951

Re: Active Directory and DataGridViews

I'm missing something, the example you're giving me doesn't really line up with what I have Add-JobTracker -Name 'JobName' ` -JobScript { #-------------------------------------------------- #TODO: Set a script block #Important: Do not access form controls from this script block. Param ($user) #Pass ...
by localpct
Fri Jul 27, 2018 7:12 am
Forum: PowerShell GUIs
Topic: Active Directory and DataGridViews
Replies: 11
Views: 951

Re: Active Directory and DataGridViews

Is there not a way to make the DGV return results vertically?
by localpct
Fri Jul 27, 2018 7:03 am
Forum: PowerShell GUIs
Topic: Active Directory and DataGridViews
Replies: 11
Views: 951

Re: Active Directory and DataGridViews

That's so weird :/

It's actually going to be for several, I just shorted it up to make it easier on the eyes.
by localpct
Fri Jul 27, 2018 6:47 am
Forum: PowerShell GUIs
Topic: Active Directory and DataGridViews
Replies: 11
Views: 951

Active Directory and DataGridViews

2 Issues right now, to run a simple command, it takes about 14 seconds to return to values. Is this normal?

The objects are returning in rows IE

FirstName LastName

How can I make it return

FirstName
LastName
Play.psf
(29.37 KiB) Downloaded 23 times
by localpct
Fri Jul 20, 2018 10:34 am
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 859

Re: Get-Aduser and DGV

Can we delete this thread so I can start a fresh one?
by localpct
Fri Jul 20, 2018 12:21 am
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 859

Re: Get-Aduser and DGV

I’ll post my code tomorrow
by localpct
Fri Jul 20, 2018 12:10 am
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 859

Re: Get-Aduser and DGV

So I want to return the group membership using ADSI into a DGV of the current logged on user. Again, ignore what I originally asked for, that was an error on my behalf.

As you can see it's returning much more than the groupname

This is what I'm getting and the code I'm using
Results.png
Results.png (58.13 KiB) Viewed 793 times
by localpct
Thu Jul 19, 2018 11:46 pm
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 859

Re: Get-Aduser and DGV

Yes sorry. Please excuse the first post. It's completely wrong

I want to return the groupmembership in a DGV. As you can see from my above post it's only returning the length of the object.

It returns just fine in the ISE