Posts

Showing posts with the label VBScript

DHCP Log Parser

I am sharing the script which I had created long time back for parsing DHCP Logs. This script will pull out computer name and IP address details for each log files placed in "DHCPLogs" folder and save the result in .CSV file. Steps: 1. Copy the script in notepad and save as "DHCPLogParser.vbs" or whatever you like. 2. Create a folder named "DHCPLogs" in script directory. 3. Copy all DHCP Logs with folders / subfolders in "DHCPLogs" folder 4. Run the script 5. Result will be saved in DHCPLog-Parsed.csv file. Dim objCurrentFolder Set objFso = CreateObject("Scripting.FileSystemObject") Set objResult = objFso.CreateTextFile("DHCPLog-Parsed.csv") CheckFolder objFso.GetFolder ("DHCPLogs") WScript.Echo "Done !!!" '#### Sub CheckFolder Sub CheckFolder(objCurrentFolder) For Each objFile In objCurrentFolder.Files 'WScript.Echo "Processing " & objFile.Path &...

SCCM Deployment - Generating MIF file using VBScript

Image
The below VBScript will create the package installation status MIF file. The problem with the script initiated deployment is that it returns the success status even if the action performed by the script failed.   I have found this script on appdeploy website. The original script is located at http://www.appdeploy.com/messageboards/tm.asp?m=52414     Script Usage: SMSWriteStatusMIF “MIF File Name”, “Manufacturer”, “Product Name”, “Version”, “Description”,bSuccess   MIF File Name   : Name of the status MIF file. Manufacturer      : The application vendor Product Name     : Application name Version               : Application version Description         : The error description bSuccess             : True / False Script   Sub SMS...