|
Welcome, this is my own personal Script Repository. Mostly I will be writing them in .vbs .bat .hta (alsot trying a bit of C#) and are only for MS plataform. It is to be used by System Administratiors (specially enterprise plataforms). If you manage 5-10 servers most likely this will seem useless. When you have to monitor 20+ exchange servers etc.. then I am sure these can be quite handy. Any kind of Help/comments are VERY welcome. ALL SCRIPTS AT: http://4scriptomini.4shared.com/
\EXCHANGE - \EVENTVIEWER - \TERMINALSERVICES SCRIPT REPOSITORY: ******************************** \EXCHANGE
Name: Exchange Top Email senders (from SMTP out) Description: Get Top SPammers/Emailers and Send Output Report Via Email , Highly Customized. Can also automaticly Act upon these possibly Spammers by 3 levels of DisableAct, level 0 nothing, 1 REDUCE MAX RECIPIENT, 2 Disable from AD /add to Exchange Blacklist Requires: logparser.dll, exchange SMTP logs, whitelist.txt, SpamDB.mdb Download: ExGetTopEmailers.vbs Nam: Exchange Email Information Description: Gets information about a email, what IP, time, date, to who the email went etc... Simple function that can be further used. Requires: logparser.dll Download: ExGetInfoSpammers.vbs Name :Exchange Log Archive Description: Archive .log files, 1, rar 2, move to archive, 3.delete file, make report and email it Used for Example: To archive Exchange Logs, or IIS, STMP etc... Download: Archive.vbs Name: Exchange Get Mailbox Size by UPN List Dscription: Get Mailbox INFO(Size,TItems,...) from UPN list, querys AD then EX. Using MailboxGUID and AD account msExchMailboxGuid, I was able to decode AD and Match Exchange GUID. The script will dump exchange info by DB into .txt and then will parse each txt and output all into one final txt. Download: MbxInfo.vbs Name : Exchange Anti-Spam (ExDelDomain.vbs) Description: Check domain/email (mail from) if is in list(line17) move email out of Exchange Queue directory!ex.vsi1\queue to where you want (or just delete it) Download: ExDelDomain.vbs Name : Exchange Get Queue IPs (ExQueueGetIps.vbs) Description: So you are being attacked by SPAM, well who is it? This script gets all the Originating IPs from the queue (note: its not 100% sure, because people do spoof IPs) Download: ExQueueGetIps.vbs Name: Exchange Count Log Files (ExCountLogs.vbs) Description: Counts how many log files you have in the log folder of each EVS. download: ExCountLogs.vbs Name: Exchange Defrag Online Free Space (parseDefrag) Dscription: Ever wonder how much space can you free doing a defrag offline? Well this script check all event logs (must have policy to run defrag online on) and parse all events into a simple excel. You can make nice reports of how much space "could" be saved. Download: parseDefrag.vbs Download: http://4scriptomini.4shared.com/ ******************************** Name: Terminal Server Control Sessions Description: My First .hta (yes this script has a GUI). Checks Users Sessions(conncetions), from a server.txt (list). Version 6, Fully functional, try user: all (gets all users). Requires: quser.exe (included with Windows 2003 Server) Screenshoot: Excel Output HTA GUI Source: TSControl.hta Download: TSControl.rar ******************************** Name: Login/Logout Control Descripton: Controls login/logout of all users also user from Terminal Services in any Domain Controller envoked from GPO (Group Policy) *NEW* it also insert all data into an SQL DB since this is a little more complex to setup here is the instructions Downloads:ViewLogins.rar (C#) GETLOGIND.vbs logind.bat logoutd.bat ScreenShoot P.S. Updated version has also C# code to view lastlogins (from SQL, or ACESS) check it out at http://4scriptomini.4shared.com/ Name: Login Descrption: Login that adds policy to laptop users not logged into the Domain, adds some registry keys. Download : login.vbs ******************************** Name: SQL Space Allocated Info Description: Gets SQL Database information about Database Data/Log space allocated, space unused, and free space. Downloads: getSQLinfo.vbs ******************************** Name: Logoffall TS sessions from list of servers Description: Logoff all Terminal Services connections for a specific Username, it reads a serverlist.txt. Version 3.0 (fix bugs) now disconnects even if session is idle Exemple: logoffall.vbs <username> <serverslist.txt> Download: logoffall.vbs ******************************** Name: Encrypt and Decrypt
Description: Functions to encrypt and decrypt a string, just need to pass 2 parameters to the function
Expemple: encryp strToencrypt, password
Download: cryptme.vbs ******************************** Name: Check connectivity from a List of Hosts Description: Pass a .txt file with servernames or IPs and the programs will ping those and generate a report in .txt format. Exemple: checkips.bat list.txt Download: Checkips.bat ********************************Name: Get all Hotfixes Description: Get hotfixes from a list of hostnames. Yes it works remotely. The idea behind the script was to verify if servers are on the same level of hotfix between then, unfortunally it is missing the part to compare the servers(I am currently working on it) Requires: servers.txt (list of servers) Downloads: getfix.vbs ******************************** Name: Patch Control Description: Get hotfixes from a list of hostnames.uses a MS Access DB. Original Author: Jason Condo, Edited by Me.. Date: 7/20/2007 Requires: PatchControl.mdb Downloads: PatchControl.vbs ******************************** Name: Gather Perfmon data Description: This is a simple VBS that gather Information from PERFMON counters. As a daily routine we check some perfmon counters of SQL servers and I thought interested to share... Also adopt the Timer! Yes, scriptomatic was used again and again. yes, it works for MULTIPLE remote servers, just change the arrComupters! Downloads: getperfmon.vbs ******************************** Name: Dump Eventviewer (v.4) Description: Thru a menu based allowsa user to get exactly that Event you are looking for, the script is able to go into a list of remote servers and in the end it rar and emails the file! Use option 4 (custom) It takes the following parameters, TYPE: , SOURCE, EVENT ID:, from DAYS ago: And result to be sent to emai Notes: This became a quite complex script but once setup it is really nice ! Requires: dumpel.exe del0.vb (included in dumpevt.rar) sendmail.bat Preview: dumpevt.bat Download: dumpevt.rar ******************************* Name: Get Eventviewer (vbs) Description: Get Events using dumpel.exe, send an email with a report of events monitored. Date: 24/10/07 Version: 3.0 - Working Requires: dumpel.exe Download: getEvents.vbs ******************************* Name: Get Event Viewer Errors Description: The functionallity is some what like dumpevt.bat, but this one I wrote in vbs and uses logparser to retrive and parse (SQL query) the event viewers, also supports CUSTOM event viewer, being anything different then Application, System, Security. Also sends an email and allows to check multiple servers and another advantage is flexiblity on the gather time by last 1hr etc... Requires: logparser Download: getEventErrors.vbs ******************************** Name: Check IP on many Black Lists Description: Need to find out if your SMTP servers are listed in Black Lists? This is the solution, it uses whois cmd, thx for completewhois.com (provided the list) and Alessandro Pilotti (provided the whois tool) . Requires: whois.exe Exemple: checkbl ips.txt Download: checkbl.bat whois.rar ******************************* Name: Get remote Space Drive Description: Checks HD space Remotely, pass a list.txt of servernames Example: space.vbs list.txt Download: space.vbs ******************************* Name: Send email from cmd Description: Easy to use, send an email from cmd line! Requires: febootimail febootimai Download: febootimail.rar sendmail.bat ******************************* Name: Send email from cmd v2 (VBS) Description: Uses CDO components allow 7 parameters to be passed to the function! Download: sendmail2.vbs ******************************* ALL SCRIPTS AT: http://4scriptomini.4shared.com/ |