Search found 194 matches

by apowershelluser
Thu Aug 05, 2021 8:44 pm
Forum: PowerShell GUIs
Topic: Tooltip on Cell in DGV
Replies: 5
Views: 5052

Tooltip on Cell in DGV

I was looking to display a tooltip when I enter a cell and found this post: https://www.sapien.com/forums/viewtopic.php?f=21&t=15000&p=78696&hilit=datagridview+tooltip#p78696 It appears there are C examples, but its a bit more complex for me however appears to be doable. For example, I h...
by apowershelluser
Tue Jul 27, 2021 5:57 am
Forum: PowerShell GUIs
Topic: Progress bar when running PS cmdlet
Replies: 5
Views: 5095

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 apowershelluser
Tue Jun 08, 2021 11:33 am
Forum: PowerShell
Topic: Import iPhone Photos
Replies: 1
Views: 6643

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 apowershelluser
Mon Jun 07, 2021 9:45 am
Forum: PowerShell GUIs
Topic: Load data after SelectedIndexChange
Replies: 2
Views: 3984

Re: Load data after SelectedIndexChange

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

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

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 apowershelluser
Wed Jun 02, 2021 6:04 am
Forum: PowerShell GUIs
Topic: Robocopy in PS 2019
Replies: 4
Views: 5144

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 apowershelluser
Thu May 27, 2021 2:41 pm
Forum: PowerShell GUIs
Topic: DataGridView right click
Replies: 1
Views: 2648

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 apowershelluser
Thu May 27, 2021 2:17 pm
Forum: PowerShell
Topic: CSV into DGV
Replies: 6
Views: 7133

Re: CSV into DGV

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

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 7094 times
and not like this :)
assets2.png
assets2.png (7.23 KiB) Viewed 7094 times
by apowershelluser
Thu May 27, 2021 9:40 am
Forum: PowerShell
Topic: CSV into DGV
Replies: 6
Views: 7133

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' = $_....