Table of Contents
Code Snippets
Threading
Drive Map and UnMap
Text Output Functions (Colorizing for Console)
Text Output (spacing)
SQL - sGrabBetween (SubString)
A Program is trying to Sened an email on your Behalf
Outlook Version Reference
VBS - subSendEMail
PowerShell FTP and Send-ToEmail
Restart Explorer Gracefully
Create SecureString
Grab Between in String
Find a string by using a Predicate (ie for String(Of) )
Read File Contents (Text) at once
Class clsClearHistories
Read an Event Viewer Key that is not the traditional, but in the Windows structure
Example of Working with the Event Logs
Read HKCU for info
Convert SID to User (sAMAccountName)
Convert User (sAMaccountName) to SID
CopyKey and RecurseCopyKey Registry Key copies
Running program in Explorer (detect)
Command Line Arguments
Console Cancel Key Press (CONTROL+C/Break)
Unix Times (From, To, and Epoch)
WriteFile
Query Logged on users on a Server (query logon /server:..)
Uptime with PerformanceCounters
Valid_Ping
AD Group member Add/Remove, Other useful snippets for AD
Fill Combobox fast with a Adapter fill
KeyboardHook.vb
Random Number Function in Range
Disk Info
Uptime for a server
Example of File Version comparison
Screen and Mouse Movement Mods
Impersonation
Run Remote Process (VBNet + WMI)
MSSQL Database INSERT, DELETE, and SELECT
Services - Get State
Outlook Automation of PSTs and Stores
Outlook VSTO
Button click to manipulate current/active email
Sorting Outlook Emails into Subfolders
Send a fax (example of manipulating To line)
Center for to Screen or Parent Window
Covert Spreadsheet (xls) to CSV at command line
MS Access on Task Scheduler
Linux Stuff
.screenrc
.bashrc (addition)
MSDOS
Init for CMD