Solved

How can I schedule a virtual SBS2003 server

Posted on 2013-05-16
6
428 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:ficose
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 14

Assisted Solution

by:theras2000
theras2000 earned 250 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:ficose
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
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 

Author Comment

by:ficose
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:
ficose 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:ficose
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Why should I virtualize?  It’s a question that’s asked often enough.  My response is usually “Why SHOULDN’T you virtualize?”
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

724 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