Search found 271 matches

by localpct
Thu Jul 19, 2018 11:39 pm
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 694

Re: Get-Aduser and DGV

Sorry, I completely posted the wrong question. What I need is groupmembership. It's only returning the length $users = ([ADSISEARCHER]"samaccountname=$($env:USERNAME)").Findone().Properties.memberof -replace '^CN=([^,]+).+$', '$1' Update-DataGridView -DataGridView $datagridview1 -Item $users 2018-07...
by localpct
Thu Jul 19, 2018 11:28 pm
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 694

Get-Aduser and DGV

I'm trying to pull certain properties of a single user into a DGV, for some reason it's not adding the rows as I see from my searching it should be doing $properties = @( 'BadLogonCount', 'badPasswordTime', 'badPwdCount', 'CanonicalName', 'City' ) $users = get-aduser -Identity username -Properties $...
by localpct
Wed Jul 18, 2018 2:51 pm
Forum: PowerShell GUIs
Topic: Adding a Textbox to Existing GUI and relocating other objects
Replies: 4
Views: 342

Re: Adding a Textbox to Existing GUI and relocating other objects

Are there any examples of these? I’ve never been able to wrap my head around these
by localpct
Mon Jul 16, 2018 5:48 pm
Forum: PowerShell GUIs
Topic: ColorDialog
Replies: 13
Views: 853

Re: ColorDialog

Sorry for the delay, I just got back from vacation. This gives me a lot to chew on in learning. Thank you for the very informative response.
by localpct
Thu Jul 12, 2018 9:26 pm
Forum: PowerShell GUIs
Topic: ColorDialog
Replies: 13
Views: 853

Re: ColorDialog

Hiya! This script works perfectly fine the way it’s written for one button. I’ve tried quite a few times to get another button to change the foreground color of a label. It appears I write over the settings file ( obviously ) but I cannot seem to find a way to append the two actions. Two buttons One...
by localpct
Wed Jul 11, 2018 8:05 pm
Forum: PowerShell GUIs
Topic: ColorDialog
Replies: 13
Views: 853

Re: ColorDialog

Confirmed working! thanks
by localpct
Wed Jul 11, 2018 5:37 am
Forum: PowerShell GUIs
Topic: ColorDialog
Replies: 13
Views: 853

Re: ColorDialog

ERROR: Exception setting "BackColor": "Control does not support transparent background colors." BGColorPicker.psf (5, 2): ERROR: At Line: 5 char: 2 ERROR: + $tbxForm.BackColor = [System.Drawing.Color]::FromName($colors ... ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ERROR:...
by localpct
Wed Jul 11, 2018 5:19 am
Forum: PowerShell GUIs
Topic: ColorDialog
Replies: 13
Views: 853

Re: ColorDialog

I really appreciate the effort.. Here is what I've determined you've said BGColorPicker.psf ERROR: Exception setting "BackColor": "Cannot convert value "Color [A=255, R=0, G=255, B=64]" to type "System.Drawing.Color". Error: "Cannot convert the "Color ERROR: [A=255, R=0, G=255, B=64]" value of type ...
by localpct
Tue Jul 10, 2018 6:26 pm
Forum: PowerShell GUIs
Topic: ColorDialog
Replies: 13
Views: 853

ColorDialog

Here is my script to change the background to my form. $uIColorPickerToolStripMenuItem_Click={ #TODO: Place custom script here $colordialog1.ShowDialog() $StageBackColor = $colordialog1.Color.Name $tbxForm.BackColor = $StageBackColor } Here is my error ERROR: Exception setting "BackColor": "Cannot c...
by localpct
Fri Jun 08, 2018 12:58 pm
Forum: PowerShell GUIs
Topic: $radiobutton1.Checked =$true not working
Replies: 8
Views: 680

Re: $radiobutton1.Checked =$true not working

That's very cool.. I did not know you can use a switch statement like that.

Thanks!!!!