How to generate a unique QMId value in the registry-clonedworkstations

4gatch

New member
Local time
4:07 PM
Messages
2
I have multiple pools with hundreds of virtual desktops based off of a single base image. In order to recieve messages from a certain application per desktop the QMid needs to generate a new key for every desktop session. The QMid is found under HKLM<Software<Microsoft<MSMQ<Parameters<MachineCac he<QMId

The only solution I have found deals with not installing MSMQ on the base image and instead having a startup batch script to install MSMQ once the session is created and another VBS script to determine the computers name in AD then remove the msmq ocnfig object within.(Have not verified this actually works but sounds like it would)

***Would prefer not to have to use start up scripts***
This would require larger changes to our VMenvironment so I am
looking for a better solution if there is one?

Thanks!
 

My Computer My Computer

At a glance

Windows 7 Professional 32/64bit
Computer type
PC/Desktop
OS
Windows 7 Professional 32/64bit
I forgot to mention this is using VMWare
 

My Computer My Computer

At a glance

Windows 7 Professional 32/64bit
Computer type
PC/Desktop
OS
Windows 7 Professional 32/64bit
Clear QMId

I had the very same need just today. The last thing we do before taking a new snapshot of a Gold image is run a batch file that stops services and deletes registry values for systems that we need to be unique (e.g. SCCM, Sophos). I added the following lines to that to accomplish unique QMIds:

Code:
net stop msmq

reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters\MachineCache\ /v QMId /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters\ /v SysPrep /t REG_DWORD /d 1 /f

The steps were determined from the following site: MSMQ prefers to be unique - MSMQ from the plumber's mate - Site Home - MSDN Blogs
 

My Computer My Computer

At a glance

Windows 7 Enterprise 32-bit
Computer type
PC/Desktop
OS
Windows 7 Enterprise 32-bit
Back
Top