Last active
January 8, 2021 20:24
-
-
Save lukeawyatt/22c1924d5f78fb5777b39c6dbcff2cbd to your computer and use it in GitHub Desktop.
Shell: Batch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net statistics workstation | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Process loop! | |
:Hell | |
start cmd /c "./WinUtils.ProcessLoop.bat" | |
GOTO Hell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runas /user:local\administrator | |
@echo off | |
ping -n 1 127.0.0.1 | find "TTL" | |
if errorlevel 1 ( | |
ipconfig /release | |
ipconfig /renew | |
ipconfig /flushdns | |
ipconfig /registerdns | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runas /user:local\administrator | |
@echo off | |
title NETWORK RESET SCRIPT | |
:prompt | |
color 1f | |
cls | |
echo NETWORK RESET SCRIPT | |
echo. | |
echo Type r to Reset Network | |
echo Type p to do a ping test | |
echo Type c to go to Command Prompt | |
echo Type q to exit | |
set /p answer= | |
if ‘%answer%’ == ‘r’ goto test | |
if ‘%answer%’ == ‘R’ goto test | |
if ‘%answer%’ == ‘C’ goto cmd | |
if ‘%answer%’ == ‘c’ goto cmd | |
if ‘%answer%’ == ‘q’ goto quit | |
if ‘%answer%’ == ‘Q’ goto quit | |
if ‘%answer%’ == ‘P’ goto ping | |
if ‘%answer%’ == ‘p’ goto ping | |
pause >nul | |
:test | |
cls | |
echo —————————————————- | |
echo – RELEASING IP…. - | |
echo —————————————————- | |
ipconfig /release >nul | |
echo. | |
echo Done! | |
echo. | |
echo —————————————————- | |
echo – RESETTING IP LOG… - | |
echo —————————————————- | |
@netsh int ip reset C:\Windows\TEMP\IPRESETLOG.txt >nul | |
echo. | |
echo Done! | |
echo. | |
echo —————————————————- | |
echo – FLUSHING ARP TABLES… - | |
echo —————————————————- | |
@arp -d >nul | |
echo. | |
echo Done! | |
echo. | |
echo —————————————————- | |
echo – FLUSHING DNS… - | |
echo —————————————————- | |
@ipconfig /flushdns >nul | |
echo. | |
echo Done! | |
echo. | |
echo —————————————————- | |
echo – RENEWING IP… - | |
echo —————————————————- | |
@ipconfig /renew >nul | |
echo. | |
echo Done! | |
echo. | |
cls | |
echo —————————————————- | |
echo Heres Your Status: - | |
echo —————————————————- | |
ipconfig /all | |
echo. | |
echo Press Any Key to Go To Menu | |
pause >nul | |
goto prompt | |
:ping | |
cls | |
echo —————————————————- | |
echo Starting Ping Test… - | |
echo —————————————————- | |
echo. | |
ping google.com | |
echo. | |
echo Press Any Key to goto MENU | |
pause >nul | |
goto prompt | |
:quit | |
cls | |
echo Thanks For Using The Network Reset Script | |
pause | |
exit | |
:cmd | |
@color 7 | |
cls | |
cmd | |
@echo on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net stop vmms | |
net start vmms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment