Solved

How can I schedule a virtual SBS2003 server

Posted on 2013-05-16
6
421 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

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…
Learn about cloud computing and its benefits for small business owners.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

16 Experts available now in Live!

Get 1:1 Help Now