I thought one of the options on amqmdain
let you change the dcomcfg user.
-Jeff Lowrey
| From:
|
"Meekin, Paul" <paul.meekin-qa95pOAvxZY@public.gmane.org>
|
| To:
|
MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org
|
| Date:
|
06/02/2009 05:10 AM
|
| Subject:
|
Re: [MQSERIES] Changing the MQ userid
on Windows in a program/script |
Thanks Iqbal,
Don’t know how I missed
that! It seems that you can run amqmjpse.exe in silent mode and it will
accept the userid and password in the MQParms file. I have tested this
and it works.
Unfortunately it still doesn’t
quite meet my requirements as the command seems to start a new process
and then terminates so I am not getting any response as to whether or not
the operation was successful.
However, the ability to encrypt
the MQParms file could be very useful. If only there were some way of determining
if the amqmjpse has been successful......
From: Iqbal Yusaf [
mailto:iqbal <at> rtik.com]
Sent: 01 June 2009 19:09
To: Meekin, Paul [CCC-OT_IT]
Subject: RE: Changing the MQ userid on Windows in a program/script
Hi Paul,
A quick check of the IBM
doc indicates amqmjpse may be run in silent mode and with an input file
(MQParms parameter file) so this may fulfil your requirement for a solution
with no user interaction.
You could also check out
Microsoft Windows PowerShell with or without the “PowerShell for IBM WebSphere
MQ” supportpac from IBM.
M074: WebSphere MQ –Windows
PowerShell Library
http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24017698
Example scripts for manipulating
Active Directory may be found here:
http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/default.mspx?mfr=true
Please do post your solution
to the list if any of these options work for you.
Good luck!
Iqbal Yusaf
San Francisco, CA
From: Meekin, Paul [
mailto:paul.meekin-qa95pOAvxZY@public.gmane.org]
Sent: Monday, June 01, 2009 6:30 AM
Subject: Re: Changing the MQ userid on Windows in a program/script
Hi Peter,
Trouble is tracking down
these functions. I have spent days trying to figure out how to do a particular
“function” in Windows (ever tried to get a comprehensive list of what
software products are installed on a Windows box?) and was hoping that
someone on the list might have done the donkey work!
And even if you do happen
upon a function that seems to do what you want it only works with NT/AD
security (delete as applicable) or was deprecated with Win2003 or needs
VB .NET (but might work in JScript if MS bothered to give sample code).
Searching through MSDN –
is that even possible without already knowing what you’re looking for?
Only now do I understand the idea of being in a maze of twisty little passages
that all look the same!
Cheers,
Paul
From: MQSeries List [
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org]
On Behalf Of Heggie, Peter
Sent: 29 May 2009 15:59
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org
Subject: Re: Changing the MQ userid on Windows in a program/script
all of these functions are available
as Windows APIs, however I can't tell you the names. Might be through WMI.
I'm sure you can find the info searching through MSDN.
Peter Heggie
Integration Center of Excellence
ICoE, Enterprise Technical Services
IS
National Grid
Syracuse Office Complex
Office:315-428-3193
Cell: 315-263-2210
Peter.Heggie-F0ssv5Xc6C1Wk0Htik3J/w@public.gmane.org
Please consider the environment
before printing this email.
From: MQSeries List [
mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org]
On Behalf Of Meekin, Paul
Sent: Friday, May 29, 2009 10:53 AM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org
Subject: Changing the MQ userid on Windows in a program/script
Hi,
Does anyone know if it is possible to change
the id
that runs the QMgr processes on Windows programmatically? I know you can
use amqmjpse.exe but that requires
an interactive dialogue.
Also it seems there are some
(undocumented-ish)
options you can use with amqmsrvn.exe
but the trouble there is this seems to fire off a new process so you get
no indication as to whether
the
command has
completed or if the
update
has been
successful.
dcomcnfg.exe
is yet another means to do it but again
uses an interactive dialogue.
Basically I need to
be able to run a command that will accept
a userid and password and set the MQ id accordingly. Any help would be
very much appreciated.
Cheers
Paul Meekin
********************************************************************************
This e-mail and any files transmitted with it, are confidential to National
Grid and are intended solely for the use of the individual or entity to
whom they are addressed. If you have received this e-mail in error,
please reply to this message and let the sender know.
List Archive -
Manage Your List Settings -
Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com