Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Windows Small Business Server > Script required to automatically restart DHCP Service Services

Reply
Fix Vista Errors
Thread Tools Display Modes

Script required to automatically restart DHCP Service Services

 
 
Paul
Guest
Posts: n/a

 
      11-03-2009



Hi I have SBS2008 as a virtualmachine running inside hyper-v.

The problem is that the SBS2008 machine which controls the internet etc.
loses the ability to resolve secondary domain names i.e. .co.uk etc. and the
result is that you need to restart the DHCP service within a day following a
reboot.
This is fine except that because it is a virtualmachine and that it is set
to be backed up each night via the hyperv PC the hyper-v pc closes/pauses?
the SBS2008 machine and I am forced to do this operation every day.
I was hoping to get a script or task set up to say restart the DHCP Service
at say 7.30am every morning.
 
Reply With Quote
 
SuperGumby [SBS MVP]
Guest
Posts: n/a

 
      11-03-2009
before implementing such have you checked
http://blogs.technet.com/sbs/archive...ike-co-uk.aspx

which I think is picked up by the SBS BPA, so if it hasn't been run,,,
www.sbsbpa.com.

"Brian Cryer" <not.here@localhost> wrote in message
news:...
> "Paul" <> wrote in message
> news:5E8056FE-CA5F-4E7D-8A12-...
>> Hi I have SBS2008 as a virtualmachine running inside hyper-v.
>>
>> The problem is that the SBS2008 machine which controls the internet etc.
>> loses the ability to resolve secondary domain names i.e. .co.uk etc. and
>> the
>> result is that you need to restart the DHCP service within a day
>> following a
>> reboot.
>> This is fine except that because it is a virtualmachine and that it is
>> set
>> to be backed up each night via the hyperv PC the hyper-v pc
>> closes/pauses?
>> the SBS2008 machine and I am forced to do this operation every day.
>> I was hoping to get a script or task set up to say restart the DHCP
>> Service
>> at say 7.30am every morning.

>
> Copy the following into a .cmd file and I think it should work (but I've
> not tested it):
>
> net stop "DHCP Server"
> net start "DHCP Server"
>
> I think that's it. All it is doing is stopping the "DHCP Server" service
> and then starting it again. Once you are happy that this does what you
> want then you can add it to the task schedular.
>
> Hope this helps.
> --
> Brian Cryer
> www.cryer.co.uk/brian



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Security Failures after Password Change Zachary Server Security 14 10-30-2009 07:02 PM
Windows Update Service is not working Asif Update Services 1 10-27-2009 05:54 PM
Corrupt Files juerg Windows Vista Installation 10 07-12-2007 05:38 PM
Office with Vista Tommo Windows Vista Installation 3 03-04-2007 11:25 PM
Activesync Kills Wireless Andrew Meldrum ActiveSync 66 06-05-2006 04:27 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59