Skip to content

Instantly share code, notes, and snippets.

@echo off
setLocal EnableDelayedExpansion
REM set /p X=how many time do you want to run
set X=10
set N=0
:loop
if !N! gtr !X! goto :eof
net stop "Application Layer Gateway Service"
net stop "Cryptographic Services"
net stop "Error Reporting Service"
net stop "Help and Support"
net stop "Indexing Service"
net stop "IMAPI CD-Burning COM Service"
net stop "Media Center Extender Service"
net stop "Media Center Receiver Service"
net stop "Media Center Scheduler Service"
net stop "Remote Registry"
^+c::
if macon {
SetTimer, AttackSeq1, off
SetTimer, Bar1, off
SetTimer, Bar2, off
SetTimer, Bar3, off
SetTimer, Bar4, off
SetTimer, Bar5, off
SetTimer, Bar6, off
SetTimer, Bar7, off
$printers = Get-Printer
$xl = New-Object -ComObject Excel.Application
foreach ($printer in $printers) {
(New-Object -ComObject WScript.Network).SetDefaultPrinter($printer.name)
$xl = New-Object -ComObject Excel.Application
$xl.Visible = $false
$xl.ActivePrinter
}
$xl.quit()