Table of Contents
Code Snippets
Threading
Drive Map and UnMap
Text Output Functions (Colorizing for Console)
Text Output (spacing)
Create Text as an Image on the fly and add to control
SQL - sGrabBetween (SubString)
Split String into n- number of characters per line
A Program is trying to Send an email on your Behalf
Outlook Version Reference
VBS - subSendEMail
PowerShell FTP and Send-ToEmail
VB.NET - Send Email
Restart Explorer Gracefully
Create SecureString
Grab Between in String
Remove Special Chars from String (Example)
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
IP Check RegEx (VBscript)
Remove HTML characters from string
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)
Example of going through all Recipients in ItemSend() method
Center for to Screen or Parent Window
Covert Spreadsheet (xls) to CSV at command line
MS Access on Task Scheduler
RDS Get Users (non RDP users)
Remove Domain Name (NetBIOS) dynamically
Ini File Manipulation
Edit Cells in ListView
Linux Stuff
.screenrc
.bashrc (addition)
Find most recent modified files
MSDOS
Init for CMD