Today’s favourite command line (#2 in a series)


For years without end I’ve been typing



NET STOP MSMQ


{{twiddle thumbs}}


NET START MSMQ


without realising there has always been a way to get rid of the wasted time in the middle – you can concatenate the commands!



NET STOP MSMQ && NET START MSMQ


Every day there is an opportunity to learn something new.

Comments (2)

  1. Harley Green says:

    Or if you’re using powershell:

    Restart-Service MSMQ -Force

  2. MSDNArchive says:

    Thanks, Harley.