Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How can I schedule a virtual SBS2003 server

Posted on 2013-05-16
6
Medium Priority
?
433 Views
Last Modified: 2013-06-15
I have a customer with a SBS server running as a Hyper-V server. I need to schedule a weekly reboot as the server remote access sometimes locks up.
I created a schedule task to run a batch file with the following contents.
psshutdown -accepteula -r -c -f -m " The server will reboot in 10 Minutes" -t 600 -e p:1:1 -n 20 -v 60 \\hpserver

If I run the batch file manually, it starts a countdown. I have not let it complete as I can't reboot the server during the day.
The server never reboots at the scheduled time and I cannot see anything in the event log.
0
Comment
Question by:Les Finch
  • 4
  • 2
6 Comments
 
LVL 14

Assisted Solution

by:theras2000
theras2000 earned 500 total points
ID: 39173683
I don't have 2003 in front of me so I'm not certain of the names and boxes, but these are the things that have helped me before when I've struggled with this:
- making sure the user account is one that has been logged into before (i.e. yours will do)
- ticking the box for admin/highest privileges
- try making sure the "start in" box has the full path to wherever the batch file is.

For troubleshooting, definitely do this:
1. put the batch file in C:\
2. comment out your current command by prefixing the line with REM
3. add something simple like just a pause on the start line.
4. play with the scheduler to make it run 2 mins after you set it.
5. Keep fiddling with the schedule/batch file in this state to test properly until you have it working properly.  I think you can even observe that cmd should be running as a process when the schedule runs.
0
 

Author Comment

by:Les Finch
ID: 39173747
After I posted the question I altered the batch to include a pause and the scheduler ran the batch.
I have to assume it is the shutdown command itself.
I may have to run a shutdown to completion to observe what is happening.
0
 
LVL 14

Expert Comment

by:theras2000
ID: 39173774
Or the command is not being received by the remote computer.  hpserver is the target right?  You could try making the schedule on that actual machine.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Les Finch
ID: 39173798
Sorry thats a detail I left out. The schedule task is running on the SBS server. The name was included in the command as part of the testing.
0
 

Accepted Solution

by:
Les Finch earned 0 total points
ID: 39236371
The secedule reboot is now working. I went through step by step and changed the schedule to daily so I did not have to wait as long. It would reboot daily. I then changed back to weekly but set to every day and it still worked. It is now as I had originally set it up and continues to work.
I have no idea why it started working but will accept the solution.
0
 

Author Closing Comment

by:Les Finch
ID: 39249763
There was no real solution that would be helpful to others. I have allocated points to theras2000 as the suggestions would help other users diagnose a similar problem.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question