I've never done it myself, but it appears that you can do this in vbscript using ADSI. The script at the link below enumerates services on machines. It obtains status, startup settings, service account name, among other things. I imagine if you can write a script to get this data you should be able to modify the settings. http://cwashington.netreach.net/depo/view.asp?Index=180&ScriptType=vbscript
For a FAQ on ADSI http://cwashington.netreach.net/depo/default.asp?topic=adsifaq -----Original Message----- From: Ed Esgro [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 11:19 AM To: MSWinNT Discussions Subject: RE: Enable service via script? I have used the netsvc program many times from a command line to start stop pause and restart services. I am not exactly sure if it will allow you to change the startup options for it, but you can check it out. Maybe there is a switch that will allow you to do this. This article has some info about this utility. http://www.techrepublic.com/article.jhtml?id=r00320020225wtn01.htm&vf=fav&rc ode=r003 -----Original Message----- From: BY [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 7:36 AM To: MSWinNT Discussions Subject: Enable service via script? Dear all, I am reviewing my company's SOE environment at the moment. There a service has been set as DISABLE on workstation hardware profile. If I were to do this, I try not to visit all my 2,500 machines to enable them back. I know the service name. I don't think NET command has option to enable a service. Has anyone done it before via NET command or SMS Server 2.0? Is this possible? Thanks in advanced. BY ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to %%email.unsub%% ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to %%email.unsub%% ------ You are subscribed as [email protected] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
