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
Solved

How can I schedule a virtual SBS2003 server

Posted on 2013-05-16
6
423 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction In one of my previous articles (http://www.experts-exchange.com/Microsoft/Applications/Virtual_Server/Hyper-V/A_10686-Creating-a-Hyper-V-Cluster-on-Windows-2012.html), I explained how to create a native Windows 2012 Cluster.  The metho…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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