[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Handy Dandy Script-a-roonie!
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 25
Thread images: 1
File: Spool.png (4 KB, 221x136) Image search: [Google]
Spool.png
4 KB, 221x136
Sup, /g/!
What's in your handy dandy help desk script folder?
>>
what that do?
>>
>>54506564
%0|%0
>>
>>54506564
FUCKING PRINTERS
>>
echo "NIGGERNIGGERNIGGER"
slmgr /rearm
>>
>>54506586
Restarts the print spooler. 9/10 this will fix print issues and you can hand this out to avoid call backs.
>>
>>54506564
@echo off
set /p nameofhost=Input Host:
set /p nameofport=Input Port:
:a
nc -z -v %nameofhost% %nameofport%
timeout /t 2
goto a
>>
>>54506657
`nc` is not recognized as an internal or external command,
operable program or batch file.
>>
@echo off

setlocal EnableDelayedExpansion

for /R %%x in (*.*) DO (
move "%%x" "%%x"/../..
)

for /F %%i in ('dir /b "%cd%\*.*"') DO (
for /D %%d in (*) do rd "%%~d"
)
>>
>>54506564
I'm getting flashbacks of corrupt printer drivers who's making the spooler shut down every time.

Fuck Windows.
>>
>>54506615
>9/10 this will fix print issues
What kind of retarded print issues do you have?
At my shop, the dumb fuckers replaced printers with different models and kept the same fucking hostnames because "that way no one has to change printers." We had to manually go to every fucking computer and remove the printer driver folder because Ricoh's shitty fucking drivers made the spooler crash when you tried to do anything printer related.
>>
>>54506615
why are your users using the local spooler instead of rendering print jobs directly on the printserver?
>>
>>54506564
DONT DO THIS IT MAKES MUSTARD GAS
>>
>>54506605
You owe me a new coffee, as I just spit mine out.
>>
>>54507871
>corrupt printer drivers
>fuck windows
jej

also
>*nix
>drivers
>>
ipconfig /release 
pause
ipconfig /renew
pause
netsh winsock reset catalog
pause
netsh int ip reset reset.log
pause


Sometimes my network driver goes crazy and I get DPC latencies of 8ms-30ms, every time a program does some networking. This script helps.
>>
Noob question here,
Where do you put these scripts to execute them?
>>
>>54510320
Anywhere
>>
@echo off
set total=137
set amount=263
:percentcalc
cls
set /a amount+=1
set /a percent=(amount*100)/total
echo [%amount%/%total%] [%percent%%%]
title [%amount%/%total%] [%percent%%%]
goto percentcalc
:end
echo.
echo Done.
pause > nul
exit
>>
>>54506615
>9/10 this will fix print issues
I would agree until I got that 1/10.
>>
Why are you using scripts, it's like you want to lose your job.
>>
foreach($drive in gdr -psprovider filesystem){
try{
gci "$($drive.name):\`$Recycle.Bin" -force -recurse -erroraction silentlycontinue|
?{$_.lastwritetime -lt (get-date).adddays(-2)}|
rm -recurse
}catch{}
}

Removes files that are older than 2 days from recycle bin
>>
>>54510378
>starts a number as 263
>shows how much it is as a % compared to 137
>adds 1 to number
>over and over
For what fucking purpose?
>>
save as fuk.bat
@echo off
:1:
copy fuk.bat nigr%random%.dll
goto :1:
>>
Add this to macinit.bat
CD=echo off$tcd $*$ttitle %CD%$techo on
POPD=echo off$tpopd $*$ttitle %CD%$techo on
PUSHD=echo off$tpushd $*$ttitle %CD%$techo on

A:=echo off$tA:$ttitle %CD%$techo on
B:=echo off$tB:$ttitle %CD%$techo on
...
Z:=echo off$tZ:$ttitle %CD%$techo on


Then add this to your cmdinit.bat
doskey /macrofile=%UserProfile%\macinit.ini


Now your command prompts are titled after their current directories.
Thread replies: 25
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.