컴퓨터 이름 변경하는 배치파일
- 컴퓨터 정보/컴퓨터 활용
- 2022. 2. 21. 10:06
@echo off
prompt $p$g
setlocal
:message
set /p comname=## Computer Name ## =
set /p username=## UserAccount ## =
if /i [%comname%]==[] goto error
if /i [%username%]==[] goto error
wmic computersystem where caption="%computername%" call rename name=%comname%
wmic UserAccount where Name="helper" call Rename Name=%username%
pause > nul
goto end
:error
echo error
pause > nul
goto end
:end
exit
shutdown.exe /s /t 0
'컴퓨터 정보 > 컴퓨터 활용' 카테고리의 다른 글
vbs 메세지 줄바꿈 (0) | 2022.09.05 |
---|---|
원격데스크탑 사용시 작업관리자 여는 방법 (0) | 2022.08.09 |
PC방에서 .eml 파일 보기 (0) | 2022.02.17 |
관리도구 실행에서 명령어로 바로 실행가능한 명령어 (0) | 2021.10.16 |
administrator 계정 활성화하는 방법 (0) | 2021.08.18 |
이 글을 공유하기