Avatar of AlLerner
AlLerner
 asked on

How to update an already existing Gridview in Powershell instead of showing a new one?

I would like to run a certain scheduled PowerShell script that shows a gridview as a result. Not a problem so far. The problem is, I don't want that every time a new GridView Window to be opened.

Does anyone have an Idea how to update the data in the grid instead of opening a new grid in a new window every time the script runs?

Thanks

Alexander
PowershellScripting LanguagesShell Scripting

Avatar of undefined
Last Comment
AlLerner

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Aard Vark

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
AlLerner

ASKER
I've requested that this question be deleted for the following reason:

Noone has an answer
Aard Vark

I don't know if this finding out that what you want is not possible constitutes "Noone has an answer". You have an answer and also an alternative. I've presented you with a link to created your own custom out-grid script which will allow you to refresh on an interval or with a refresh button. As it stands, MS have not given the ability with the Out-GridView cmdlet to update data in Out-GridView with dynamic data without running the command again.

Refer Xin Li's (MS PowerShell Team) comment about this: http://blogs.msdn.com/b/powershell/archive/2009/03/12/out-gridview-revisited.aspx
AlLerner

ASKER
Thanks!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23