Jump to content

Recommended Posts

Posted

I am pretty new to AutoIt, so don't blame me if it's something very easy everybody should know...

I want that my script cancels all shutdowns and makes it impossible to shutdown. Its for a back-up program.

I've already seen some programs that use the Windows 10 Update screen for their use. It would be awesome if there was any possibility where i could create my own "update screen". For all those who don't know which update screen I mean: I am talking about the one that appears after you press "shut down" and windows starts to install the updates. 

And I know how to make the program "prevent" the shutdown, but you can still press "shut down anyway", and i don't event want this screen to appear.

 

Thank you for helping !!!

  • Moderators
Posted

Moved to the appropriate forum, as the DEV forum clearly states:

  Quote

Do not create AutoIt-related topics here, use AutoIt General Help and Support

Expand  

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

Well, what about keeping a loop trying to detect the window you mentioned, and close it as soon as it appears? It'd be very fast, not enough time for anyone to click on it.

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted
  On 9/2/2017 at 2:18 AM, careca said:

Well, what about keeping a loop trying to detect the window you mentioned, and close it as soon as it appears? It'd be very fast, not enough time for anyone to click on it.

Expand  

The problem is, that Windows 10 blocks all Programs as soon as it gets to the "Shutdown Anyway" screen. So i have to block the shutdown before...

  • 3 weeks later...
Posted (edited)

At this point only option i can think of is repeatedly send
"shutdown -a" or /a

Edited by careca
  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted
  On 9/25/2017 at 7:31 AM, careca said:

At this point only option i can think of is repeatedly send
"shutdown -a" or /a

Expand  

doesn't work, because you can't use it when the pc is already shutting down. And you can't cancel it when the user initiates the shutdown via the shutdown button...

There has to be a way to solve this... maybe with DLLs ? 

 

I want to cancel the shutdown, then let my program backup some files and then continue the shutdown.

How can i access the maintenance mode in windows ? 

Posted

What about the option in the group policy? gpedit.msc

 

Capture.PNG

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted
  On 9/25/2017 at 11:44 AM, careca said:

What about the option in the group policy? gpedit.msc

 

Capture.PNG

Expand  

It looks very promising to me, but unfortunately I only have Win10 Home on my Laptop. But I am definetly going to try this out when I am at home with my Win10 Pro Computer. gpedit.msc is only available for Win7/8/10 Pro... 

I'll give a update if it works

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
  • Recently Browsing   0 members

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