MF20.dsn user

Hello,

Can someone tell me how to change the user that is stated in the MF20.dsn in citrix 4.5?
I have 10 servers that it needs to be changed on.

Thank you.
LVL 1
tfsaccountAsked:
Who is Participating?
 
Carl WebsterConnect With a Mentor Commented:
manually edit the dsn file

net stop imaservice
Dsmaint config /user:UserName /pwd:passwordforusername /dsn:"C:\Program Files\Citrix\Independent Management Architecture\mf20.dsn"
dsmaint -recreatelhc
net start imaservice
net start "Citrix SMA Service"
net start CitrixWMIService

Do that on all 10 servers.

0
 
tfsaccountAuthor Commented:
Can i do that on 1 server at a time? or do i have to do this on all the servers at the same time?
0
 
Carl WebsterCommented:
one server at a time is best.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
tfsaccountAuthor Commented:
error:
Failed to connect to the data store. The settings will be reverted to the previo
us configuration.
Unable to change configuration settings.
Please verify parameters and data source.

I chaged the user name to the new username i want to use and that users password.
0
 
Carl WebsterCommented:
Does that user account have rights to the data store?
0
 
tfsaccountAuthor Commented:
The user has Domain Admin rights. But does that mean it has rights to the data store?
0
 
Carl WebsterCommented:
Nope, not at all.  You have the give the user the necessary rights to the data store.

http://support.citrix.com/proddocs/topic/xenapp5fp-w2k3/ps-datastore-ref-wrapper-v2.html
0
 
tfsaccountAuthor Commented:
hum... i am not seeing any information on that site you provided on how to give a user access to the datastore...
0
 
Carl WebsterConnect With a Mentor Commented:
The user account for installing, upgrading, or applying hotfixes to the data store must have database owner (db_owner) rights to the database. When you finish installing the database with database owner rights, set the user permissions to read/write only. This increases the security of the database.

0
 
tfsaccountAuthor Commented:
THank you. I have not tried it yet becaues i have users on all of my servers. But if i have any issues i'll be back.
0
 
Carl WebsterCommented:
You can do this while users are on the servers.  Just login yourself to the server, then disable logins so no new users can connect and then do this process.  The entire process should take less than 30 seconds maybe 1 minute at the max.
0
 
tfsaccountAuthor Commented:
When you say "manually edit the dsn file" do you mean... open the file in notepad and change the username and password? then run the commands?

also i think if i stop thoes services it will kick thoes users out....
0
 
Carl WebsterCommented:
Yes, use notepad and cahnge the username.  The password is not kept in the file.

Stopping those services will NOT kick the users out.  I did it on 10 servers last week that that "somehow" reverted to an older DSN file.  Each server had around 30 users and no one was kicked off and no one lost any work.

If you want to speed up the process even more, put all the commands in a batch file so you don't have to wait on your typing skills at the command line.
0
 
tfsaccountAuthor Commented:
I checked w/ our DBAdmin and he said the new user has full rights to the citrix database. I just gave it a try and it still gives me the error
error:
Failed to connect to the data store. The settings will be reverted to the previo
us configuration.

steps i took.
opened the mf20 file
changed the username to the new one: AdminCitrix
ran:net stop imaservice
ran:Dsmaint config /user:AdminCitrix /pwd:password /dsn:"C:\Program Files (x86)\Citrix\Independent Management Architecture\mf20.dsn"

erroed out.
Started services.
no users were kicked out.
0
 
Carl WebsterCommented:
Whenever I have run into this issue it has been either the username is wrong, the password is wrong or the path is wrong.
0
 
tfsaccountAuthor Commented:
Hello again,
IS there a way I can test this to make sure it worked? Just run the AMC and see if it works?
Not sure what was different from your script but this is what worked for me.

dsmaint config /user:DOMAIN\AdminCitrix /pwd:Password101 /dsn:"C:\Program Files (x86)\Citrix\Independent Management Architecture\mf20.dsn"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.