# How to create MSMQs in your Windows 10 local development machine (2 ways)!

At some point in your development career, you'd stumble upon an application that requires MSMQs (Microsoft Messaging Queues). Here's how to create MSMQs in your local development machine.

## Enable Microsoft Message Queueing Feature

Microsoft Message Queuing feature is disabled by default, you need to enable it.

* Search *Turn Windows features on or off*
    
    ![](https://blog.satishyadav.com//images/turn-features-on-or-off.png align="left")
    
* Enable *Microsoft Message Queue (MSMQ) Server*
    
    ![](https://blog.satishyadav.com//images/microsoft-message-queue-enable.png align="left")
    

This will search for some files in Windows Update and enable this feature.

## Create an MSMQ using UI

* Search *Computer Management*
    
    ![](https://blog.satishyadav.com/images/computer-management.png align="left")
    
* Scroll down to *Services and Applications*\-&gt; *Message Queuing*
    
    ![](https://blog.satishyadav.com//images/create-private-queue.png align="left")
    
* Right Click either on *Private Queues* or *Public Queues*\-&gt; *Private Queue*
    
* Give the MSMSQ a name. Check *Transactional*, if you want to create a *Transactional Queue*.
    
    ![](https://blog.satishyadav.com//images/demo-queue.png align="left")
    
* Newly created MSMQ will be listed.
    
    ![](https://blog.satishyadav.com//images/demo-queue-listed.png align="left")
    

## Create an MSMQ using PowerShell

* Search *PowerShell*
    
    ![](https://blog.satishyadav.com//images/powershell.png align="left")
    
* Type following command
    
    ```shell
    New-MsmqQueue -Name ps-demo-queue -QueueType Private -Transactional
    ```
    
    ![](https://blog.satishyadav.com//images/new-msmqqueue.png align="left")
    
* You should see output something like this:
    
    ![](https://blog.satishyadav.com//images/new-msmqqueue-output.png align="left")
    
* You can verify the MSMQ created
    
    ![](https://blog.satishyadav.com//images/ps-demo-queue-listed.png align="left")
    

That's it! Now you know 2 ways to create an MSMQ.

Happy Coding!
