Jump to content

Running a script prior to Windows user logon ?


 Share

Recommended Posts

This is what is happening: I am running a scheduled script every night at 2:00 am on Windows XP SP3, and it sometimes happens that my PC reboots, for example due to a short power shortage. It then sits with the logon screen that has the users icons, waiting for a user to logon.

I may be mistaken, but I was under the impression that this state was similar to the "locked workstation" state, and that it was possible to run a script without logging in. I haven't been able to do it.

I have followed the recommendation regarding running scripts on locked workstations (no Send() MouseClick() WinActivate() WinWaitActive() WinActive() etc)

Can anyone confirm whether it is possible or not to run scripts prior to logging in as a Windows user?

Thanks.

Edited by suroit
Link to comment
Share on other sites

I think this thread ("Run script before windows logon") will help.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

I think this thread ("Run script before windows logon") will help.

Thanks Water, I don't know how I missed that thread.

But I am worried about Fire's proposal in that thread, deemed "very dangerous" without me understanding what the danger really is.

Link to comment
Share on other sites

Thanks Water, I don't know how I missed that thread.

But I am worried about Fire's proposal in that thread, deemed "very dangerous" without me understanding what the danger really is.

The danger in this is that this method is typically used by keyloggers & other virusses to log your password and/or do other stuff, for example you could have a file to shutdown your computer even before you could logon and remove it.

Computers is only dangerous if you use it in a dangerous way.

Edited by Tyranlol
[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...