Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Unable to Display pop-up from PowerShell - started by Task Scheduler.

12 Mar 2014   #1
gctaylor11

Win 7 64 Enterprise
 
 
Unable to Display pop-up from PowerShell - started by Task Scheduler.

I have a PowerShell script that is kicked off via Task Scheduler in the middle of the night when I'm not using the computer. One of the tasks in the script is to check if a remote network share is available and display a pop-up message if it is not. This is so I can see a visual reminder that the share was unavailable when I log on in the morning. When the PowerShell script is run from Task Scheduler it doesn't pop-up irregardless of whether I'm logged in or not. That kind of makes sense I guess since Task Scheduler is not expecting user interaction.

How can I accomplish this remote share check and display a pop-up that is also scheduled via Task Scheduler? Or how can I get my PowerShell script to display this pop-up when run via Task Scheduler?

Thanks,
Gary


My System SpecsSystem Spec
.
12 Mar 2014   #2
Ztruker

Windows 10 Pro X64
 
 

Maybe send yourself an E-mail instead?
My System SpecsSystem Spec
13 Mar 2014   #3
gctaylor11

Win 7 64 Enterprise
 
 

Quote   Quote: Originally Posted by Ztruker View Post
Maybe send yourself an E-mail instead?
PowerShell v2 has a cmdlet just for this and it works!
Send-MailMessage -To "me@some_address.com" -From "me@some_address.com" -Body "test" -Subject "test!" -SmtpServer "mail.some_address.com"

Thanks for your idea.

Gary
My System SpecsSystem Spec
.

13 Mar 2014   #4
Ztruker

Windows 10 Pro X64
 
 

I suspect the problem with the script popup is it's not running under your account but running under System. Just a guess.

Glad E-mail works though.
My System SpecsSystem Spec
Reply

 Unable to Display pop-up from PowerShell - started by Task Scheduler.




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Task Scheduler - Create Task to Display a Message Reminder
How to Display a Message Reminder in Windows with Task Scheduler This will show you how to create yourself, or another user or group, a message reminder scheduled to display for when and how often you like in Windows 7 or Vista using Task Scheduler. All users on the computer will be able to...
Tutorials
How do I display the current time in the Task Scheduler?
I'd like the Task Scheduler to display the current time when a task begins. Something like: "This task is beginning at {CURRENT_TIME}" "This task has completed at {CURRENT_TIME}" Thanks, Burt
General Discussion
Task scheduler unable to load task status/active tasks at startup.
My task manager is unable to load task status/active tasks at startup. I get the message: "The selected task "{0}" no longer exists. To see the current tasks, click Refresh." When I refresh I get the same message. I checked and found that under Microsoft the problem was in the defrag...
Performance & Maintenance
Unable to start Task Scheduler
Windows Task Scheduler seems determined to fail me. When I try to run it, it simply says "remote computer was not found," and the service is useless. I tried running services.exe and starting Task Scheduler from there, but it 'starts and stops,' with the following message: "The Task Scheduler...
General Discussion
unable to stop 'Task Scheduler' service
When trying to stop de Scheduler service I get a "system error 5: access denied" error. Searching the web didn't get me very far. The only thing I found was a matter of rights on the %systemroot%\task folder. This didn't help. Does the problem ring a bell with anyone? Thanks in advance,...
General Discussion
Unable to start Task Scheduler
When I do a Windows Update, it fails to install the Office Genuine Advantage Notifications with a Code 80070643. I looked around for a solution and found that this can happen if the Task Scheduler is disabled. Sure enough, my Task Scheduler is disabled. When I try to use Services.msc to...
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App