Search found 19 matches
- Thu May 17, 2018 11:27 am
- Forum: PowerShell
- Topic: Combining two cell values and checking Active Directory.
- Replies: 11
- Views: 4861
Re: Combining two cell values and checking Active Directory.
That explains why I had issues trying to place it in the Paint Event. I was able to get what i was looking for by using the following code. Maybe this will help others. Update-DataGridView -DataGridView $datagridviewResults -Item $ImportStudentUsers -AutoSizeColumns DisplayedCells foreach ($row in $...
- Thu May 17, 2018 7:11 am
- Forum: PowerShell
- Topic: Combining two cell values and checking Active Directory.
- Replies: 11
- Views: 4861
Re: Combining two cell values and checking Active Directory.
Which part are you saying no to? So, should i collect all of the rows in the Datagrid and run a foreach loop for each row and pull out the first two cells per row? So in turn that variable will hold the Firstname and Lastname. Then take that variable and check Active Directory?
- Thu May 17, 2018 6:04 am
- Forum: PowerShell
- Topic: Combining two cell values and checking Active Directory.
- Replies: 11
- Views: 4861
Re: Combining two cell values and checking Active Directory.
Ok, so my overall goal is to have the end user have the cell marked red for issues on the spreadsheet. The code i posted are for the username and password columns. I am able to wrap my head around just checking one column for an issue but the problem i am having is combining two of them and marking ...
- Wed May 16, 2018 10:55 am
- Forum: PowerShell
- Topic: Combining two cell values and checking Active Directory.
- Replies: 11
- Views: 4861
Combining two cell values and checking Active Directory.
I am trying to combine the first two cells in a row. One is the Firstname and the other is Lastname. I want to check Active Directory and make sure that combination doesn't exists as the CN. If it does, I want to use the CellPaintingEventHandler to turn the backcolor to red. I can check one cell but...
- Mon Apr 30, 2018 8:11 am
- Forum: PowerShell GUIs
- Topic: Validating cells in a column on a DataGridView
- Replies: 4
- Views: 2262
Re: Validating cells in a column on a DataGridView
That is exactly the event i need. Thanks!
- Mon Apr 30, 2018 6:50 am
- Forum: PowerShell GUIs
- Topic: Validating cells in a column on a DataGridView
- Replies: 4
- Views: 2262
Re: Validating cells in a column on a DataGridView
Ok, I guess this may not be the route i need. What i am trying to accomplish is importing a CSV file into the DataGridView window with all of the data. I would like it to highlight red if the Password doesn't meet the requirements. Is the DataGridViewCellValidatingEventHandler event the best route i...
- Fri Apr 27, 2018 8:44 am
- Forum: PowerShell GUIs
- Topic: Validating cells in a column on a DataGridView
- Replies: 4
- Views: 2262
Validating cells in a column on a DataGridView
I am looking to validate each cell within the Password column on my DataGridView. I have created the DataGridViewCellValidatingEventHandler event on my form and I have my function to make sure the password meets the complexity requirements but not sure exactly how to put the cells in an array for th...
- Fri Nov 03, 2017 11:04 am
- Forum: PowerShell Studio
- Topic: Textboxes and labels are not scaling correctly
- Replies: 1
- Views: 1276
Textboxes and labels are not scaling correctly
To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: Powershell Studio ...
- Fri Sep 08, 2017 10:32 am
- Forum: PowerShell Studio
- Topic: Startup.pss seems to only run the first time
- Replies: 6
- Views: 3723
Re: Startup.pss seems to only run the first time
You lead me down the right track. I see what the problem was. The variable $env:userprofile and $env:username are referring to the RunAs user. Not the user i am logged into as. The test-path was checking c:\users\administrator instead of C:\users\"smithj".
DOH!
DOH!
- Fri Sep 08, 2017 7:54 am
- Forum: PowerShell Studio
- Topic: Startup.pss seems to only run the first time
- Replies: 6
- Views: 3723
Re: Startup.pss seems to only run the first time
The weird part is that if i go to a new machine where i haven't ran the executable before it will work, but if i attempt to run it again even after i remove the application and made sure that the directories are no longer there. It doesn't run my Install-gShell function. It completely skips my If st...