winlogon

Removing Windows Logon screen through a service

為{幸葍}努か 提交于 2019-12-06 11:30:46
问题 I am trying to remove the windows logon screen (winlogon) from an executable launched from a service. The service would start automatically with windows and wait for commands from another computer. When it receives a command, it will launch an exe which will start cmd.exe under a particular username. The service is already present. I have the job of writing this executable. Currently, I have written the executable (CmdLogin) which starts cmd.exe under a different user through calls to

Add winlogon login method using C# and YubiKey

偶尔善良 提交于 2019-12-06 08:37:30
As for personal fun and challenge, I wanted to add a way to login on my own personal computers. All are currently using Windows 7. Normally this would use ICredentialProvider or something like that. Basically the goal here is to have 2 way to login, the normal user/password one and the alternative (mine) with a Yubikey. Is there any where I could look to find some resources on how to achieve this using C# ? There is an article about implementing a custom Credential Provider here , and there is some samples here . However, I do believe you need to implement a custom Credential Provider in

hook a hotkey from windows logon screen

瘦欲@ 提交于 2019-12-05 02:01:42
问题 i built a program that hooks the keyboard and when some hotkey pressed it openning the door (that connected to the COM1 serial port of the computer). this works fine, until i locking the computer (winkey+L). i want to be able to open the door with the same hotkey from the logon screen. i using Windows XP & C#. how do i do that? thanks. 回答1: You need to write a Windows service that does this. Services and drivers can run outside of user logins, and services are a lot easier to write than

Add message to logon screen windows 7

混江龙づ霸主 提交于 2019-12-04 12:01:19
I know that in windows 8, certain applications have a notification on the lock screen, and some fingerprint readers can add messages to the logon screen in windows 7 and older machines. Is it possible for a program to display a message on the logon screen for Windows 7 using c#? If so, can that message be dynamic? Shiva Yes it is possible to add/changes the logon screen message. It involves updating the legalnotiecaption and legalnoticetext values in the registry. See this article for a detailed walkthrough: Display a Startup Message Box in Windows 8 It will work for Windows 7 also, since we

Custom Windows Authentication Package

橙三吉。 提交于 2019-12-03 12:07:53
So, here is the scenario. I am developing a logon system in windows 7. I have created a Credential Provider, containing one Credential. The Credential has three input fields, username, password, and PIN. From what I have learned the documentation (CMIIW) is that when we fill in the fields and click logon, WINLOGON will retrieve the username and password, and send it to LSA by calling LSALogonUser() to authenticate. LSA then will try negotiate with Authentication Package KERBEROS (for remote logon) or MSV1_0 (for local logon). Assume only the local scenario for now, the username and password

Building a custom credential provider for Windows 7

那年仲夏 提交于 2019-12-03 08:55:14
After looking through the code for building custom credential providers for Windows 7, I managed to get my own tile to show up on the logon screen, and can logon as the desired user. However, I am trying to implement a system where an event (a Bluetooth device in range) triggers a logon/unlock, without needing to click on the tile. I can set it to fill in the password automatically (maybe I will implement pulling the password from the device), but either way, I must click the tile first. If it is locked, I need to click "Other Credentials" before that, too. How would I go about implementing

Get windows login name without Windows Authentication

杀马特。学长 韩版系。学妹 提交于 2019-12-02 22:24:12
问题 I am trying to get the windows Logon username from my asp.net application. Here is my code string user_name = Request.ServerVariables.Get("LOGON_USER"); this is works fine on my local environment but when I upload the same code on the IIS it gives me blank, even I have tried to get logon username by HttpContext.Current.User.Identity.Name but it gives me blank. Once I enable IIS authentication to Windows authentication and disable Antonyms Authentication it is working fine. Can anyone please

Running a Form in Windows Logon Screen C#

£可爱£侵袭症+ 提交于 2019-12-02 10:28:51
I need to write a small tool that runs on every userdesktop or, if no one is logged in, directly on logon screen. Maybe a service with a form starting? I already found this question (and answer): Running a process at the Windows 7 Welcome Screen // grab the winlogon process Process winLogon = null; foreach (Process p in Process.GetProcesses()) { if (p.ProcessName.Contains("winlogon")) { winLogon = p; break; } } // grab the winlogon's token IntPtr userToken = IntPtr.Zero; if (!OpenProcessToken(winLogon.Handle, TOKEN_QUERY | TOKEN_IMPERSONATE | TOKEN_DUPLICATE, out userToken)) { log("ERROR:

Get windows login name without Windows Authentication

安稳与你 提交于 2019-12-02 09:17:21
I am trying to get the windows Logon username from my asp.net application. Here is my code string user_name = Request.ServerVariables.Get("LOGON_USER"); this is works fine on my local environment but when I upload the same code on the IIS it gives me blank, even I have tried to get logon username by HttpContext.Current.User.Identity.Name but it gives me blank. Once I enable IIS authentication to Windows authentication and disable Antonyms Authentication it is working fine. Can anyone please guide me how I will get this. Please correct me if I am using any wrong approch. Thanks in advance. Edit

Create an interactive logon session

 ̄綄美尐妖づ 提交于 2019-11-30 13:47:01
I'm trying to create a utility similar to Microsoft's abandoned Super Fast User Switcher ( download ), which allows fast user switching without going through the Welcome screen. I have a working implementation using the undocumented WinStationConnectW API (along with WTSEnumerateSessions ), but it can only switch to a user who is already logged in. How can I create a login session so that it can switch to a user who is not logged in? I only need to support XP, although it'd be nice to work on Vista / Seven. (My current code already does) I know that this is possible because Super Fast User