Search found 163 matches

by JohnTitor
Tue Jul 27, 2021 5:57 am
Forum: PowerShell GUIs
Topic: Progress bar when running PS cmdlet
Replies: 2
Views: 672

Re: Progress bar when running PS cmdlet

Did you ever figure this out? I'm also curious as I'm facing a similar issue.
by JohnTitor
Tue Jun 08, 2021 11:33 am
Forum: PowerShell
Topic: Import iPhone Photos
Replies: 1
Views: 2365

Import iPhone Photos

Since the iPhone doesn't mount like a normal drive, is there anyway we can automatically grab the photos? Here is the only way I know how to get to the device $Shell = New-Object -ComObject Shell.Application $ShellItem = $Shell.NameSpace(17).Self (((($ShellItem.GetFolder.items() | Where-Object {$_.N...
by JohnTitor
Mon Jun 07, 2021 9:45 am
Forum: PowerShell GUIs
Topic: Load data after SelectedIndexChange
Replies: 2
Views: 2888

Re: Load data after SelectedIndexChange

When you step away and go duh
$Assets | Where-Object { $_.UserID -contains $comboboxNames.SelectedItem.Shortname }

I got it :)
by JohnTitor
Wed Jun 02, 2021 12:23 pm
Forum: PowerShell GUIs
Topic: Load data after SelectedIndexChange
Replies: 2
Views: 2888

Load data after SelectedIndexChange

I have two CSVs I import on load $Users - Contains UsersNames, UsersID,State $Assets - Contains PCNumbers, Model, Serial I have $users loaded into a combobox Update-ComboBox -ComboBox $comboboxNames $CSV.DisplayName On SelectedIndexChanged, is there a way I can get the UserID to query the $Assets CSV?
by JohnTitor
Wed Jun 02, 2021 6:04 am
Forum: PowerShell GUIs
Topic: Robocopy in PS 2019
Replies: 4
Views: 4075

Re: Robocopy in PS 2019

It absolutely works , it even works in WindowsPE
remove the variables and just type it out to ensure you're getting the results in PSS that you expect and then create the variables
by JohnTitor
Thu May 27, 2021 2:41 pm
Forum: PowerShell GUIs
Topic: DataGridView right click
Replies: 1
Views: 2031

DataGridView right click

Hello,
thinking of adding a contextmenu to my DGV to show the full details of what I'm showing my in the DGV

Is this possible? The DGV only shows high level counts
by JohnTitor
Thu May 27, 2021 2:17 pm
Forum: PowerShell
Topic: CSV into DGV
Replies: 6
Views: 2581

Re: CSV into DGV

Got it! Thanks so much
by JohnTitor
Thu May 27, 2021 10:11 am
Forum: PowerShell
Topic: CSV into DGV
Replies: 6
Views: 2581

Re: CSV into DGV

Hi, thanks for the tip
but its not formatted correctly still

note the manufactuer is in the same column as name
Assets.png
Assets.png (9.61 KiB) Viewed 2542 times
and not like this :)
assets2.png
assets2.png (7.23 KiB) Viewed 2542 times
by JohnTitor
Thu May 27, 2021 9:40 am
Forum: PowerShell
Topic: CSV into DGV
Replies: 6
Views: 2581

Re: CSV into DGV

I did find group-object but used group-object Model am getting this Assets.png anyway to shorten the code? import-csv '\\share\assets.csv' | Select-Object Manufacturer, Model, Count | Group-Object Model | ForEach-Object { [PSCustomObject]@{ 'Count' = $_.Count; 'Model' = $_.Name; 'Manufacturer' = $_....
by JohnTitor
Thu May 27, 2021 8:27 am
Forum: PowerShell
Topic: CSV into DGV
Replies: 6
Views: 2581

CSV into DGV

Hi, I have CSV it contains USERNAME, Manufacturer, Model, hundreds of rows of different Names, Manufacturers and Models. We're looking to quickly few the counts of each model types. So something similar would be JohnSmith , HP , 840G8 JaneSmith , Apple , 15 inch iPad Pro DarringSmith, Dell, 7510 How...