Browse by Tags

All Tags » By Request (RSS)

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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"...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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:\\" &...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

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...
Posted by dhite | with no comments
Filed under:

By Request Script To Retrieve A Remote Machines Registry Install Date Timestamp

This By Request VBS script will allow you to enter a remote machine name or a local machine name to retrieve the registries install or rebuild date. VBS Script: strComputer = InputBox ( "Enter Machine...
Posted by dhite | with no comments
Filed under:

By Request Script Get Owner Of An OU

This by request script will allow you to retrieve the owner or the NT Security Descriptor of an Organization Unit (OU) . VBS Script: Set objContainer = GetObject( "LDAP://OU = OuName,dc=Domain,dc...
Posted by dhite | with no comments
Filed under:

By Request VBS Script To Show Mapped Drives For A Specified Machine

This VBS script will allow you to enter a remote machine name into an input dialog box. The script will then read the device ID for each assigned provider and will show you the mapped drive letter and...
Posted by dhite | with no comments
Filed under:

VBS Script To Perform An Nslookup Request And Open The Results In A Dialog Box

This by request VBS script will perform an NsLookup request for a remote machine and open the results in a dialog box for easier reading. VBS Script: strComputer = InputBox ( "Enter Machine Name"...
Posted by dhite | with no comments
Filed under:

VBS Script To Send IP Configuration Information To Text File And Display It

This By Request VBS script will allow you to get your local machines IP configuration (IpConfig /All) information and send to a text file called IpConfigResults.Txt. The file will then be opened and displayed...
Posted by dhite | with no comments
Filed under:

By Request Script To Retrieve A Remote Machines Domain Role

This By Request VBS Script will allow you to retrieve the domain role for a specified machine name. VBS Script: strComputer = InputBox ( "Enter Machine Name" ) Set objWMIService = GetObject(...
Posted by dhite | with no comments
Filed under:

By Request VBS Script To Trap Error Numbers And Their Equivalent HEX Value

This By Request VBS script was created as an example of how you can trap or see both the error number and its Hex equivalent for a specified error. I also added the Error description as well. VBS Script...
Posted by dhite | with no comments
Filed under:

By Request VBS Script To Get A Specified Client Machines Resource ID

This By Request VBS script will allow you to retrieve the Resource ID for a specified Resource name. VBS Script: strComputer = InputBox( "Enter Site Server Name" ) strSiteCode = InputBox( "Enter...
Posted by dhite | with no comments
Filed under:

Disabling The Windows XP Firewall On A Local Machine

This By Request VBS script will allow you to disable the Windows XP firewall on a local machine via a Group Policy or thorough a logon script. Disable The Local Windows XP Firewall: Set objFirewall = CreateObject...
Posted by dhite | with no comments
Filed under:

VBS Script To Open Microsoft System Information Applet On A Remote Machine

This By Request VBS script will allow you to open the Microsoft System Information applet on a remote machine taken from an input dialog box. This script is based on a previous By Request VBS post listed...
Posted by dhite | with no comments
Filed under:

VBS Script To Open A Remote Clients CcmSetup Folder

This by request VBS script will allow you to enter a remote client machine name and will open the clients CcmSetup directory folder. VBS Script: strcomputer = InputBox ( "Enter Client Machine Name"...
Posted by dhite | with no comments
Filed under:

Script To Get A Local Machines Adapter Link Speed

This By Request VBS script will allow you to see your local machines Adapter Link Speed. VBS Script: strComputer = "." Set objWMIService = GetObject( "winmgmts:\\" & strComputer...
Posted by dhite | with no comments
Filed under:
More Posts Next page »