Start (Run As) Application With Another Account User And Password
Feb 27, 2011
How can I start (Run As) application for example "C:xxx.exe" with another account-user and password in vb.net?I tried the ( Process.Start ), but it doesn't seem to work.
View 2 Replies
ADVERTISEMENT
Mar 27, 2012
I need to be able to validate the windows password of the account that is currently logged in. I've managed to do this when the unit has a password. But if it does not have a password, passing an empty string does not work. It fails each time.I've been looking around, but haven't been able to find much on this. Does anyone know how to determine if the user password is empty?[code]
View 9 Replies
May 31, 2012
I thought I postet this yesterday but I can't find my thread so if this is a duplicate please point me at the original one. Background: I need to create a user account and Modify it's registry before the user logs on the first time. Creating the account is done by using the Winnt provider (works great). To create the profile I'm trying to use Process.start to launch a process as the newly created user. With the use of loaduserprofile property the users profile gets created and i can do my regwrites without problem.
[Code]...
View 11 Replies
Jan 31, 2011
I have a vb.net 2008 application that is supposed to run at startup. After meeting certain conditions, the PC is supposed to restart. Below is the code that is failing:
System.Diagnostics.Process.Start("shutdown", "-r -t 00 -f", myUsername, myPassword, myDomain)
myUsername and myDomain are both strings while myPassword is a SecureString. The application works properly when execute manually, but give the following error when executed from startup (either by placing in the startup folder or by adding to the registry):
The directory name is invalid
Also, the program executes properly when the last 3 arguments are left out and the user has the necessary rights.
How do I force a restart using an specific, alternate user credentials on startup?
View 1 Replies
Jun 3, 2011
I am looking into programming an application that detects noise levels. If the level is over a specific threshold it will lock a logged on user account. The idea behind this application is to reduce noise levels in a busy IT suite. My question is has anyone written anything similar and did it prove to be effective and is VB the best programming language for the job?
View 1 Replies
Dec 25, 2011
how to save data (for example some text that user type [as password etc]) and save that password on same location where is application. After saving I want to have also Load option so we can load saved data.
View 7 Replies
Apr 21, 2010
I'm currently working on a CRM project in vb.net. I want the program to start with a prompt that asks for a password and if the user enters the correct password then the main form loads.Im having some problems wrapping my mind around this...
View 10 Replies
Jan 8, 2011
I'm trying to make a application with a login system. I want to store user and password information, into the application. So I can access it from my administrator account. I have tried to make a textbox for every username and password,And then save it into my.settings And then I run the finished application, it works fine to store the information. but if I copy the application after I had entered some user/pass information. All textboxes I blank on the other computer.
View 4 Replies
Jun 10, 2010
Looking to make a simple VB form, that has three text boxs on it. One for a users username, and two for passwords. What I want to do is provide teachers with this form, they type in a students username, and if that username is found in AD it enables the two password boxs. Then the teacher can type a new password for that user in the boxes (the second one obviously being a validation) and then when they click save, it updates the AD account with the new password. Any ideas on how to do this? Does anyone have any code?
View 4 Replies
Jul 7, 2009
When a user logs in, we want to run a vb.net program that will determine if the user's active directory account does not have a password. How can I do this in vb.net?
View 4 Replies
Mar 9, 2012
It looks like between yesterday or my most recent post and now that someone has been messing with my account.
One image that was in my signature was changed to ( although it looked stretched).>> [code]...
View 11 Replies
Jun 18, 2009
i'm trying to create a program that enables a user log into the program using a username and password, first he/she must first create an account with some vital information incase the password is forgotten so it can be retrieved
View 2 Replies
Aug 17, 2010
I have a website [URL]
have a login.aspx form and we can access with user and passs
but i want i can from site2.com.vn call a function with username,pass and use viewstate to access site1.com.vn without press user and pass
View 1 Replies
May 9, 2009
I'm trying to use two different methods of connecting to a database to edit data, the declaration below is working:
Dim rsConn As ADODB.Connection
rsConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _
& Application.StartupPath & "VFMS_DB.mdb;" _
& "Jet OLEDB:System Database=Security.mdw", "Ads", "1234")
but now I want to do the same thing with the declaration below but I keep getting the message "Not a valid account name or password.
Dim conn As OleDbConnection
conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _
& Application.StartupPath & "VFMS_DB.mdb;" _
& "Jet OLEDB:System Database=Security.mdw;Database Account=Ads;Database Password=1234;")
I pretty sure it's because of this ;Database Account=Ads;Database Password=1234; not being correct. I tried ;User ID=Ads;Database Password=1234; and also to make it look like the first statement but neither worked.
View 4 Replies
May 26, 2009
Currently I am trying to receive input from a user for up to five usernames and passwords. I can not figure out the best way to do so. I have tried textboxes but that makes forms look dirty and redundant.[code]...
View 2 Replies
Nov 14, 2011
I can access the current Windows user, but I want to give an admin the ability to enter an alternate username and password for a different Windows Active Directory Account without having to logoff and log back in. Once the account is authenticated, I need to use it in a connection string to sql server. I know I could do this for a SQL Server login, but this is Windows Authentication only. It was installed with ClickOnce. Is there an .exe file on the user's machine?
View 2 Replies
Jun 14, 2011
I'm trying to change the password of an AD account in our domain. The program is supposed to locate the sAMAccountName property in AD through an LDAP connection, and then do two things. 1) unlock the user's account by setting the "LockOutTime" property to zero and 2) change the password to a pre-defined password in the code. I've got the program unlocking accounts, but I can't get it to change passwords.
I've tried the line "DirectoryEntry.Properties("userPassword").Value = "xxxxx". I've also tried the DirectoryEntry.Invoke("SetPassword", New Object() {"xxxxx"}) but neither of them work. The first one throws no exceptions but doesn't change the password, and the second one will give me the message "Exception has been thrown by the target of an invocation".
View 1 Replies
Feb 13, 2012
I'm developing an application for our IT Helpdesk to do some common tasks like installs, drive mapping, etc...
However this application needs to be run as administrator. Is there a way to get the application to bring up the RunAs prompt as soon as it runs, so the user doesn't have to do a Shift + Right click > Runas?
View 4 Replies
Dec 21, 2009
you tell me how to make a ClickOnce Application Start when A User Logs on? I am running Express so I cannot use the Installers in the full VS. I would like it so it will only add a shortcut when it is installed. (Application is available offline)
View 4 Replies
Oct 7, 2011
I am developing an application, and i need this application to be running in background (like our anti-virus programs) on system task bar.
and how to add right click menu for this icon on taskbar...
View 4 Replies
Feb 28, 2011
I have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?
View 2 Replies
May 26, 2009
I have a GUI with a few button on it and each button start an application. I want to prevent the application to start twice if the user double click on the button. How can I do that?
View 7 Replies
Mar 27, 2009
My intentions are to add command line switching. I am trying to see if i could run my application in varoius ways i.e.
App.exe -S - Start the application in XX Mode
app.exe -T30 - Start application with 30 second delay
and that kinda switching.
View 7 Replies
Jul 15, 2009
I am looking to create a simple password box that will ask the user for a username and pass, if the user is validated against the usernames and passwords in an .ini file the login box will close and launch a program also stated in the .ini file. I would also like to be able to launch different programs for different users.
View 16 Replies
Apr 10, 2010
I have a button on my Form called EditingButton that will have a DialogBox appear asking for a password. How can I have "*" show instead of the Password it-self when the user enters the password?[URL]...
View 1 Replies
Jan 20, 2011
In vb.net I am using password protected database with following connection stringconnetionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:vaivaiDB.mdb;JetOLEDB:Database Password=secret;"Database access works fine on the development machine.
View 2 Replies
Apr 8, 2012
I have a procedure at the end of my console application that ask the user to either hit enter to end the program, or type s to perform another search. The issue I'm having is no matter what the user types in the program end. What I would like to happen is if the user types s, then the program starts over and lets the user perform another search. The program is procedural and I need to find a way to start back off at the top of the program which ask the user to type a name to search.
[Code]....
View 1 Replies
Apr 24, 2009
I don't have any code written as of yet but here is what I'm trying to do...Suppose 'JOHN' is the user of computer 1 and I wrote an application that accessed his ccount...particularly some folder within his 'JOHN' name....obviously when I code it I would use the 'JOHN' name...PROBLEMBut what if I want to use the same application on another computer with another user's name (eg. JILL), is there a code I can use to generalize the 'user'?, for example...%accountuser% or something like that?
View 6 Replies
Mar 29, 2012
I have a couple of questions. For each username or group in windows there is an id/s number associated with it... how would I be able to use the number/id or what ever its called to get the actual Name of the user/group? Example of the id i'm talking about: S-1-5-21-839522115-1563985344-1957994488-501 To be able to get a list of these ids they are stored in.
View 1 Replies
Jan 28, 2009
i want to know how to create administrative and user account in VB.net software development.
View 1 Replies