Recent Posts
Don Hite
Return To Blog Listing
Tags: Break Time, By Request, Microsoft SQL Server, Odds & Ends, PowerShell, SMS 2003 SQL Queries, Vbs Scripts
Recent Posts Tagged With 'by request'
By Request VBS Script To Delete All Files From A Specified Folder
VBS Script: strDirectory = "C:\DirectoryFolderName" Set FSO = CreateObject("Scripting.FileSystemObject") Set objFolder = fso.GetFolder(strDirectory) For Each objFile in objFolder.Files objFile.Delete Tr...
By Request VBS Script Query User Terminal Server
This By Request VBS script is provided as an example of how to query the user(s) logged onto a remote terminal server. VBS Script: strComputer = InputBox("Enter Terminal Server Name") Set objShell = CreateObject(...
By Request Net Send VBS Script
This By Request VBS script will allow you to send a message to a remote machine. Note: The messenger service on Windows XP SP 2 or later machines needs to be modified so that the service is not disabled and is set to start automatically...
By Request VBS Script To Enumerate A Local Machine Name For Help Desk Personnel
This By Request VBS script was written to be sent or set as a desktop shortcut to allow local machine users to get their machine name and current time for help desk troubleshooting when a user does not know how to get their machine name.  ...
By Request VBS Script To Run A Local Executable
This By Request VBS script will start the Hearts Game form a Local machine. VBS Script: Set objShell = createobject("wscript.shell") strCommand = "MsHearts.Exe" objShell.run strCommand, 1, True ...
By Request VBS Script To Open The ConfigMgr 2007 Console Using A Switch
This By Request VBS Script will provide you with an example of how to open the ConfigMgr 2007 console using a specified command line switch. The switch used in this example is the No Restore (sms:NoRestore) switch which will open the console a...
By Request VBS Script To Copy A File To A Multiple Machines
This By Request VBS Script will copy a specified file to a list of machine names taken from an input file called “MachineList.Txt”. VBS Script: InputFile = "MachineList.Txt" strFileName = "C:\FileNam...
By Request VBS Script To Delete IE 7 History
This By Request VBS script will provide you with an example of how to use the Internet Explorer (IE) 7.0 newly introduced “ClearMyTracksByProcess” Internet Options control panel command line to clear or delete your internet history...
By Request VBS Script To Copy A File To A Remote Machine
This By Request VBS Script will copy a specified file to a remote machine taken from an input dialog box. VBS Script: strComputer = InputBox ("Enter Machine Name") strFileName = "C:\FileName.Txt" Const ...
By Request VBS Script To Replace A WMI String Result Set With A Substituted String
This VBS script was written as an example of how to replace the results from a WMI string results set to remove unwanted characters. The BootDirectory value of \WINDOWS has the \ removed or trimmed from it and the Caption has the \Devi...
By Request VBS Script To Retrieve Your Micorosft Word Version
This By Request VBS scripot will give you your Micorosaft Word Version Number VBS Script: Set objWord = CreateObject("Word.Application") Set objOptions = objWord.Options MsgBox objWord.Name & " Version ...
By Request Script To Return The Next Available Drive From A Remote Machine
This By Request VBS Script will allow you to find the next available drive letter on a remote or local machine. VBS Script: strComputer = InputBox ("Enter Machine Name") strFirstDrive = "A" 'First D...
By Request VBS Script To Split Forward Space Separated Stings
This By Request VBS Script will provide you with an example of how to separate WMI Class stings that are separated by forward spaces (\). The user also requested a simple way to reverse the output and that script is included as well. V...
By Request VBS Script To Release And Renew A Local IP Address
This VBS script will allow you to release and then renew the IP address for a local machine. VBS Script: strComputer = "LocalHost" Set objWMIService = GetObject("winmgmts:\\" & strComputer & &qu...
By Request VBS Script To Determine How Many Days Have Passed Since A Specified Date
This By Request VBS Script will allow you to enter a date into an input dialog box and will determine how many days have passed since that date. VBS Script: strMmDdYyyy = InputBox ("Enter Date As: MM-DD-YYYY") MsgBox st...
By Request Script To Send Excel Headers To A Column Rather Than A Row
This By Request VBS Script will provide you with an example of how to send the results from a VBS script to an excel spreadsheets column rather than a row. VBS Script: strComputer = InputBox ("Enter Machine Name")  ...
By Request VBS Script To Add To Do Tasks To Outlook
This By Request VBS Script will allow you to enter to do tasks for outlook using dialog boxes. VBS Script: Const olTaskItem = 3 Set objOutlook = CreateObject("Outlook.Application") Set objTask = objOutlook.Create...
By Request Script To Send Service Display Name And Path Name To A Text File
This By Request VBS script will send service display names and paths to a text file. VBS Script: strComputer = InputBox ("Enter Machine Name") Const ForAppending = 8 Set objFSO = CreateObject("Scripti...
