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

gctaylor11

New member
Local time
8:11 AM
Messages
2
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 Computer My Computer

At a glance

Win 7 64 Enterprise
Computer type
PC/Desktop
OS
Win 7 64 Enterprise
Maybe send yourself an E-mail instead?
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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 Computer My Computer

At a glance

Win 7 64 Enterprise
Computer type
PC/Desktop
OS
Win 7 64 Enterprise
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 Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top