Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1030311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:40:49+00:00 2026-05-16T12:40:49+00:00

Auto logon windows at a specific time. How can i do this in c#

  • 0

Auto logon windows at a specific time. How can i do this in c# ?
Any ideas please…

Purpose : I need to perform some tasks at a specific time in midnight. which needs the windows to be logged on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:40:50+00:00Added an answer on May 16, 2026 at 12:40 pm

    Take a look at the Scheduled Task. On the task panel you un-check the option “only after the current user logs on”. That’s it.

    Update

    So to make this with a little more explanation:

    This was your question:

    Purpose : I need to perform some tasks at a specific time in midnight. which needs the windows to be logged on

    So to get this to work, you have to split your task a little bit up. At first write your task that should be performed (a batch-script, a self-written application, a third-party application with a configuration file or some command line parameters, etc.).

    If you got your task up and you can run it on a single finger tip (e.g. click on a lnk file on your desktop, enter a single command on the command-line, etc.), it’s time to automate your task for a specific time schedule. For this purpose Microsoft already provided a powerful tool, called Scheduled Tasks. It is located in the Control Panel. Here you can define Tasks which should be started with dozens of options and time plans. Just step through the wizard and after that make a double click or right click – Properties on the created task. Now step through all the TabPages and take a close look on all the available options. Everything you need can be solved here.

    Update 2

    So after reading your comment (and a few other):

    If my system is locked, then i need it to get unlocked at a point of time

    My first question would be: What do you mean with locked?

    There are two states in which a system can be locked:

    1. The system is freshly started, no session is running and you need to provide a username and a password to get a session to run.
    2. A user has already logged in and the system is currently locked (cause the user pressed WinL, the screen saver is configured to lock, etc.).

    The difference between those two states is, in the first you need to provide a username and a password, in the second one you only need to provide the password only.

    What both have in common is you have to press CtrlAltDel to get the needed Dialog and this is not possible from an application.

    If you really need to log-on or unlock the screen at a specific time you should start a search about gina.dll and how to replace or enhance it so that you can send a message to it, to do whatever you like. But this dll replacement can’t be done in C#. It has do be done in C/C++. And i forgot, that the gina.dll approach only works on XP. For Vista/Win7 they changed the log-on process and the procedure to intercept it, but a search for the provided keywords should reveal the needed informations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Windows has a feature that allows an administrator to perform auto-logon whenever it is
I am researching ways to auto login to a windows server, so applications can
Can any body tell me what this exception means, its confusing because I tried
I would like to run a software before the windows logon screen, this software
Auto-binding of request params seems like default behaviour, but I can't find a lot
So Eclipse can auto-format my css files under Source->Format, or by hitting Cntl-Shift-F. When
I need add Auto complete on apex Tabular Form. there is a column as
I'm trying to make an auto-login using Greasemonkey. Can anyone help me? Relevant HTML
I have an ASP.NET MVC 3 application with a auto-authorization using the client's windows
We've been working on a webapp for some time now which is designed to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.