Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Search for Files Using the Indexing ServiceContent of Search for Files Using the Indexing Service.vbsMD5 Hash: 62BA4026B37829CA23465FD791DF5C08 |
||
' Description: Returns the file name and file size for all files (recorded in the Script Catalog Indexing Service catalog) that contain the term Win32_NetworkAdapterConfiguration.
On Error Resume Next Set objConnection = CreateObject("ADODB.Connection") objConnection.ConnectionString = "provider=msidxs;" objConnection.Properties("Data Source") = "Script Catalog" objConnection.Open Set objCommand = CreateObject("ADODB.Command") strQuery = "Select Filename, Size, Contents from Scope() Where " _ & "Contains('Win32_NetworkAdapterConfiguration')" Set objRecordSet = objConnection.Execute(strQuery) Do While Not objRecordSet.EOF Wscript.Echo objRecordSet("Filename"), objRecordSet("Size") objRecordSet.MoveNext Loop | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |