Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
@echo off
REM AWFOS v5.x Backup Script by mark@???? | Feb 2019
REM Requires ShadowSpawn [https://github.com/candera/shadowspawn/downloads] for online backup
REM Requires 7zip [https://www.7-zip.org/download.html] for archiving backup
REM Requires MSSQL osql [https://docs.microsoft.com/en-us/sql/tools/osql-utility?view=sql-server-2014] for db backup
REM Note 1: special quote sequence for variables that contain spaces
REM Note 2: this only works for stand-alone/consolidated solution
@echo on
set "backup-path-1=D:\Program Files (x86)\Avaya"
@mark05e
mark05e / Display-InstalledJavaVersions.ps1
Created March 4, 2019 06:52
To display all installed Java versions using powershell
# Reference: https://www.experts-exchange.com/questions/28995393/check-java-version-using-powershell.html
'', 'Wow6432Node\' |
ForEach-Object {Get-ItemProperty -Path HKLM:\SOFTWARE\$($_)Microsoft\Windows\CurrentVersion\Uninstall\* |
Where-Object {($_.DisplayName -like '*Java *') -and (-not $_.SystemComponent)} |
Select-Object DisplayName, DisplayVersion, InstallLocation, @{n='Architecture'; e={If ($_.PSParentPath -like '*Wow6432Node*') {'x86'} Else {'x64'}}}}
; by GeekDude - https://www.autohotkey.com/boards/viewtopic.php?t=5099
Gui,-Caption ; make it borderless
Gui, Add, ActiveX, w100 h150, mshtml:<img src='http://www.animatedgif.net/cartoons/A_5odie_e0.gif' />
Gui, Show
esc::ExitApp
#OpenJDK - https://jdk.java.net/11/
https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_windows-x64_bin.zip
#Jython - 2.7
https://repo1.maven.org/maven2/org/python/jython-standalone/2.7.1/jython-standalone-2.7.1.jar
#SikuliX1 - 1.1.4 - https://raiman.github.io/SikuliX1/downloads.html
https://raiman.github.io/SikuliX1/sikulix.jar
#Put all these into a folder.
REM CreateLogFolderWithEventLogs.bat
REM ******************************************************
REM SCRIPT TO CREATE LOGS FOLDER ON DESKTOP w/ Event Logs
REM ******************************************************
REM by Mark
@echo off
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%"
:: Export Windows System and Application Logs - Evtx format
SET LOG_STORE_PATH=c:\temp\EventLogs
wevtutil export-log System %LOG_STORE_PATH%\sys.evtx
wevtutil export-log Application %LOG_STORE_PATH%\app.evtx
:: Export Windows System and Application Logs - Text file
SET LOG_STORE_PATH=c:\temp\EventLogs
wevtutil query-events Application /f:text>%LOG_STORE_PATH%\app.txt
wevtutil query-events System /f:text>%LOG_STORE_PATH%\sys.txt
sc config "VMwareHostd" start= auto
sc config "VMware NAT Service" start= auto
sc config "VMUSBArbService" start= auto
sc config "VMnetDHCP" start= auto
sc config "VMAuthdService" start= auto
net start "VMwareHostd"
net start "VMware NAT Service"
net start "VMUSBArbService"
net start "VMnetDHCP"
cd /d "L:\Program Files (x86)\VMware\VMware Workstation"
vmrun list
start vmrun start "L:\VMs\Windows 10 x32\Windows 10 x32.vmx"
cd /d "L:\Program Files (x86)\VMware\VMware Workstation"
vmrun list
for /f "tokens=* skip=1" %%a in ('vmrun list') do vmrun suspend "%%a"