Microsoft Office Microsoft Word Display Service Information in a Word Document , WMI
' Display Service Information in a Word Document
Set objWord = CreateObject("Word.Application") objWord.Visible = True
Set objDoc = objWord.Documents.Add() Set objSelection = objWord.Selection
objSelection.TypeText "Services Report" objSelection.TypeParagraph() objSelection.TypeText "" & Now objSelection.TypeParagraph() objSelection.TypeParagraph()
strComputer = "." Set objWMIService = _ GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_Service")
For Each objItem in colItems objSelection.TypeText objItem.DisplayName & " -- " & objItem.State objSelection.TypeParagraph() Next
|
VbsEdit includes all these samples!
Download Now!
Version 5.4.1 - This package includes VbsEdit 32-bit, VbsEdit 64-bit, HtaEdit 32-bit and HtaEdit 64-bit. The evaluation version never expires.
Home
Buy Now
HtaEdit
Support
Video
What's new ?
|