There are UDFs for this already written. Check out the UDF library...


Two service related UDFs I have submitted are: fADSIServiceRun and fADSIServiceStartup
_________________________
Home page: http://www.kixhelp.com/hb/