This is a Windows Server, so likely won't have anyone logging on to it immediately upon reboot. I saw this similar question , but didn't think that Scheduled Tasks execute without someone logging on Edit : Ok, looks like Scheduled Tasks can be set to run a command each server start, but a couple of remaining questions:. And a final strategy question: If I want to monitor a handful of servers in this manner, for a short period of time, am I better off setting these monitors up directly on each server, or to run directly on my workstation, gathering data remotely?
This will restart the counter automatically after each reboot without the need for a scheduled start script. Scheduled tasks can run even with no user logged on. You provide a username and password for the task preferably a service account so the password does not expire. Create a scheduled task that runs Logman. Update: In the "schedule" tab, select some date in the past and not manaully! I think that this should be enough. But I didn't test it lately.
To make this more complete choose some reasnoble stop condition, and also select start a new log file in the "when a log file is closed" box. I believe this should solve your problem. Before Update: What do you mean by "performance counter restars? Performance counter are always available when the system is up and running. If you want to log the data from the counter than you can use the "counter log" feature.
You create a new log with the counters you are intrested in. It will autostart if the computer reboots. Windows Server — Schedule automatic restart From time to time its absolutely necessary to restart Windows Server EXE -r -f -t 01 Just change the to the time of your choice. Share this: Twitter Facebook.
Like this: Like Loading Mr WordPress 7. Leave a Reply Enter your comment here Please log in using one of these methods to post your comment:. Here is a quick workaround that gets the job done -- and you don't even have to handle power cords or the power switch. The Windows Server computer you are working on will not shut down.
You don't have any luck using the Start menu or the [Ctrl][Alt][Delete] methods, and you need to restart the server as quickly as possible. There is a quick workaround that gets the job done -- and you don't even have to handle power cords or the power switch. When you enter a Shutdown with no arguments, the Help listing will display.
The reason codes are shown below:. You can use many of these switches in conjunction with one another when issuing the Shutdown command.
A usage example for the Shutdown command follows:. What the "AT" command does is automatically create a scheduled task for a certain command. It has a ton of parameters that you can specify to repeat it, but by default it'll just run whatever command you specify at the next instance of whatever time you specify. I know this doesn't solve your whole problem but for versions of Windows Server since , and in cases where you only need the server to reboot once, you don't need to bother with scheduled tasks.
The built in shutdown command lets you specify a delay in seconds using the the -t parameter. Obviously to get a specific time you'll need some simple maths but it's a lot easier than messing around with scheduled tasks. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Schedule reboot at the specified time Ask Question.
Asked 12 years, 8 months ago. Active 6 years, 5 months ago. Viewed 29k times. How to schedule a Windows server to reboot at a specified time?
0コメント