Code:
WKSName = WshShell.Environment("PROCESS").Item("COMPUTERNAME")
Gets the computer name (NOTE: FQDM is not returned)
Code:
Set cServices = oWMI.ExecQuery _
("Select * from Win32_Service Where Name = '{SERVICE NAME}'")
If you open the service (right click->properties) it will have a servic name (not the display name). Put that in where it says {SERVICE NAME}
It will then check to see if its there. If its there then a row result is sent back.
Code:
If cServices.count = 0 Then
Says basically if there is a result do this
Code:
WshShell.run "BLAH INSTALL"
You could have "\\server\apps\usbdlm\install.cmd --silent install" and that should work.
Or thats the idea anyway