• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • 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?
0
OutOnALimbAlways
Asked:
OutOnALimbAlways
  • 2
2 Solutions
 
OutOnALimbAlwaysAuthor Commented:
To make myself clearer, in the example above the program is physically installed  on Drive F:
0
 
TommySzalapskiCommented:
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.
0
 
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:
http://msdn.microsoft.com/en-us/library/3kz7fyks(v=vs.90).aspx

This site also provides the location of the registry settings.
0
 
OutOnALimbAlwaysAuthor Commented:
Thanks. Quick answers.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

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