In Windows 7, how do I know when a computer is scheduled to be shutdown?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Say I use "shutdown -s -f -t 13600" to initiate a scheduled shutdown.
In Windows XP, I would always see a dialogbox alerting me of the impending shutdown.
In Windows 7 however it shows a popup in the system tray, which disappears after a couple of seconds.
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
windows-7 shutdown
add a comment |
Say I use "shutdown -s -f -t 13600" to initiate a scheduled shutdown.
In Windows XP, I would always see a dialogbox alerting me of the impending shutdown.
In Windows 7 however it shows a popup in the system tray, which disappears after a couple of seconds.
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
windows-7 shutdown
add a comment |
Say I use "shutdown -s -f -t 13600" to initiate a scheduled shutdown.
In Windows XP, I would always see a dialogbox alerting me of the impending shutdown.
In Windows 7 however it shows a popup in the system tray, which disappears after a couple of seconds.
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
windows-7 shutdown
Say I use "shutdown -s -f -t 13600" to initiate a scheduled shutdown.
In Windows XP, I would always see a dialogbox alerting me of the impending shutdown.
In Windows 7 however it shows a popup in the system tray, which disappears after a couple of seconds.
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
windows-7 shutdown
windows-7 shutdown
edited Aug 1 '11 at 5:51
Community♦
1
1
asked Jul 30 '11 at 14:17
KalElKalEl
91031113
91031113
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
I've found a way.
If instead of using shutdown -s -f -t 13600
you use shutdown -s -f -t 13600 -c "13600"
The -c
option adds a comment to the shutdown event logged by Windows Event Viewer
Your comment of "13600" will be visible in the Event Viewer as seen in the red oval:
To see this view yourself:type Event Viewer in the start menu and go to
Windows Logs -> System and you will see a list of system events.
Any events with an Event ID of 1074 will be a delayed shutdown.
So what we want is some code that gets the last 1074
event, looks up the value in the comment of the event and adds that value (in seconds) to the time the event was created, thus giving the shutdown time.
I made a function for Windows PowerShell (comes with Windows 7) that does that:
function nextShutdownTime
{
$events = Get-WinEvent -FilterHashtable @{logname="system"; id=1074}
$event = $events[0]
$eventXML = [xml]$event.ToXml()
return $event.TimeCreated.addSeconds([int]$eventXML.Event.EventData.Data[5])
}
Just add it to your PowerShell Profile and in PowerShell just run the command nextShutdownTime
to see the expected shutdown time.
add a comment |
I just spent about an hour trying to make this work exactly as you wanted somehow. I experimented, and searched and searched, but I could not get it perfect, but I was able to come up with something.
I tried every combination of shutdown (-i -c -d options), but nothing.
I also experimented with the GUI interface after the -i option.
I also tried changing the balloon time display so it would stay down in the systray longer, but still, even that disappears.
The closest I go with with this sample command: shutdown -i -r -t 300
I think the fact is that they simply changed the way it works, and I don't think there is any way around it 100%, but the -i
now brings up a dialog box, whereas it used to bring up the screen you wanted. When I used the -i
in Windows 7, I had to fill out the box, and here was the result:
Then I hit Enter and got this:
I tested, and it seems that the upper value you can put in the "Display warning for X Seconds" is only 600, despite the fact you can enter up to 999 (very strange programming).
I just realized that it still does not do the countdown thing either.
– KCotreau
Jul 30 '11 at 16:13
Yeah, the server 2008 shutdown along with the xp shutdown only allow you up to 600 seconds. The windows 7 and 2008R2 allow something like up to 10 years.
– surfasb
Jul 31 '11 at 5:16
add a comment |
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
The native shutdown program in Windows 7 does not provide a countdown dialog (or a cancel button) like previous versions of Windows did.
If you need to schedule a shutdown and provide a countdown and cancel button you can use an HTA application, which can have text, images, a countdown and a cancel button.
Here is an example: HTA Script - Shutdown script and warning message
Source is my personal blog.
add a comment |
The easiest way to find out if a shutdown is in progress, is to simply schedule another shutdown. Give it a timeout of at least 200 seconds, just to be sure. Either you get an error stating that there is already a shutdown in progress, or it will initiate a timed shutdown that you can abort by typing shutdown /a.
So you type
shutdown /r /t 600
Now you either get
C:UsersAdministrator>shutdown /r /t 600
A system shutdown has already been scheduled.(1190)
or it will schedule a new shutdown.
If you only want to make sure no shutdown is scheduled, you can simply attempt an abort. Either it will abort, or it will state that no shutdown was scheduled.
C:UsersLeon>shutdown /a
Cannot abort a system shutdown. There is no shutdown in progress (1116)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f317051%2fin-windows-7-how-do-i-know-when-a-computer-is-scheduled-to-be-shutdown%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
I've found a way.
If instead of using shutdown -s -f -t 13600
you use shutdown -s -f -t 13600 -c "13600"
The -c
option adds a comment to the shutdown event logged by Windows Event Viewer
Your comment of "13600" will be visible in the Event Viewer as seen in the red oval:
To see this view yourself:type Event Viewer in the start menu and go to
Windows Logs -> System and you will see a list of system events.
Any events with an Event ID of 1074 will be a delayed shutdown.
So what we want is some code that gets the last 1074
event, looks up the value in the comment of the event and adds that value (in seconds) to the time the event was created, thus giving the shutdown time.
I made a function for Windows PowerShell (comes with Windows 7) that does that:
function nextShutdownTime
{
$events = Get-WinEvent -FilterHashtable @{logname="system"; id=1074}
$event = $events[0]
$eventXML = [xml]$event.ToXml()
return $event.TimeCreated.addSeconds([int]$eventXML.Event.EventData.Data[5])
}
Just add it to your PowerShell Profile and in PowerShell just run the command nextShutdownTime
to see the expected shutdown time.
add a comment |
I've found a way.
If instead of using shutdown -s -f -t 13600
you use shutdown -s -f -t 13600 -c "13600"
The -c
option adds a comment to the shutdown event logged by Windows Event Viewer
Your comment of "13600" will be visible in the Event Viewer as seen in the red oval:
To see this view yourself:type Event Viewer in the start menu and go to
Windows Logs -> System and you will see a list of system events.
Any events with an Event ID of 1074 will be a delayed shutdown.
So what we want is some code that gets the last 1074
event, looks up the value in the comment of the event and adds that value (in seconds) to the time the event was created, thus giving the shutdown time.
I made a function for Windows PowerShell (comes with Windows 7) that does that:
function nextShutdownTime
{
$events = Get-WinEvent -FilterHashtable @{logname="system"; id=1074}
$event = $events[0]
$eventXML = [xml]$event.ToXml()
return $event.TimeCreated.addSeconds([int]$eventXML.Event.EventData.Data[5])
}
Just add it to your PowerShell Profile and in PowerShell just run the command nextShutdownTime
to see the expected shutdown time.
add a comment |
I've found a way.
If instead of using shutdown -s -f -t 13600
you use shutdown -s -f -t 13600 -c "13600"
The -c
option adds a comment to the shutdown event logged by Windows Event Viewer
Your comment of "13600" will be visible in the Event Viewer as seen in the red oval:
To see this view yourself:type Event Viewer in the start menu and go to
Windows Logs -> System and you will see a list of system events.
Any events with an Event ID of 1074 will be a delayed shutdown.
So what we want is some code that gets the last 1074
event, looks up the value in the comment of the event and adds that value (in seconds) to the time the event was created, thus giving the shutdown time.
I made a function for Windows PowerShell (comes with Windows 7) that does that:
function nextShutdownTime
{
$events = Get-WinEvent -FilterHashtable @{logname="system"; id=1074}
$event = $events[0]
$eventXML = [xml]$event.ToXml()
return $event.TimeCreated.addSeconds([int]$eventXML.Event.EventData.Data[5])
}
Just add it to your PowerShell Profile and in PowerShell just run the command nextShutdownTime
to see the expected shutdown time.
I've found a way.
If instead of using shutdown -s -f -t 13600
you use shutdown -s -f -t 13600 -c "13600"
The -c
option adds a comment to the shutdown event logged by Windows Event Viewer
Your comment of "13600" will be visible in the Event Viewer as seen in the red oval:
To see this view yourself:type Event Viewer in the start menu and go to
Windows Logs -> System and you will see a list of system events.
Any events with an Event ID of 1074 will be a delayed shutdown.
So what we want is some code that gets the last 1074
event, looks up the value in the comment of the event and adds that value (in seconds) to the time the event was created, thus giving the shutdown time.
I made a function for Windows PowerShell (comes with Windows 7) that does that:
function nextShutdownTime
{
$events = Get-WinEvent -FilterHashtable @{logname="system"; id=1074}
$event = $events[0]
$eventXML = [xml]$event.ToXml()
return $event.TimeCreated.addSeconds([int]$eventXML.Event.EventData.Data[5])
}
Just add it to your PowerShell Profile and in PowerShell just run the command nextShutdownTime
to see the expected shutdown time.
edited Jul 31 '11 at 0:57
answered Jul 30 '11 at 15:59
GriffinGriffin
2431313
2431313
add a comment |
add a comment |
I just spent about an hour trying to make this work exactly as you wanted somehow. I experimented, and searched and searched, but I could not get it perfect, but I was able to come up with something.
I tried every combination of shutdown (-i -c -d options), but nothing.
I also experimented with the GUI interface after the -i option.
I also tried changing the balloon time display so it would stay down in the systray longer, but still, even that disappears.
The closest I go with with this sample command: shutdown -i -r -t 300
I think the fact is that they simply changed the way it works, and I don't think there is any way around it 100%, but the -i
now brings up a dialog box, whereas it used to bring up the screen you wanted. When I used the -i
in Windows 7, I had to fill out the box, and here was the result:
Then I hit Enter and got this:
I tested, and it seems that the upper value you can put in the "Display warning for X Seconds" is only 600, despite the fact you can enter up to 999 (very strange programming).
I just realized that it still does not do the countdown thing either.
– KCotreau
Jul 30 '11 at 16:13
Yeah, the server 2008 shutdown along with the xp shutdown only allow you up to 600 seconds. The windows 7 and 2008R2 allow something like up to 10 years.
– surfasb
Jul 31 '11 at 5:16
add a comment |
I just spent about an hour trying to make this work exactly as you wanted somehow. I experimented, and searched and searched, but I could not get it perfect, but I was able to come up with something.
I tried every combination of shutdown (-i -c -d options), but nothing.
I also experimented with the GUI interface after the -i option.
I also tried changing the balloon time display so it would stay down in the systray longer, but still, even that disappears.
The closest I go with with this sample command: shutdown -i -r -t 300
I think the fact is that they simply changed the way it works, and I don't think there is any way around it 100%, but the -i
now brings up a dialog box, whereas it used to bring up the screen you wanted. When I used the -i
in Windows 7, I had to fill out the box, and here was the result:
Then I hit Enter and got this:
I tested, and it seems that the upper value you can put in the "Display warning for X Seconds" is only 600, despite the fact you can enter up to 999 (very strange programming).
I just realized that it still does not do the countdown thing either.
– KCotreau
Jul 30 '11 at 16:13
Yeah, the server 2008 shutdown along with the xp shutdown only allow you up to 600 seconds. The windows 7 and 2008R2 allow something like up to 10 years.
– surfasb
Jul 31 '11 at 5:16
add a comment |
I just spent about an hour trying to make this work exactly as you wanted somehow. I experimented, and searched and searched, but I could not get it perfect, but I was able to come up with something.
I tried every combination of shutdown (-i -c -d options), but nothing.
I also experimented with the GUI interface after the -i option.
I also tried changing the balloon time display so it would stay down in the systray longer, but still, even that disappears.
The closest I go with with this sample command: shutdown -i -r -t 300
I think the fact is that they simply changed the way it works, and I don't think there is any way around it 100%, but the -i
now brings up a dialog box, whereas it used to bring up the screen you wanted. When I used the -i
in Windows 7, I had to fill out the box, and here was the result:
Then I hit Enter and got this:
I tested, and it seems that the upper value you can put in the "Display warning for X Seconds" is only 600, despite the fact you can enter up to 999 (very strange programming).
I just spent about an hour trying to make this work exactly as you wanted somehow. I experimented, and searched and searched, but I could not get it perfect, but I was able to come up with something.
I tried every combination of shutdown (-i -c -d options), but nothing.
I also experimented with the GUI interface after the -i option.
I also tried changing the balloon time display so it would stay down in the systray longer, but still, even that disappears.
The closest I go with with this sample command: shutdown -i -r -t 300
I think the fact is that they simply changed the way it works, and I don't think there is any way around it 100%, but the -i
now brings up a dialog box, whereas it used to bring up the screen you wanted. When I used the -i
in Windows 7, I had to fill out the box, and here was the result:
Then I hit Enter and got this:
I tested, and it seems that the upper value you can put in the "Display warning for X Seconds" is only 600, despite the fact you can enter up to 999 (very strange programming).
answered Jul 30 '11 at 15:34
KCotreauKCotreau
24.7k54064
24.7k54064
I just realized that it still does not do the countdown thing either.
– KCotreau
Jul 30 '11 at 16:13
Yeah, the server 2008 shutdown along with the xp shutdown only allow you up to 600 seconds. The windows 7 and 2008R2 allow something like up to 10 years.
– surfasb
Jul 31 '11 at 5:16
add a comment |
I just realized that it still does not do the countdown thing either.
– KCotreau
Jul 30 '11 at 16:13
Yeah, the server 2008 shutdown along with the xp shutdown only allow you up to 600 seconds. The windows 7 and 2008R2 allow something like up to 10 years.
– surfasb
Jul 31 '11 at 5:16
I just realized that it still does not do the countdown thing either.
– KCotreau
Jul 30 '11 at 16:13
I just realized that it still does not do the countdown thing either.
– KCotreau
Jul 30 '11 at 16:13
Yeah, the server 2008 shutdown along with the xp shutdown only allow you up to 600 seconds. The windows 7 and 2008R2 allow something like up to 10 years.
– surfasb
Jul 31 '11 at 5:16
Yeah, the server 2008 shutdown along with the xp shutdown only allow you up to 600 seconds. The windows 7 and 2008R2 allow something like up to 10 years.
– surfasb
Jul 31 '11 at 5:16
add a comment |
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
The native shutdown program in Windows 7 does not provide a countdown dialog (or a cancel button) like previous versions of Windows did.
If you need to schedule a shutdown and provide a countdown and cancel button you can use an HTA application, which can have text, images, a countdown and a cancel button.
Here is an example: HTA Script - Shutdown script and warning message
Source is my personal blog.
add a comment |
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
The native shutdown program in Windows 7 does not provide a countdown dialog (or a cancel button) like previous versions of Windows did.
If you need to schedule a shutdown and provide a countdown and cancel button you can use an HTA application, which can have text, images, a countdown and a cancel button.
Here is an example: HTA Script - Shutdown script and warning message
Source is my personal blog.
add a comment |
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
The native shutdown program in Windows 7 does not provide a countdown dialog (or a cancel button) like previous versions of Windows did.
If you need to schedule a shutdown and provide a countdown and cancel button you can use an HTA application, which can have text, images, a countdown and a cancel button.
Here is an example: HTA Script - Shutdown script and warning message
Source is my personal blog.
How do I query, or enable a dialog like Windows XP for me to know when the shutdown is going to happen?
The native shutdown program in Windows 7 does not provide a countdown dialog (or a cancel button) like previous versions of Windows did.
If you need to schedule a shutdown and provide a countdown and cancel button you can use an HTA application, which can have text, images, a countdown and a cancel button.
Here is an example: HTA Script - Shutdown script and warning message
Source is my personal blog.
edited Jul 27 '14 at 10:38
answered Jul 31 '11 at 2:15
ovann86ovann86
1,0411918
1,0411918
add a comment |
add a comment |
The easiest way to find out if a shutdown is in progress, is to simply schedule another shutdown. Give it a timeout of at least 200 seconds, just to be sure. Either you get an error stating that there is already a shutdown in progress, or it will initiate a timed shutdown that you can abort by typing shutdown /a.
So you type
shutdown /r /t 600
Now you either get
C:UsersAdministrator>shutdown /r /t 600
A system shutdown has already been scheduled.(1190)
or it will schedule a new shutdown.
If you only want to make sure no shutdown is scheduled, you can simply attempt an abort. Either it will abort, or it will state that no shutdown was scheduled.
C:UsersLeon>shutdown /a
Cannot abort a system shutdown. There is no shutdown in progress (1116)
add a comment |
The easiest way to find out if a shutdown is in progress, is to simply schedule another shutdown. Give it a timeout of at least 200 seconds, just to be sure. Either you get an error stating that there is already a shutdown in progress, or it will initiate a timed shutdown that you can abort by typing shutdown /a.
So you type
shutdown /r /t 600
Now you either get
C:UsersAdministrator>shutdown /r /t 600
A system shutdown has already been scheduled.(1190)
or it will schedule a new shutdown.
If you only want to make sure no shutdown is scheduled, you can simply attempt an abort. Either it will abort, or it will state that no shutdown was scheduled.
C:UsersLeon>shutdown /a
Cannot abort a system shutdown. There is no shutdown in progress (1116)
add a comment |
The easiest way to find out if a shutdown is in progress, is to simply schedule another shutdown. Give it a timeout of at least 200 seconds, just to be sure. Either you get an error stating that there is already a shutdown in progress, or it will initiate a timed shutdown that you can abort by typing shutdown /a.
So you type
shutdown /r /t 600
Now you either get
C:UsersAdministrator>shutdown /r /t 600
A system shutdown has already been scheduled.(1190)
or it will schedule a new shutdown.
If you only want to make sure no shutdown is scheduled, you can simply attempt an abort. Either it will abort, or it will state that no shutdown was scheduled.
C:UsersLeon>shutdown /a
Cannot abort a system shutdown. There is no shutdown in progress (1116)
The easiest way to find out if a shutdown is in progress, is to simply schedule another shutdown. Give it a timeout of at least 200 seconds, just to be sure. Either you get an error stating that there is already a shutdown in progress, or it will initiate a timed shutdown that you can abort by typing shutdown /a.
So you type
shutdown /r /t 600
Now you either get
C:UsersAdministrator>shutdown /r /t 600
A system shutdown has already been scheduled.(1190)
or it will schedule a new shutdown.
If you only want to make sure no shutdown is scheduled, you can simply attempt an abort. Either it will abort, or it will state that no shutdown was scheduled.
C:UsersLeon>shutdown /a
Cannot abort a system shutdown. There is no shutdown in progress (1116)
answered Jan 29 at 9:03
LPChipLPChip
36.8k55588
36.8k55588
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f317051%2fin-windows-7-how-do-i-know-when-a-computer-is-scheduled-to-be-shutdown%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown