Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE REQUEST: Add cmdlet to send toasts system-wide and over the network #117

Open
bcurran3 opened this issue Sep 20, 2020 · 6 comments
Assignees

Comments

@bcurran3
Copy link
Contributor

bcurran3 commented Sep 20, 2020

REF: #33 and #35

There are many instances where sending a toast message to any and all logged in users by a remote sysadmin would be useful.

I propose a new cmdlet, alias, and/or -computer switch that would implement this.

Working proof of concept:
https://github.com/bcurran3/BurntToast/blob/bcurran3-patch-2-global-toast/BurntToast/Public/New-GlobalBurntToastNotification.ps1

image

This POC cmdlet works globally on the locally run system using $env:COMPUTERNAME. Changing it to a remote NETBIOS computer name will pop up the toast notification on that computer if WinRM is running on it. This POC cmdlet is not designed to test for WinRM status on remote computers.

DISCLAIMER: This will only work if the sender has admin access on local (?) and remote computers.

p.s. My skills are not refined enough to implement via a PR.

@bcurran3 bcurran3 changed the title FEATURE REQUEST: Add cmdlet to send toasts system-wide FEATURE REQUEST: Add cmdlet to send toasts system-wide and over the network Sep 20, 2020
@bcurran3
Copy link
Contributor Author

OK, I couldn't leave well enough alone and modified New-GlobalBurntToastNotification.ps1 to take a -computername switch to further along the POC. No doubt my ADD will kick in more and commit me to change the WinRM checking to work over the network....

@steviecoaster
Copy link
Contributor

@Windos if you want to grab some time I can implement this as part of New-BurntToastNotification directly so there's no need for a secondary cmdlet to do this over the network. Would be good to discuss some implementation details before I get to work here though.

@temeyers
Copy link

Was this ever implemented ?

@TechPrieto
Copy link

Is this working without install the module on each machine?

@lexcorp
Copy link

lexcorp commented Oct 31, 2023

Can this be used with the latest version?

@bcurran3
Copy link
Contributor Author

bcurran3 commented Oct 31, 2023

@lexcorp Yes, works fine with v0.8.5. I have it implemented via some Chocolatey add-ons I created:
https://community.chocolatey.org/packages/chocolatey-toast-notifications.extension
https://community.chocolatey.org/packages/choco-toast-notifications.hook

My use is specific to Chocolatey, but if you look at the code it's easily modifiable for other uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants