This page is dedicated to Windows Scripting:

I'm now working for many years as an IT engineer. During all those years I had to write a lots of 
scripts to make my life easier!

Editing your scripts?

A sample Windows Administrator Toolbox

Some examples

 

Editing your scripts?

  A good free text editor :

I use to work for several time with Programmer's File Editor (PFE) which was distributed as
a freeware on Internet. You can still download it at the following address:

http://www.lancs.ac.uk/people/cpaap/pfe/

 

  Edit Plus

Since the PFE project has been stopped, I now used Edit Plus which is not a freeware tool, but
the price is about $20, so nearly free!

If your a drag and drop addict, here's the VBScript constant list (WSH 1.0) to use with EditPlus
download the file and make a copy into EditPlus folder...

Here is my own template VBScript scripts.

 


A sample Windows Administrator Toolbox

Here's an open list of some very useful tools for scripting Windows NT/2000:

  Ligne de commande

Name Description Type   Author License

blat.exe

Send SMTP email

CL

L

Tim Charron

Freeware

choice.exe

Manage user choice

CL

L

Microsoft RK

Commercial

chsvc.exe

Change NT service properties

CL

L/R

AINXT NT Tools

Freeware

clsltest.exe

Send a syslog message

CL

L

Franz Krainer

Freeware

diruse.exe

Displays a list of disk usage

CL

L/R

Microsoft RK

Commercial

dumpsec.exe

Formerly DumpACL

CL/GUI

L/R

System Tools

Freeware

eldump.exe

Dumping NT eventlog

CL

L/R

Jespers NT tools

Freeware

elsavclr.exe

Dumping and clearing NT eventlog

CL

L/R

Jespers NT tools

Freeware

elsave.exe

Dumping NT eventlog

CL

L/R

Jespers NT tools

Freeware

exporter.exe

Microsoft network exporter

CL

L

System Tools

Freeware

ftp.exe

Windows 2000 ftp client

CL

L

Microsoft RK

Commercial

gawk.exe

GNU awk

CL

L

Free Software Foundation

Freeware

getmac.exe

Get ethernet mac address

CL

L/R

Microsoft RK

Commercial

getmail.exe

Email reader

CL

L

Tim Charron

Freeware

httpget.exe

Http fetcher

CL

L

Bruce Lightner

Freeware

ifmember.exe

Account checker utility

CL

L

Microsoft RK

Commercial

logevent.exe

NT eventlog utility

CL

L/R

Microsoft RK

Commercial

logoff.exe

Logoff utility

CL

L

Microsoft RK

Commercial

lssvc.exe

List NT services

CL

L/R

AINXT NT Tools

Freeware

makescut.exe

Make shortcuts from command line

CL

L

ScriptLogic

Freeware

msgbox.exe

Win32 message box

CL/GUI

L

ESI SUPINFO Paris

Freeware

nc.exe

The TCP/IP Swiss Army Knife

CL

L

@stack Reasearch Labs

Freeware

NetView.exe

Microsoft network viewer

CL

L

System Tools

Freeware

now.exe

Get now's time and date

CL

L

Microsoft RK

Commercial

ntsort.exe

Sort utility

CL

L

AINXT NT Tools

Freeware

pkunzip.exe

Unzip utility

CL

L

PKWare Inc

Commercial

pkzfind.exe

Zip file finder utility

CL

L

PKWare Inc

Commercial

pkzipc.exe

Zip utility

CL

L

PKWare Inc

Commercial

playwav.exe

Play wave files

CL

L

ScriptLogic

Freeware

grep.exe

GNU grep utility

CL

L

Free Software Foundation

Freeware

reg.exe

Registry utility

CL

L/R

Microsoft RK

Commercial

regclean.exe

Registry cleaner utility

CL

L

Microsoft RK

Commercial

rmsvc.exe

Remove NT service

CL

L/R

AINXT NT Tools

Freeware

rmtshare.exe

Remote sharing utility

CL

L

Microsoft RK

Commercial

robocopy.exe

Robust File Copy for Windows NT

CL

L

Microsoft RK

Commercial

rw.exe Remote Wake-up Utility CL R Patrick Garnier Freeware

sc.exe

NT Service Controller utility

CL

L

Microsoft RK

Commercial

sleep.exe

Sleep utility

CL

L

Microsoft RK

Commercial

srvinfo.exe

Gather info about a target server

CL

L

Microsoft RK

Commercial

startsvc.exe

Start a NT service

CL

L/R

AINXT NT Tools

Freeware

stopsvc.exe

Stop a NT service

CL

L/R

AINXT NT Tools

Freeware

subinacl.exe

Displays or modifies access control lists

CL

L

Microsoft RK

Commercial

trapgen.exe

SNMP Trap generator

CL

L

Network Computing Technologies

Freeware

uptime.exe

Uptime utility

CL

L

Microsoft RK

Commercial

vnccsl.exe VNC Network Scanner CL L/R Patrick Garnier Commercial

vncviewer.exe

VNC Viewer

CL/GUI

L

AT&T Research Labs

Freeware

wget

Non-interactive network retriever

CL

L

Free Software Foundation

Freeware

where.exe

Find a file

CL

L

Microsoft RK

Commercial

whoami.exe

who am I

CL

L

Microsoft RK

Commercial

xcacls.exe

Displays or modifies access control lists

CL

L

Microsoft RK

Commercial

xcopy.exe

Enhanced copy utility

CL

L

Microsoft RK

Commercial

CL: Command line / GUI: GUI mode
L: Local / R: Remote action


Some examples

  IP Scanner :

If you want to get information on all the computer which are running on your network (LAN 
only), This script will allow you to get all the IP & MAC Addresses, hostnames and put all of 
that together into a CSV file. You will then be able to import that file into a sniffer for example.

To run this script you will need to use cscript. The following parameters are accepted by the 
script :

/? : Shows help.
/HI <Network_ID> : This is the network ID that you want to scan. Please note that it
should be the same that the one used on your computer.

Use examples:

cscript hostnames.vbs /?
cscript hostnames.vbs /HI 193.56.67

  Download hostnames.vbs

 

  Random password generator :

This script contain a CreatePasswd function which will generate random passwords. Can be
usefull if you are using WSH and ADSI to manage your new network users. This script can also
be found here (Javascript written).

CreatePasswd function accept 3 parameters:

Size : Password length (integer)
OnlyLetters : Only letters (more easy to remember)
(boolean)
LowerCase : Only lowercase characters (even more easy to remember) 
(boolean)

  Download passwd.vbs

 

  Searching for VNC servers on your network :

This script will scan your IP network to search for VNC servers. It will export the hosts list into
windows shorctuts (see VNCCSL Tips).

  Download search.zip

 


FastCounter by bCentral

Date this page was last edited : 17/04/02

Réclamations