You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command is an alternative to Out-Gridview. It works much the same way. Run a PowerShell command and pipe it to this command. The output will be displayed in a data grid. You can click on column headings to sort. You can resize columns and you can re-order columns.
23
+
This command is an alternative to Out-Gridview. It works much the same way. Run a PowerShell command and pipe it to this command. The output will be displayed in an autosized data grid. You can click on column headings to sort. You can resize columns and you can re-order columns. You will want to be selective about which properties you pipe through to this command. See examples.
24
24
25
-
You will want to be selective about which properties you pipe through to this command. See examples.
25
+
You can specify a timeout value which will automatically close the form. If you specify a timeout and the Refresh parameter, then the contents of the datagrid will automatically refreshed using the timeout value as an integer. This will only work when you pipe a PowerShell expression to ConvertTo-WPFGrid.
26
26
27
-
Unlike Out-Gridview, your PowerShell prompt will be blocked until the WPF-based grid is closed.
27
+
This command runs the WPF grid in a new runspace so your PowerShell prompt will not be blocked. However, after closing the form you may be left with the runspace. You can use Remove-Runspace to clean up or wait until you restart PowerShell.
Get all services from Server1 and display selected properties in a grid which will be centered on the screen.
37
+
Get the top 20 processes based on the value of the WorkingSet property and display selected properties in the WPF Grid. The contents will automatically refresh every 20 seconds. You will need to manually close the form.
By default the grid will remain displayed until you manually close it. But you can specify a timeout interval in seconds.
88
-
The minimum accepted value is 5 seconds. Because the timer ticks in 5 second intervals it is recommended that your time out value also be a multiple of 5.
88
+
The minimum accepted value is 5 seconds. If you use this parameter with -Refresh, then the datagrid will be refreshed with results of the PowerShell expression you piped to ConvertTo-WPFGrid.
89
89
90
90
```yaml
91
91
Type: Int32
@@ -99,41 +99,9 @@ Accept pipeline input: False
99
99
Accept wildcard characters: False
100
100
```
101
101
102
-
### -Width
103
-
104
-
Specify a width in pixels for your form.
105
-
106
-
```yaml
107
-
Type: Int32
108
-
Parameter Sets: (All)
109
-
Aliases:
110
-
111
-
Required: False
112
-
Position: 4
113
-
Default value: 1024
114
-
Accept pipeline input: False
115
-
Accept wildcard characters: False
116
-
```
117
-
118
-
### -Height
102
+
### -Refresh
119
103
120
-
Specify a height in pixels for your form.
121
-
122
-
```yaml
123
-
Type: Int32
124
-
Parameter Sets: (All)
125
-
Aliases:
126
-
127
-
Required: False
128
-
Position: 5
129
-
Default value: 768
130
-
Accept pipeline input: False
131
-
Accept wildcard characters: False
132
-
```
133
-
134
-
### -CenterScreen
135
-
136
-
Windows will display the form in the center of your screen.
104
+
If you specify this parameter and a Timeout value, this command will refresh the datagrid with the PowerShell expression piped into ConvertTo-WPFGrid. This will only work if you are using this command at the end of a pipelined expression. See examples.
137
105
138
106
```yaml
139
107
Type: SwitchParameter
@@ -142,15 +110,14 @@ Aliases:
142
110
143
111
Required: False
144
112
Position: Named
145
-
Default value: False
113
+
Default value: None
146
114
Accept pipeline input: False
147
115
Accept wildcard characters: False
148
116
```
149
117
150
118
### CommonParameters
151
119
152
-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
153
-
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
120
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
0 commit comments