Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Tabular Output in a Command WindowContent of List Tabular Output in a Command Window.vbsMD5 Hash: 8F10C4083BB1843F46E8ED0611C5CDF3 |
||
' Description: Retrieves service data from a computer, and then outputs that data in tabular format in a command window.
Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colServices = objWMIService.ExecQuery("Select * from Win32_Service") For Each objService in colServices intPadding = 50 - Len(objService.DisplayName) intPadding2 = 17 - Len(objService.StartMode) strDisplayName = objService.DisplayName & Space(intPadding) strStartMode = objService.StartMode & Space(intPadding2) Wscript.Echo strDisplayName & strStartMode & objService.State Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |