Questions tagged [out-gridview]

Out-GridView PowerShell cmdlet sends the output from a command to a grid view window where the output is displayed in an interactive table.

Aliases
The following abbreviations are aliases for this cmdlet:

ogv

Syntax

Parameter Set: PassThru
Out-GridView [-InputObject <PSObject> ] [-PassThru] [-Title <String> ] [ <CommonParameters>]

Parameter Set: OutputMode
Out-GridView [-InputObject <PSObject> ] [-OutputMode <OutputModeOption> ] [-Title <String> ] [ <CommonParameters>]

Parameter Set: Wait
Out-GridView [-InputObject <PSObject> ] [-Title <String> ] [-Wait] [ <CommonParameters>]

Detailed Information:

http://technet.microsoft.com/en-us/library/hh849920.aspx

27 questions
3
votes
1 answer

pipe loop to out-gridview and clear grid on every loop?

I'm just wondering if I can clear Out-Gridview on every loop like I can in the console: while (1) { ps | select -first 5; sleep 1; clear-host } Unfortunately this doesn't clear out-gridview every time: & { while (1) { ps | select -first 5; sleep…
js2010
  • 23,033
  • 6
  • 64
  • 66
3
votes
1 answer

Out-Gridview removes underscores

Consider the following code: $a = @() $b = "" |select ho_ho,ha_ha $b.ho_ho = "1" $b.ha_ha = "2" $a+=$b $b = "" |select ho_ho,ha_ha $b.ho_ho = "3" $b.ha_ha = "4" $a+=$b $a | Format-Table -AutoSize $a | Out-GridView Using Format-Table, the…
Bjorn Mistiaen
  • 6,459
  • 3
  • 18
  • 42
2
votes
3 answers

Powershell CSV Variable to Out-GridView

This is driving me nuts. I want to save CSV text to a string variable - NOT a file! I want to then output that (CSV) text to the Out-GridView using the commas as column separators. How do I do this? I have looked high and low, and I can find nothing…
2
votes
0 answers

Out-Gridview quick filter searches not allowing spaces

I'm using Out-GridView for PowerShell. Everything seems to work out fine, with the notable exception that Quick Filter searches do not allow for spaces to be typed in between multiple words. Unfortunately this is exactly what is advertised on its…
R. James
  • 55
  • 5
2
votes
3 answers

Out-Gridview even if no data found

I have an out-gridview implemented in my powershell script which shows me all files today created. If there are files in the specific path it works fine but if not nothing happens. It would be great that the grid appears even if the directory…
1
vote
1 answer

Out-gridview does not sorting results

I have a script that I am trying to collect drive letters from a list of servers (as well as used space and free space) and then gridview the results out. $servers = Get-Content "path.txt" foreach ($server in $servers) { Invoke-Command…
MjrPayne
  • 105
  • 1
  • 12
1
vote
1 answer

How to Out-Gridview multiple values to one key in Powershell?

I have a hashtable of IP connections that are associated to their Destination Prefixes. Here is the code to gather it all together: function Get-InterfaceRoutes { $interfaceIPs = Get-NetIPConfiguration -Detailed | Where-Object {…
1
vote
1 answer

Powershell: Out-GridView with List of User Profiles (Get-ChildItem -path \\$env:COMPUTERNAME\c$\users\)

Basic usage question: When I run Get-ChildItem -path \\$env:COMPUTERNAME\c$\users\ | Out-GridView -Title "Select from User Accounts" -PassThru all looks good, I get a nice pop-up dialog with user accounts to pick from, one account per row. Fields…
Travis Bennett
  • 131
  • 3
  • 12
1
vote
1 answer

Past only select fields to out-gridview

How can I past only a selection of fields from an object to show in out-gridview, but still keep the whole object as a result. For example, I retrieve an object that gives me: $listcreds = get-listofcredentials Id :…
Gabrie
  • 537
  • 1
  • 5
  • 15
1
vote
1 answer

Out-Gridview not passing selection to variable

I have created the below script which takes values assigned to an array $PerfList and displays them using Out-Gridview. Once the selection is made it should pass the selection to $Server, but doesn't. I get the following error: Index operation…
Dax
  • 35
  • 6
1
vote
1 answer

Dot in Powershell Out-GridView header hides columns

How can I use dots in the header of an Out-GridView? If a header in the Powershell Out-GridView contains a dot all columns of that header are empty. Example: echo "person.name,person-age`r`njohn,27" | ConvertFrom-Csv | Out-GridView Environment:…
lojoe
  • 521
  • 1
  • 3
  • 13
1
vote
1 answer

Powershell - Variables and foreach loop

This thread got me started very well, but now I need more help I am trying to loop through my serverlist.txt file, and pass the results of Get-EventLog to Out-GridView and then on to a .csv file. I have this working, but I have to select all the…
Kevin3NF
  • 113
  • 1
  • 8
1
vote
1 answer

Use Out-gridview to display Log

I'm pretty new to powershell scripts. I'd like to display a log file in a gridview using out-gridview. Let's say I have a very simple script like $logFile = "logs\myCoolLogFile.log"; gc -wait $logFile | Out-GridView -Wait This displays each row in…
samjaf
  • 1,033
  • 1
  • 9
  • 19
1
vote
1 answer

Out-GridView with Passthru for powershell 2?

Powershell v3 added the -Passthru switch to the Out-GridView cmdlet that allows user to select items that are returned back to the pipeline. I'm looking for a similar solution for Powershell v2 (Dotnet 3.5/4.0). I need the option to pipe in some…
iTayb
  • 12,373
  • 24
  • 81
  • 135
0
votes
1 answer

Incorrect Out-GridView

I am trying to design a GUI for Powershell that will allow me to search a CSV log file based on the criteria that I set. I have the following code that works when I run the code only from within ISE. When I launch my GUI and click the search button,…
Dust Ellse
  • 71
  • 7
1
2