Skip to content

How to send a pop-up message to all users in Active Directory

You need every member of an Active Directory group to see a message now, wherever they are signed in. Windows offers msg.exe and PowerShell; both target computers, not people. Here are the options and where each one stops.

Example maintenance message displayed in the dMessage reception agent

Option 1: msg.exe on each computer

msg.exe sends text to the sessions open on one computer or session host. It replaced net send, which disappeared after Windows XP. It works for a one-off message to a server, but it does not know Active Directory groups, and it is missing from Windows Home editions.

msg * /server:PC-ACCOUNTS-07 /time:600 "The file server restarts at 12:30. Please save your work."

Option 2: PowerShell over the members of a group

You can resolve a group's members, find the computers they use and run msg.exe remotely with Invoke-Command. In practice this needs WinRM on every PC, administrator rights, an up-to-date mapping between users and computers, and someone to write and run the script under pressure. You also get no record of who read the message.

Option 3: target the group itself

Alert software such as dMessage reads Active Directory directly. You choose a user, a group (including nested groups), a computer or an organisational unit, and the message appears on the PCs where those users are signed in, in the foreground.

  • No user-to-computer mapping to maintain.
  • Templates prepared in advance, sent in two clicks.
  • Read receipts showing who has seen the message.
  • Optional filters: show the message only where a given process is running, or wait until a PowerPoint slideshow ends.

Good practice

Create groups dedicated to alerts, such as “All staff – Leeds” or “IT on call”. They then serve every message, not just one incident.

Which one to choose?

For a quick message to the users of one server, msg.exe is enough. For a department, a site or the whole organisation, and when you need to know who has read it, a dedicated tool saves the script and the guesswork. It does need an agent installed once on each PC, typically through Group Policy or your deployment tool.

Over 300,000 users protected by dMessage

Send your first message to an AD group

Install the evaluation version, pick a pilot group and see who has read it. Free for 30 days.

Download the free trialSee pricing

Sources: Microsoft Learn: msg command reference · Microsoft Learn: Invoke-Command