Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
Hello there,
at the moment I am creating an application for desktopcomputers in offices. A user shall be abled to create tasks with the application on a specific server. But no user should have adminrights on the server. So I will create a adminuser on the server which I want to run the programm with.
So how can I set a user the program will run with?
My english isnt that good yet, I apologize.
Posted 15-Apr-13 22:34pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hi there,
Not sure about it, but you might try this link for further information:[^]
ANDiyo at 16-Apr-13 3:49am
Do you know if can write the password in the shortcut?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

If you want to run task with admini privileges, see these:[^][^]
Process p = new Process("FullPathToSchedulerOnServer.exe");
p.StartInfo.UserName = "ServerAdmin";
p.StartInfo.Password = "SAPassword";
[EDIT #1]
See these:[^]
User Impersonation in .NET[^]?
ANDiyo at 16-Apr-13 4:23am
Is there no way to set a user with password in beginning with which the whole application will run?
Maciej Los at 16-Apr-13 5:18am
See my answer after update ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 245
1 Kamal Rocks 184
2 Sergey Alexandrovich Kryukov 175
3 BillWoodruff 173
4 PIEBALDconsult 160
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180

Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 16 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100