Starting with PowerGUI 1.8 you can tell the tool whether your action changes the objects to which it applies (and thus you need it to refresh the objects after the action is executed) or the action leaves the objects as they are and there’s no need to refresh.
This is one of the setting you can pick in the action properties / Display Configuration and it obviously can make your end-user experience much better.
So as an example, if you have a node that gives you a list of AD users (basically executes Get-QADUser):
- You need to refresh the node if your action is deleting a selected user account or changing its properties,
- You should not refresh if your action is just producing some kind of report based on your objects in the grid.
Tags: PowerGUI, PowerPack, PowerShell
0 Responses to “Refresh or not refresh”