displaying progress while restarting a service
Posted: Mon Sep 03, 2012 9:19 am
Mighty all, I'm observing the following behavior in the script below:
form loads for several seconds (which actually are required to restart the service) and the "post service restart" message.
What I would expect to see is: form loads, the "please wait" message is displayed, form freezes for a time needed for restarting a service, "post service restart" text is displayed.
Please let me know if my expectations are wrong andor if there is a better way of indicating to an end user the fact that a service is restarting.
Thanks in advance!
$FormEvent_Load={
$label.Text = "Changes are being applied, please be patient."
Restart-Service servicename
$label.Text = "Changes have been applied."
}
form loads for several seconds (which actually are required to restart the service) and the "post service restart" message.
What I would expect to see is: form loads, the "please wait" message is displayed, form freezes for a time needed for restarting a service, "post service restart" text is displayed.
Please let me know if my expectations are wrong andor if there is a better way of indicating to an end user the fact that a service is restarting.
Thanks in advance!
$FormEvent_Load={
$label.Text = "Changes are being applied, please be patient."
Restart-Service servicename
$label.Text = "Changes have been applied."
}