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

C#

 
SuggestionRe: How to use SSL in C# Visual Studio Pin
Kornfeld Eliyahu Peter4-Nov-14 22:39
professionalKornfeld Eliyahu Peter4-Nov-14 22:39 
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 
it doesn't sound 'too hard' in c# - I guess its far for me to suggest that

a) using MSAD is a better choice Wink | ;-)

b) hiding the password in a compiled app, well, it can still be discovered - it all depends on a risk analysis of what the threats are as to wether that risk is acceptable

c) you could do a first cut with C# & WMI since you know WMI already - I personally don't like WMI, I feel it has too much overhead, I may get shouted down for that comment - but heck, if it works and you're happy with it - else translate out the WMI parts for 'native' C# (which may also be p/invokes since C# doesn't cover every possible Win32 API)

d) how is this program supposed to run ? obviously someone could simply stop it running - which is a risk in itself

e) what if the program 'breaks' - how do you then get access to that machine/account ? ( a back-door ? [shiver] )

There is plenty (even here on CP) about using WMI with .Net - there's even a tool somewhere, Im still looking for the reference that iirc build the WMI query for you

Have a look at this for example while I try to find the tool I was thinking of .. http://www.developerfusion.com/article/5450/using-wmi-from-managed-code/[^]

Don't be discouraged - even by my questions - if you have a good enough reason, and there's no other way, then ya gotta do what ya gotta do
GeneralRe: What is the best approach to changing the local admin password? Pin
robwm14-Nov-14 16:44
robwm14-Nov-14 16:44 
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 

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.