Countdown Timer With Restart Timer Button #235
Unanswered
richie19rich77
asked this question in
Q&A
Replies: 1 comment
-
Sorry ignore post. Just read #140 and have implemented PowerShell 7 to get this working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I have created a script to prompt the user for their login credentials which then maps a drive. The drive will stay connected for 20 minutes with a notification being sent at 5 minute intervals.
That works fine, but to reset the timer using the button I am having to execute another powershell script when the button is pressed, passing the PID of the original powershell process, killing the original powershell and starting a new countdown and new 20 minute notification.
Is there an easier way to run a powershell command linked to a button, rather than "powershell://run" command?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions