Rob van der Woude's Scripting Pages

WSH: Examples (S)

HTA, JScript, VBScript and WSC examples

Download the ZIPped sources Click the floppy disk icons to download the ZIPped sources

Checksums for the ZIPped sources Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPped sources

 

 

All 0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 

WSH examples
Click the floppy disk icons to download the ZIPped sources Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPped sources Name Version Description Last modified
(yyyy-mm-dd)
Remarks
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SAVVer.vbs 1.00 Display Symantec Antivirus program and definitions version for any computer on the network 2006-06-29  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SecStat.vbs 2.01 Display a SecurityCenter and Windows Update status overview 2009-09-29 Requires Windows XP SP2 or later.
Use to find all properties for a specific AntiVirus or Firewall product.
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SelFile.vbs 1.00 Displays a "Select File" dialog and returns the selected file name 2010-05-31 Known issue: though the returned file name is correct, the returned path is not
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SendClip.vbs 1.01 Send a full path or any text string to the clipboard 2002-11-19  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source Services.vbs 1.00 Display all services 2002-11-02  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source ServicesTD.vbs 1.00 Display all services for any WMI enabled computer on the network in TAB delimited format 2002-11-02  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SetDate.vbs 1.10 Set today's day, month, year, week and quarter in environment variables 2009-07-25 When scheduled every midnight and at system startup, your batch files can read the day, month, year, week, quarter, weekday and day of the year directly from environment variables.
This can be very useful in backup directory names, log file names, etc.
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SFaR.vbs 1.00 Simple Find and Replace 2010-07-14 Can be used to replace text in ASCII files or strings.
Limited testing on XML files suggests UTF-8 is handled correctly as long as no Unicode characters need to be found or replaced.
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source ShareMg2.vbs 2.00 Migrate all non-printer shares from one server to another 2005-11-02 Currently for Windows Server 2003, created migration script needs manual modifications afterwards for Windows 2000.
(For printer migration, read the Printing section of my Unattended Installations page, for Scheduled Tasks migration, read the Scheduled Tasks section).
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source Shortcut.vbs 1.00 Create, modify or delete shortcuts 2013-03-25  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source ShowPRN.vbs 1.00 Display all installed printers and their properties 2004-01-13  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source ShowPRNT.vbs 1.01 Display all installed printers and their properties for any WMI enabled computer on the network in TAB delimited format 2004-01-17  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source Shutdown.vbs 1.10 Shutdown any WMI enabled computer on the network 2007-11-21 Based on a post by Alex K. Angelopoulos on www.developersdex.com.
See my Shutdown page for shutdown and reboot commands for "all" operating systems.
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SID2User.vbs 1.00 Return DOMAIN\UserID for the specified SID 2009-09-25 Based on an article by the Microsoft Scripting Guys.
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SkypeVer.vbs 1.00 Display installed Skype software version 2009-09-16  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SnagTest.vbs 1.01 Automated SnagIt screen capture 2008-01-28 Requires SnagIt 5.1
Click the floppy disk icon to download the ZIPped source   Software.hta 3.02 List installed software 2013-12-17  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SortDate.vbs 1.00 Display the date in YYYYMMDD format 2002-12-29  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SortTime.vbs 1.00 Display the time in HHmmss format 2002-12-29  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source SrvInv.vbs 1.21 Show and log a server hardware and software inventory 2005-09-14  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source StarDate.vbs 1.00 Convert current date & time to stardate 2003-02-03 Based on an algorithm found on The StarTrek Gallery
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source Startup.vbs 1.00 Display all startup commands (Startup folder and registry Run) 2003-01-16  
Click the floppy disk icon to download the ZIPped source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPped source StringHash.vbs 1.00 Get the MD5 or SHA-256 hash value for the specified string 2010-07-30 This script uses the MD5 and SHA256 classes by Frez Systems Limited, which were adapted for use in VBScript by Michal Gabrukiewicz (MD5) and yours truly (SHA-256).

 

All 0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 


page last uploaded: 2015-08-24, 21:18