Skip to content

Windows MSG command: syntax, examples and required permissions

To alert someone signed in to a session host, find their session ID and run msg.exe from an authorised account.

Cover: the Windows MSG command, how it works and its limits

Send a message to a test session

  1. From the command prompt, list the sessions on your server. Replace RDS01 with its name.
    query session /server:RDS01
  2. Find the connected test session. If its ID is 3, display a message for 60 seconds.
    msg 3 /server:RDS01 /time:60 "Test IT"
  3. Check with the recipient that it arrived. If access is denied, have the Message permission on the host checked. If the session cannot be found, check the server and reread the list of active sessions.

Microsoft’s MSG command reference

Choosing a Net Send alternative for a group of PCs · Preparing maintenance messages

When should you use a graphical interface instead of MSG.exe?

MSG is still fine for a one-off message to an active session on an RDS host, with the required send permission. For a support team that regularly needs to alert a group of PCs, a graphical console lets you choose recipients in Active Directory and prepare templates.

Install the agent on two pilot PCs, then open the dMessage console on an authorised PC. Select only the first PC, request a receipt and have the notice read. The second PC acts as a control. Test this sequence before replacing your current MSG usage.

The limits of MSG in a corporate environment

For a one-off exchange between two PCs, MSG may be enough. As soon as you need to alert an estate across an organisation, its technical and operational constraints become deal-breakers.

  • Check the session and permissions. The server must be reachable and the session must exist on that host. The sending account must have the Message permission. If it is refused, ask the administrator to check the session permissions.
  • No read receipts, no log. MSG keeps no record: no timestamp, no list of PCs reached or failed, no named confirmation. After an incident, there is no way to establish who was informed and when: a blind spot incompatible with any formal crisis management.
  • Targeting by machine name, with no use of Active Directory. MSG knows nothing about departments, sites or buildings. Reaching a specific part of the organisation means maintaining your own files mapping PC names to business units, then scripting send loops, when Active Directory already holds that information.
  • Manual typing under stress, with no prepared template. During an incident, the operator has to open a command prompt and type the message, with no pre-written template, no visual priority level and no trigger shortcut. The text is plain: a critical alert looks exactly like a meeting reminder.

What dMessage does where MSG reaches its limits

When an incident strikes, the challenge is no longer sending a message but making sure it was received, by whom and when. On the four specific points where MSG falls short, here is how dMessage works.

  • Instant delivery across the whole estate, whatever its size: a single action reaches every PC within seconds. The pop-up takes the foreground over every open application, including during a Teams meeting or a presentation, so users cannot miss it.
  • Named, timestamped read receipts: every receipt is recorded. During and after the incident, the list of PCs reached, users who acknowledged the message and exact times can be viewed in real time — a direct answer to the question security teams or management ask once the crisis is over.
  • Targeting through your existing Active Directory, with no mapping file to maintain by hand: by department, site or building. The organisational structure already in the directory is used directly, avoiding loop scripts and lists of machine names to keep up to date.
  • Preconfigured templates with visual priority levels, prepared outside a crisis and triggered in a few clicks: the right message goes out without retyping under stress. Everything runs 100% on premises, in a closed loop, with no dependence on email, the internet or a third-party cloud.

Adopted by the most demanding organisations

Where unread information is not an option, dMessage delivers vital alerts across the whole estate within seconds.

Healthcare

Several French university hospitals trigger their major incident plans (Plan Blanc, ORSAN) across every department within seconds, without relying on email.

Industry

A French manufacturer with 18,000+ PCs, deployed via SCCM, handles its industrial emergencies and cyber incidents on a sovereign channel.

Public sector & finance

National public institutions and asset managers rely on dMessage for their critical internal communications.

Any questions?

Frequently asked questions

On the computer sending the message, run msg /? to check that the command is available. For a remote send, give the name of the server hosting the session with /server.
MSG has no native way to reach the whole domain: the * character targets all sessions on a single machine. The usual workaround is to loop over a file of machine names (for /f %i in (postes.txt) do msg /server:%i * "message"), but this method remains sequential, with no consolidated status and no delivery guarantee.
No. dMessage runs entirely in a closed loop on the organisation’s local network, with no dependence on the internet or a third-party cloud service. Alerts still go out if internet access is cut.
All data stays on the organisation’s infrastructure: dMessage is deployed 100% on premises, with no external transit or storage. The organisation is its own host.
No. dMessage builds on your existing Active Directory for targeting by department or site, with no infrastructure reconfiguration and no extra mapping files to maintain.
Install the dMessage agent on recipient PCs and configure the shared folder used by the sending console. Check access rights to that folder on a pilot PC.
The pop-up takes the foreground over all active applications, including during a Teams meeting or a presentation. However, dMessage, like any software channel, cannot reach a PC that is switched off or has no open session.

Protect your teams today

Stop entrusting vital alerts to an overloaded email system. Take back full control of your sensitive information flows with on-premises technology. Never miss critical information again.

Request your demo Explore the features

Sovereign deployment. No complex technical commitment.