• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 419
  • Last Modified:

Which machine does 'savesetting' save to when the user is running a network share?

Hello all,

I am a bit new to vb.net, and currently do not have access to a network where I can test this out  myself. But I am looking at an old vb.net program with the following code:

SaveSetting(txtinput.Text, "SensitiveInfo", "ConnectionString", Server=SomeServer;Database=someDB;User ID=whatever;Password="PlainText")

The program is writing a connection string containing a plain text password to the registry.
The program is deployed on a network share. My concern is that it is not only writing a plain text password, (It is) but also writing to the server's registry, not the user's registry.

Does savesetting write to the registry on the machine where the program is deployed or does it write to the user's machine who is logged into the network where the program is deployed? If my local drive is C:, and I am mapped to drive F and running this program on drive F, will it write to my registry on drive C: or to the registry of the machine on drive F?
  • 2
2 Solutions
OutOnALimbAlwaysAuthor Commented:
To make myself clearer, in the example above the program is physically installed  on Drive F:
It will still write to the registry on C:
Unless you specifically told it otherwise, it doesn't even know there is a registry on F: the OS is on C so that is the registry it will use.
Shaun KlineLead Software EngineerCommented:
Applications that save information to the registry do so on the machine running the application, regardless of where the application is physically located.

You can find detailed help for this function on Microsoft's website:

This site also provides the location of the registry settings.
OutOnALimbAlwaysAuthor Commented:
Thanks. Quick answers.
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now