Skip to content

Commit d0a7290

Browse files
authored
Create pnp.bat
1 parent 7ab92ad commit d0a7290

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

scripts/pnp.bat

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
pnputil /enum-devices /class Display | findstr "ID da Instância"
2+
@echo.
3+
@echo.
4+
set/p ID= Coloque a ID da Instancia:
5+
@echo.
6+
@echo.
7+
pnputil /restart-device "%ID%"
8+
9+
@echo.
10+
set /p reiniciar= escolha uma opcao:
11+
@echo.
12+
if %reiniciar% equ s goto reiniciars
13+
if %reiniciar% equ n goto reiniciarn
14+
15+
if %reiniciar% equ nul (
16+
@echo.
17+
@echo Escolha uma opcao!
18+
@echo.
19+
@pause
20+
) else (
21+
color 2
22+
@echo.
23+
@echo Opcao invalida!!
24+
@echo.
25+
@pause
26+
exit
27+
)
28+
29+
:reiniciars
30+
31+
shutdown /r /c "O chefe mandou, vá descansar"
32+
33+
:reiniciarn
34+
35+
exit

0 commit comments

Comments
 (0)