Solved

How can I schedule a virtual SBS2003 server

Posted on 2013-05-16
6
420 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
You may have discovered the 'Compatibility View Settings' workaround for making your SBS 2008 Remote Web Workplace 'connect to a computer' section stops 'working around' after a Windows 10 client upgrade.  That can be fixed so it 'works around' agai…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now