Win 10: Make shutdown script visible [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
With group policies I have setup a .bat script that runs when windows is shutdown. The script runs an .exe that does a backup of my data. Under Win 7 the execution of the .exe appeared on the screen when windows was shutdown or restarted. This allowed to terminate the backup (.exe provides this option) if it was not required, e.g. in case of a restart.
In my newly setup Windows 10, the script runs (I can tell this from the time the shutdown takes) but the execution of the script is not visible on the screen and can therefore not be terminated if not needed.
Questions:
Is there any way to make the execution of the .exe in the shutdown script visible on Win 10?
Is it possible to determine inside a .bat script if windows is shutdown or restarted?
Thanks for your help.

There is a setting in gpedit that defines if the statements exeucuted in a shutdown script should be shown.
gpedit.msc: computer configuration -> adminstrative templates -> system -> scripts: You find 'Show statements when executing shudown scripts' (or similar since translated from German!). Only if activated will you see what the computer does during shutdown. 'Not activated' is the Default.
I found the solution via the following question asked here in Stack Overflow

Related

I can't run an exe file completely hidden [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I tried to run a program called MSIAfterburner with no windows
But nothing works
I tried
Quiet.exe
Nircmd.exe
I tried some python scripts and JavaScript & Powershell and VBS. And every time it was showing the window of the program
Can somebody help me?
Neither quiet.exe nor nircmd.exe come with windows by default. I believe this MSIAfterburner program you are referring to is a graphics overclocking utility, which is a windows application, as opposed to a console application.
Therefore, if you for whatever reason want to run it without a window, the easiest way I can think of would be to launch the program in a different session using psexec -i 0 (run it as admin) from here.
If you want to run it without a window without admin privileges, the best I can think of would be to use the winapi ShowWindow(handle_to_the_app_main_window, SW_HIDE).

How to find out ALL windows schedule tasks which wake my pc up? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I want to prevent my (win81) pc from being waked up (e.g. by night) by certain (but not all) tasks of the windows sheduler.
So I tried to find out, which windows scheduler tasks enabled 'Wake the computer to run this task' (under Scheduler/Task/Edit/Conditions). This can be checked manually for each task separatly, of course annoying for hundreds of tasks.
I'm wondering, if there is a possibilty to export a COMPLETE list of all tasks (XML/TXT/..), so that I can afterwards grep the tasks using 'true'.
Methods for 'mass export' are described here, but they apply to Win7 (my Win81 system does not contain any files in the described folders).
Any idea or other method to directly find these unwanted wakeup tasks?
Solved: After some more googling around I've found the ms windows command shell tool 'schtask.exe'.
The following command line (in admin mode) generates the desired 'bulk export'
C:\WINDOWS\system32>schtasks /query /xml > c:/temp/all-tasks.xml
including the the searched tasks containing the pattern
<...>
<WakeToRun>true</WakeToRun>
<...>

programs running on startup without being in startup folder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
some program (sort of malware) is running on my windows 7 at startup, but my startup folder is empty (even after removing the hidden and system attrib of all the programs in the folder). But msconfig shows the script that was running.
This means that programs can run on startup without actually being in the startup folder.
Please help me by explaining, how these softwares do this, or any concept of startup that i am missing?
Thanks in advance.
From here:
Add a new startup application
Open your registry and find the key [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run].
For each program you want to start automatically create a new string value using a descriptive name, and set the value of the string to the program executable.
For example, to automatically start Notepad, add a new entry of "Notepad"="c:\windows\notepad.exe".
Goto MSCONFIG and Remove the check mark for that particular App. then you are good go

How to stop installing updates in Windows 7 after restart? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
My Windows 7 started installing updates on shutdown. After I manually forced shutdown by mistake, after restart I have a message : "Installing updates : 10 of 42", i.e. the installation of updates continues. If there is any way to stop the process? Like, start Windows in protected mode or something similar, as it was available in Windows XP?
I am not asking how to disable automatic updates installation in the future, I am asking how to stop the update process after it has already been started.
Thanks,
Kostya
There is no way to kill installing process after it started but just to long press the power button and disable the automatic after restarted.
SOLUTION !
1) create a .bat (CMD) file, with this code:
sc stop wuauserv
2) put that file in STARTUP folder ( %appdata%\Microsoft\Windows\Start Menu\Programs\Startup )

behavior of windows while restarting of service [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
The question is while restarting the windows service whether windows kills the service or it waits for the process to finish. As i remember in linux the "restart" command will kill all the child process.
Thanks in advance. I searched the question in this forum but didn't find.
Restarting a service is just shorthand for 'stop service and start service.' So, the service gets a chance to shut down normally and then it gets a chance to start up normally.
You can see this by restarting a service in the Services MMC snap-in. I tried this on Windows 7 and the sequence UI went like this:
Windows is attempting to stop the following service on Local Computer
followed by
Windows is attempting to start the following service on Local Computer

Resources