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
0
votes
1 answer

How can I get the backed-up Database name?

I try to backup multiple SQL Server databases using this code: $date = Get-Date -format "yyyyMMdd_hhmmssfff" Get-SqlDatabase -ServerInstance localhost | Out-GridView -PassThru | Backup-SqlDatabase -BackupFile C:\Backup\MyBackup_$date.bak I'm able…
Geri Reshef
  • 397
  • 1
  • 6
  • 17
0
votes
1 answer

How to Use -OutputMode Multiple PassThru

I keep getting an error when I run this code. It is from this website http://woshub.com/find-duplicate-files-powershell/ $file_dublicates | Out-GridView -Title "Select files" -OutputMode Multiple –PassThru | Remove-Item –Verbose –WhatIf Out-GridView…
PCTech
  • 19
  • 4
0
votes
1 answer

Powershell array in array to use in Out-GridView

I am trying to optimize how my logging file looks in an app I have developed. I'm currently using the following code: $pro_arry = @( "V 1.0 Initial Release 7 July 2022", "V 1.1 Optimized Update functionality and added logging …
I am Jakoby
  • 577
  • 4
  • 19
0
votes
2 answers

PowerShell Out-GridView

Using Out-GridView, how do you control what the column names are? I would like something meaningful for the column names instead of “string” - is this possible? [string] $colLabel = 'MyLabel' [string] $a = 'a' [string] $b = 'b' $Selected =…
ornerygoat
  • 13
  • 5
0
votes
1 answer

Powershell read-host -prompt (How to lookup values in external file as you type them in console)

I have PowerShell console script (Not GUI) that has the following code: $Servername = Read-host -Prompt "What is the server name?" However, when running the script I want to type a few characters at time and have it lookup in external text file…
Elektro Kinetik
  • 57
  • 2
  • 10
0
votes
1 answer

Generating hashcodes for specific filetypes only with Powershell

I'm a complete beginner to Powershell and scripting, and have been successfully been using Out-GridView to display some properties of the files I have in my directories using the following: dir D:\Folder1\$type -Recurse | Select…
0
votes
1 answer

Out-gridview filter wildcard

Just wanted to confirm, from my observation, the FILTER in out-gridview can't accept wildcards, is that correct? I tried *, %...it doesn't seem to support any and I can't find documentation that confirms this. For example I have : If I filter with…
Rakha
  • 1,874
  • 3
  • 26
  • 60
0
votes
1 answer

Powershell: Out-gridview with text files

I have two text files, let's say containing: 1.txt: 1 2 3 4 5 6 2.txt: a b c d e f I'm trying to read the files, then output the results to Out-Gridview (each file in it's own column) : 1 a 2 b 3 c 4 d 5 e 6 f I'm trying : $list1= gc 1.txt…
Rakha
  • 1,874
  • 3
  • 26
  • 60
0
votes
3 answers

Run multiple test-connection for one gridview output

How can I use multiple Test-Connection cmdlets and put them all in one Out-GridView, or is there another solution to what I'm trying to do here? The point is to be able to ping multiple adresses after one another and have it all appear in the same…
Thom Ernst
  • 379
  • 1
  • 4
  • 15
0
votes
1 answer

Display test-connection successes and failures in Out-Gridview

I am trying to get a list of servers and the last time they rebooted to show in a table. However, if it doesn't respond to a ping, I just need it to show in the list. I can't seem to figure out how to get it to add to the table after…
Daniel K
  • 3
  • 1
-1
votes
2 answers

Loop through servers and output results along with errors

I wrote a simple PowerShell script to retrieve a list of servers' last boot time and output the results to grid view. The results are immediately shown in the grid window but and comes to a short pause whenever a server is not responding to the get…
Laurent
  • 19
  • 1
  • 6
-1
votes
1 answer

PowerShell - custom object - order of appearance in Out-GridView

A simple question but how to make it happen eludes me. I created a new object so I can have custom columns in Out-GridView. My question is, in the code the order is DN, Role, Montage, Lieu ... but in the actual GridView, it appears as IP, Montage,…
Rakha
  • 1,874
  • 3
  • 26
  • 60
1
2