|
I could have sworn I replied to this already... must not have hit submit.
The last code listed (fnWMIService()) worked Great for me and it is working 100%. After doing a ton of research on the Microsoft boards I have a thoery about why I was having problems. It seems that a simple write statement to the registry does not update the Service Monitor properly. So even though the setting was correct the service Control Monitor Service was not being updated and it still thought it was in a state of disabled.
Using the WMI function uses the correct API which DOES update the Service Control Monitor service and thus it works.
Thanks for all your help guys.
One last question.... and this one is kinda stupid...
Everyone starts their scripts with a Break ON statement. 1) what does that do? 2) should I ever do a Break Off? maybe at the end of my scripts? 3) should I have a Break On statement at the start of EACH section of my logon script or do I turn on the Break just once?
Before you flame me ... please remember this is the "starters" forum.
|