After listing a process, you may want to kill or terminate a process: strComputer = “.” strProcess = “‘iexplore.exe'” Set objWMIService = GetObject(“winmgmts:” _ & […]
Continue readingTag: VBScript
Using VBScript to List Processes in Windows
Just like ps, this VBScript will return the running processes. Just like using Task Manager. Very simple. strComputer = “.” Set objWMIService = GetObject(“winmgmts:” _ […]
Continue readingList Scheduled Tasks from a Windows Server
This script will query a server and output a list of scheduled tasks as a csv (Excel) file. This file is useful when auditing servers. […]
Continue readingDisplay Process List Using VBScript
This great VBScript script will display running processes on a Windows workstation. The script queries the Win32_Process from a WMI Object using ExecQuery then loops […]
Continue readingMove Your Mouse Using VBScript and Excel
This script uses the GetMessagePos and SetCursorPos Windows API functions to move your mouse. The script will first get the current position of the mouse […]
Continue readingHow to Run a Script within VBScript
This is a useful script to call another script within VBScript. Using the Run method within the WshShell object allows you to call any script […]
Continue readingSend an Email with VBScript
Another really easy script. This script will send an email. As I automate tasks, I like to build an html log file and email the […]
Continue readingRetrieve Model and Serial Number with VBScript
Simple script to retrieve information about a workstation or hardware. strComputer = “.” Set objWMIService = GetObject(“winmgmts:” _ & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”) Set […]
Continue readingPass Parameters from a Windows Batch Script to VBScript
It can be very useful to pass parameters from a Windows Batch Script to VBScript. For this to work, a user will pass parameters to […]
Continue readingCall VBScript from a Windows Batch Script
This very easy bit of code will call a VBScript script from a Windows Batch Script: call script.vbs
Continue reading