Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
; 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 - 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
:: 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
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"
sc config "VMwareHostd" start= disabled
sc config "VMware NAT Service" start= disabled
sc config "VMUSBArbService" start= disabled
sc config "VMnetDHCP" start= disabled
sc config "VMAuthdService" start= disabled
net stop "VMwareHostd"
net stop "VMware NAT Service"
net stop "VMUSBArbService"
net stop "VMnetDHCP"