Sep 22, 2005 #1 GerhardR IS-IT--Management Feb 24, 2005 90 AT Hi! Is it possible to add via SMS Windows Components like SNMP and WMI SNMP? And I also have to add a service for which a lot of properties have to be set - is that also possible? Thanks for any help! Gerhard
Hi! Is it possible to add via SMS Windows Components like SNMP and WMI SNMP? And I also have to add a service for which a lot of properties have to be set - is that also possible? Thanks for any help! Gerhard
Sep 22, 2005 #2 tbrennans Technical User Oct 27, 2003 940 US here is a link to a script that does it: http://myitforum.techtarget.com/for...=install,snmp&language=single&tmode=&s=#24175 and as far as installing a service goes..a vb script: Const OWN_PROCESS = 16 Const NOT_INTERACTIVE = False Const NORMAL_ERROR_CONTROL = 2 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objService = objWMIService.Get("Win32_BaseService") errReturn = objService.Create("MyService" ,"My Service" , "c:\windows\system32\mynewservice.exe", OWN_PROCESS, NORMAL_ERROR_CONTROL, "Manual", NOT_INTERACTIVE, "NT AUTHORITY\LocalService", "" ) Wscript.Echo errReturn Upvote 0 Downvote
here is a link to a script that does it: http://myitforum.techtarget.com/for...=install,snmp&language=single&tmode=&s=#24175 and as far as installing a service goes..a vb script: Const OWN_PROCESS = 16 Const NOT_INTERACTIVE = False Const NORMAL_ERROR_CONTROL = 2 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objService = objWMIService.Get("Win32_BaseService") errReturn = objService.Create("MyService" ,"My Service" , "c:\windows\system32\mynewservice.exe", OWN_PROCESS, NORMAL_ERROR_CONTROL, "Manual", NOT_INTERACTIVE, "NT AUTHORITY\LocalService", "" ) Wscript.Echo errReturn
Sep 23, 2005 Thread starter #3 GerhardR IS-IT--Management Feb 24, 2005 90 AT thank you! Upvote 0 Downvote