Solved

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

Posted on 2013-12-10
4
397 Views
Last Modified: 2013-12-10
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
Comment
Question by:OutOnALimbAlways
  • 2
4 Comments
 

Author Comment

by:OutOnALimbAlways
Comment Utility
To make myself clearer, in the example above the program is physically installed  on Drive F:
0
 
LVL 37

Assisted Solution

by:TommySzalapski
TommySzalapski earned 200 total points
Comment Utility
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
 
LVL 25

Accepted Solution

by:
Shaun Kline earned 200 total points
Comment Utility
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
 

Author Closing Comment

by:OutOnALimbAlways
Comment Utility
Thanks. Quick answers.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now