C# - Failed Logon Counter For Local Users?
Jun 30, 2010
Is there a way to programmaticly get the failed logon count for local Windows users in XP and later? Alternatively, is there a way for my service to get a message when a failed logon occurs? Currently coding in VB.NET, but will take any suggestions in any language.
View 2 Replies
ADVERTISEMENT
Jan 5, 2012
I just setup my old pc to run SQL Server and VisualSVN. I have a laptop and another pc that i need to work on a website and that is why i setup subversion and sql server on a seperate pc. I have set up VisualSVN and ToirtoiseSVN but im getting SQL Server Problems below is how im connecting to the DB[code]...
View 1 Replies
Jun 21, 2010
I am currently creating an application to track timekeeping (a clock in/out system) and I am trying to work out the best way to do this.
I have a Main Form which contains buttons to ;
- Log in
- Out for Break
- In from Break
- Log out
When a user presses the "log in" button the logon form appears, the user then enters their username and password. What happens next is where I would like the help.
Process is as follows:Click Logon Enter Username/Password Check Logon Form for errors (eg no password etc) Check User is in Database (using SQL query) If user is in DB and username and pass are ok then refer back to the main form to perform Stored Procedure for what the user wants to do (eg logon or or out for break etc). Set label on main form to show user as logged on My question is should I be using a public variable and calling the main form again or in the user logon form having 4 options and using an IF ELSE to select the appropriate Stored Procedure?
View 3 Replies
Aug 20, 2011
I am wanting to create a logon similar to the Windows Live logon, so in other words. user has frmLogon and is located in Australia. The user enters his/her details and then the program connects to a server in the United States and checks the Username and Password to make sure it is correct if it is correct it allows the user to logon and move to the next stage, if it is wrong it will give him an error message. I am wondering if anyone has a tutorial or source code laying around that I can rip apart and see how it works. I want to put the database on my server and connect to it from my desktop using the logon form.
View 3 Replies
Jul 20, 2009
I'm trying to view the users of a local group on my machine so I can eventually change their read/write permissions... what code can i use to display the users?
View 1 Replies
Jul 9, 2011
Is it possible to get all my network users' local IPs using VB 2008?
View 6 Replies
May 30, 2012
I have this partially working but only shows printers for one user, need all local and network printers mapped for ALL users on a remote pc so I can migrate them, I know I need to do some sort of for each method but not sure what will work
[Code]...
View 1 Replies
Oct 19, 2010
I am currently creating a tool that can manage local user accounts on Windows-PCs. I am using the functions described on
this MSDN page ; and after some struggling, I got most of them to work.
Unluckily, I haven't found a way to set the option "User must change password at next logon" while creating a new user account. I use the
NetUserAdd -Function to create the new user. I set the level to 1 and supply a
USER_INFO_1 -Structure . This structure accepts flags, and the flag UF_PASSWORD_EXPIRED seems to be exactly what I want - but when I set it, the user can log on without changing the password first...
I'm developing on Windows 7 Ultimate 64-Bit using Visual Studio 2010 Express.
Here's my code:
#Region "Constants"
Public Const UF_PASSWORD_EXPIRED As Integer = &H800000
Public Const USER_PRIV_USER As Integer = 1
[Code].....
View 7 Replies
Jul 22, 2011
So I currently have the following:
2 timers
2 labels
1st label is "Clock" this pulls the time from the users current time zone/local time
2nd label is "UTCClock" Which would be UTC time
Now I have this for the first label: clock.Text = Format(TimeOfDay, "hh:mm:ss tt")
Which would give the users current time zone/local time. As for the UTC.. how would I add in for the UTC time from where the user is located at? I did some searches.. but couldnt find what I was looking for.. IM pretty sure its not as easy as getting the users current time zone/local time.. So im assuming that Theres a "bit more" code into getting UTC time..
View 5 Replies
May 20, 2010
I have this code sample from a book I'm reading which looks to be incorrect:
Imports System.Diagnostics
Sub Main
Dim pc As New PerformanceCounter("PerfApp", "Clicks", False) 'excepiton here
pc.Increment()
counterLabel.Content = pc.NextValue().ToString()
End Sub
There excepion message I get is: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly. I looked for a property to see if I can set it but couldn't find one.
View 3 Replies
May 8, 2012
I'm using Visual Basic Express 2010 and SQL Express 2008 in Windows XP. At first I couldn't add a datasource (the .mdf file for the database) because of a "Operating system error 32" which I seemed to have resolved by giving myself full permissions for .mdf file (by right clicking on the file and going into properties and then Security) and restarting the SQL SERVER (SQLEXPRESS) service. The dataset for the database is in my solution explorer but when I right click on a table adapter to add a query and attempt to open up the query builder, I get the error in the title above.
View 1 Replies
May 8, 2012
I'm using Visual Basic Express 2010 and SQL Express 2008 in Windows XP.I created a database on my local PC HDD. At first I couldn't add a datasource (the .mdf file for the database) because of a "Operating system error 32" which I seemed to have resolved by giving myself full permissions for .mdf file (by right clicking on the file and going into properties and then Security) and restarting the SQL SERVER (SQLEXPRESS) service.The dataset for the database is in my solution explorer but when I right click on a table adapter to add a query and attempt to open up the query builder, I get the error in the title above.
View 10 Replies
Feb 9, 2010
I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:
<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"
[code].....
View 3 Replies
Dec 29, 2010
I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.
I get this error
HTML
There is already an open DataReader associated with this Command which must be closed first.
Here is my code
vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",
[CODE]...
View 3 Replies
Apr 3, 2012
1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.
2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.
View 2 Replies
Apr 4, 2012
1. I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back. 2. Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only. Any alternative way to achive the target is just fine.
View 1 Replies
Jun 10, 2008
I cannot figure out how to get this call to work.I have searched EVERYWHERE.MSDN is no help at all and the only thing I can find is this vb6 code that doesn't work in .net.I tried to convert it over but I've had no luck.Specifically I'm trying to get the path of the "All Users" Desktop and the "All Users" Start Menu.It would rock if anyone could help me out with this one.
View 5 Replies
Sep 15, 2010
Does anyone know how this can be done? The problem is that when you run the script to add a domain user to the local group as a local user you have no permissions to query the domain. Is there a way to pass a user name and password when doing this? [code]...
View 3 Replies
Jul 28, 2009
I created a typed dataset a day or so ago, then I added a whole bunch of tableadapter/tables with some relationships etc... suddenly out of nowhere it decides my dataset "is not defined". everywhere in my code where i use this dataset now has an error. I tried not to pull out my hair and do a Clean then Rebuild solution... out of nowhere it just refuses to generate code. Object reference not set to an instance of an Object. It would be nice if it was my object so i could find it but it's not.
Curiously I also lost the little database icon on the dataset in the solution explorer.I can still open it in the designer and preview my queries etc... it just wont make the code. it's driving me insane. anyone got a solution?
View 3 Replies
Aug 19, 2011
I am wanting to create a logon similar to the Windows Live logon, so in other words... user has frmLogon and is located in Australia. The user enters his/her details and then the program connects to a server in the United States and checks the Username and Password to make sure it is correct if it is correct it allows the user to logon and move to the next stage, if it is wrong it will give him an error message. I am wondering if anyone has a tutorial or source code laying around that I can rip apart and see how it works.
I did a quick google search however all I could find are tutorials that make the form and database in the same project which localizes the database.. I want to put the database on my server and connect to it from my desktop using the logon form..
View 1 Replies
Apr 7, 2011
I created a report by using crystal report. I used ado.net connection for this. I created a dataset and joined report.[code]This is OK in first load time. And when I clicks print button in report view, the report view ask logon information.
View 1 Replies
Oct 3, 2011
I'm using Windows 7 Pro (32bit) and have .NET 3.5 and 4 installed.I have written a .NET screensaver and have enabled it to run on the Windows logon screen.[code]BUT when I'm logged in the screensaver works.So it isn't a faulty installation of the .NET framework, or else it wouldn't work fullstop.
View 1 Replies
Oct 8, 2009
This might seem obvious but I was doing some research and I was wondering if a service application start an executable. I know an .exe cannot start without some sort of logon but I was wondering if it was possible to work around this by having my service call it.
View 3 Replies
Feb 8, 2012
I'm working on upgrading a solution in VB.NET that is heavily based on Active Directory. As of now, I'm trying to add a PC restriction to a new AD User upon user creation. Essentially, I need to update the Logon To attribute to include 1 or more PCs, how do I go about doing this? I learned that I am interested in the IADsUser property "LoginWorkstations" url...). As of now, I have code that can fetch this attribute from any AD user, but I cannot set it. [code]I've tried testing this approach with a different attribute and it works just fine. Not much out there on Google either unfortunately.
View 2 Replies
Sep 23, 2008
I need to logon to a NAS Drive to query directory listings. All users will be logging into a domain. The NAS also has security set up on it with a different username password.
I will have a handful of users (maybe 10 - each logging into the same domain, but from different pc's) that will need to access a NAS Drive to query a directory structure. All will have physical access, and can connect via windows explorer (manually entering a user and pass).
During my first attempt via my app - I get the error "Logon failure: unknown user name or bad password" Which is good cause I only want a handful of users logging on to this drive. If I logon to the drive via Windows Explorer and then go back to the app and it works.
So what I did was create a multi form app.
- At launch the parent form loads (as well as a logon window within that form). The logon window auto fills a text box with a username. That is pulled from the current logged on user - or can be replaced. I would like each user to then enter a password -> send that to the NAS for authentication -> then either open the app (mentioned above) or give some kind of a message box saying they now have connectivity to the drive.
View 6 Replies
Sep 7, 2011
I am writing a app to list the printers on various print servers and map the printer.My only problem is that I need the user to enter their domain credentials to gain access to the print server.I cant figure out how to connect to the print server using those credentials.If I try this:dim My PrinterServer as New PrintServer(\PServer1)I get a logon failure.How do I pass the credentials?
View 6 Replies
Jan 24, 2010
I was thinking about replacing my log on screen. I don't just mean changing the background style or whatever, I mean a totally different app, which would allow users to log on and off. I'm prepared to spend a serious amount of time on this, and I just wanted to know if it is concievably possible, and if anyone's ever done it before? I want to do this because I'm sick of the Vista log on screen. This doesn't neccesarily have to be made in vb, I could de-compile the .dll files which make up the logon screen and then re compile them.
View 8 Replies
Feb 24, 2010
I have a VB.NET project and I want to know how I can call a class called StartUp.vb BEFORE my logon form.
Here below is the coding of Startup.vb class
[Code]...
The problem is: I couldn't find a way to call this StartUp.vb file and therefore I am unable to call my LogonUI form, I also try to "right click" the vb project and select "properties" and go to "Startup form", couldn't see the class of "Startup.vb" showing up
View 3 Replies
Jul 7, 2011
i could use some help with this program i'm making, Script:
Public Class logon
Private Sub logon_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
Dim client As New Net.WebClient
RichTextBox1.Text = client.DownloadString("ftp://null:null@null.com/users.txt")
[Code]...
View 2 Replies
Jun 21, 2010
I have tried my best but failed so i have decided to discuss with u all about this matter.when i run Given below code on my current system it's OK but when i install this on my client machine then it gives my a window during call Print button event that ask for User Name and Password which are filled according to my setting.But there is no database name that is given by me. Any one can help me about this problem.
Thanx for this.Private Sub btn_PrintOC_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_PrintOC.Click
[Code]...
View 5 Replies