How to send messages via power shell to all users on AD

If you ever encounter a situation that you need to send A warning message to all users unprecedented this is a good quick trick!

( Import module activedirecory is required for this )


(Get-ADComputer -Filter *).name | ForEach-Object {msg “*” /Server:$_ “**IMPORTANT NOTICE FROM IT *** Following on from the email sent earlier, please save your work and reboot your PC to allow us to resolve the issue”}


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.