Click here to Skip to main content
15,884,472 members
Home / Discussions / C#
   

C#

 
Questionencrypt the connection string in the app.config file ? Pin
Member 24584674-Nov-14 15:26
Member 24584674-Nov-14 15:26 
AnswerRe: encrypt the connection string in the app.config file ? Pin
Bernhard Hiller4-Nov-14 20:39
Bernhard Hiller4-Nov-14 20:39 
GeneralRe: encrypt the connection string in the app.config file ? Pin
Member 24584675-Nov-14 14:37
Member 24584675-Nov-14 14:37 
QuestionWhat is the best approach to changing the local admin password? Pin
robwm14-Nov-14 11:44
robwm14-Nov-14 11:44 
GeneralRe: What is the best approach to changing the local admin password? Pin
PIEBALDconsult4-Nov-14 12:59
mvePIEBALDconsult4-Nov-14 12:59 
GeneralRe: What is the best approach to changing the local admin password? Pin
robwm14-Nov-14 15:10
robwm14-Nov-14 15:10 
AnswerRe: What is the best approach to changing the local admin password? Pin
Garth J Lancaster4-Nov-14 13:15
professionalGarth J Lancaster4-Nov-14 13:15 
GeneralRe: What is the best approach to changing the local admin password? Pin
robwm14-Nov-14 16:44
robwm14-Nov-14 16:44 
Garth,

a) MSAD - If you're suggesting GPO, information security rejected that method because the communication is all clear text.

b) My executable will be inspected before it is adopted to see how easily the password can be discovered. Only then will I be able to deploy it. I'm currently using Microsoft Encoder to encode my vbscript. VBS becomes VBE but it is only protection from casual browsing. That has been acceptable for the last 13 years, so I'll have to see if I can gain approval. I can report back the result for those that are curious.

c) I don't use WMI much but there are some cases where it's pretty handy. I get what you're saying about overhead. It does noticeably slows things down. Another method that is perhaps more efficient would be to read the keys from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList into an array and look for the local admin. I don't know if the SID is the same for local admin across all computers but I'd lean towards that it's not the same. I notice the username isn't located in those profiles but WMI will expose that information.

d) This app would run hidden/silent on a daily basis. Our users aren't savvy enough to kill the process. It would happen in a random fashion and run in a split second. This has been considered acceptable risk.

e) In the event a password doesn't seem to be working properly, we have accounts to get around that.

I haven't found very much info on C# and WMI so far. I do know where to find a list of WMI classes. I can also figure out which properties are available with each class. I find MSDN to be difficult to understand at times until you understand the basic concepts. You can literally get lost in all of the documentation.

I'm not discouraged. I've found everyone in this forum to be very helpful and professional. Every project you can come up with is a bit of a puzzle. It's fun to work as a community to find solutions...
GeneralRe: What is the best approach to changing the local admin password? Pin
Garth J Lancaster4-Nov-14 17:04
professionalGarth J Lancaster4-Nov-14 17:04 
GeneralRe: What is the best approach to changing the local admin password? Pin
robwm14-Nov-14 19:41
robwm14-Nov-14 19:41 
GeneralRe: What is the best approach to changing the local admin password? Pin
Garth J Lancaster4-Nov-14 19:43
professionalGarth J Lancaster4-Nov-14 19:43 
GeneralRe: What is the best approach to changing the local admin password? Pin
robwm15-Nov-14 3:50
robwm15-Nov-14 3:50 
GeneralRe: What is the best approach to changing the local admin password? Pin
Garth J Lancaster5-Nov-14 12:21
professionalGarth J Lancaster5-Nov-14 12:21 
GeneralRe: What is the best approach to changing the local admin password? Pin
robwm15-Nov-14 12:36
robwm15-Nov-14 12:36 
QuestionWindows Workflow Foundation - Implement conditional Activites Through C# Code Pin
Member 86262243-Nov-14 19:26
Member 86262243-Nov-14 19:26 
AnswerRe: Windows Workflow Foundation - Implement conditional Activites Through C# Code Pin
OriginalGriff3-Nov-14 20:44
mveOriginalGriff3-Nov-14 20:44 
QuestionGenerate a report after finishing producer-consumer Pin
zhshqzyc3-Nov-14 11:06
zhshqzyc3-Nov-14 11:06 
QuestionWeb service with C# Pin
Patient122213-Nov-14 4:19
Patient122213-Nov-14 4:19 
AnswerRe: Web service with C# Pin
OriginalGriff3-Nov-14 5:05
mveOriginalGriff3-Nov-14 5:05 
AnswerRe: Web service with C# Pin
shaluIT8-Nov-14 14:41
shaluIT8-Nov-14 14:41 
QuestionMessage Closed Pin
3-Nov-14 1:09
Member 112020153-Nov-14 1:09 
AnswerMessage Removed Pin
3-Nov-14 1:24
professionalEddy Vluggen3-Nov-14 1:24 
Questionhow to show image in picture box in C# which is there in dynamicDotNetTwain1 Pin
Member 112000472-Nov-14 7:51
Member 112000472-Nov-14 7:51 
AnswerRe: how to show image in picture box in C# which is there in dynamicDotNetTwain1 Pin
CHill602-Nov-14 10:07
mveCHill602-Nov-14 10:07 
GeneralRe: how to show image in picture box in C# which is there in dynamicDotNetTwain1 Pin
Member 112000472-Nov-14 20:22
Member 112000472-Nov-14 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.