µµ¸ÞÀγ» ¸ðµç ¼­ºñ½ºÀÇ ¾ÏÈ£ º¯°æÇϱâ
°Ô½ÃÀÏ: 2002/01/05 | ±Û¾´ÀÌ: doa | 4971 ¹ø | ÇÁ¸°Æ® | ¸ÞÀÏ


µµ¸ÞÀγ»ÀÇ ¿©·¯ ÄÄÇ»ÅÍ¿¡¼­ DomainName/UserName ȯ°æÀ¸·Î ±âµ¿ÇÏ´Â ¼­ºñ½º°¡ Á¸ÀçÇÑ´Ù¸é DomainName/UserNameÀ» ´Ù½Ã ¼³Á¤ÇÏ´Â °ÍÀº »ó´çÈ÷ Áö·çÇÑ ÀÏÀÏ °ÍÀÌ´Ù.

¸®¼Ò½º Ŷ ÀÇ NETSVC¿Í SC¸¦ »ç¿ëÇÏ°í ´ÙÀ½ ¹èÄ¡ÆÄÀÏÀ» °æ·Î³»¿¡ µÒÀ¸·Î¼­ ÀÌ·¯ÇÑ °úÁ¤À» ¸ðµÎ ÀÚµ¿È­ÇÒ ¼ö ÀÖ´Ù.

SetSvcPw.bat

@echo off
@echo SetSvcPw %1 %2 %3
if exist %1 goto OK
:bad
@echo Syntax: SetSvcPw "\ComputerName.txt" DomainName\UserName password
goto end
:OK
if .%2.==.. goto bad
if .%3.==.. goto bad
for /f %%i in ('type %1') do call :setsvcpws %%i %2 %3
goto end
:setsvcpws
if exist  %temp%\NETSVC.LOG del /f /q %temp%\NETSVC.LOG 
for /f "Tokens=1,2* Delims=," %%a in ('netsvc \%1 /list') do echo %%b  %TEMP%\netsvc.log
for /f  %%s in (%TEMP%\netsvc.log) do call SetSvcPwT %%s %1 %2 %3
if exist  %temp%\NETSVC.LOG del /f /q %temp%\NETSVC.LOG 
:end


SetSvcPwT.bat
@echo off 
if "%1"=="ECHO" goto end
for /f  "Tokens=1,2,3* Delims= " %%i in ('sc \%2 qc %1')  do call :user %%k %1 %2 %3 %4
goto end
:user
if /i  NOT "%1"=="%4" goto end
echo \%3 %2 %4 %5
sc \%3 stop %2
sleep 4
sc \%3 config %2 obj= %4 password= %5
sc \%3 qc %2
sc \%3 start %2
:end


ÀÌ ÆÄÀÏÀ» ½ÇÇàÇÏ°í °á°ú¸¦ ±â·ÏÇϱâ À§ÇØ ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÑ´Ù.

<STRONG>SetSvcPw "\ComputerName.txt" DomainName\UserName password 
		"\SetSvcPw.log" 2&1</STRONG>


¿©±â¼­ "\\ComputerName.txt"´Â µµ¸ÞÀÎ ³»ÀÇ ÄÄÇ»ÅÍÀÇ À̸§ ¸ñ·Ï(µµ¸ÞÀÎ ±¸¼º¿øÀÇ ÄÄÇ»ÅÍ À̸§ ¸ñ·Ï »ý¼ºÇϱâÀ» º»´Ù)À» Æ÷ÇÔÇÑ´Ù.

"\\ComputerName.txt"ÀÇ Çü½ÄÀº ´ÙÀ½°ú °°´Ù.

ComputerName1
ComputerName2
. . . . . . . . . . . .
ComputerName<STRONG>n</STRONG>


¶°µ¹ÀÌ ÇÁ·ÎÆÄÀÏ <¿À·ù #> ¶°µ¹ÀÌ ÇÁ·ÎÆÄÀÏÀ» °¡Áö°í ÀÖ°í Windows NT·ÎºÎÅÍ ·Î±×ÀÎ ÇÒ... (4249) 2002-01-05
¹èÄ¡ÆÄÀÏÀ̳ª ¸í·ÉÇà¿¡¼­ À̺¥Æ® ±â·Ï Áö¿ì±â ClearElÀº ¹Ù·Î°¡±â, ¸í·ÉÇà, ¹èÄ¡ÆÄÀÏ·Î... (4455)2002-01-05

QAOS.com¿¡ °Ô½ÃµÈÁö 1³â ÀÌ»óµÈ ÀÚ·á¿Í °ü¸®ÀÚ°¡ °ø°³ÇÑ ÀÚ·á´Â ´©±¸³ª Á¦ÇѾøÀÌ ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù.
±×·¯³ª QAOS.comÀÇ ÀڷḦ ÆÛ°¡´Â °ÍÀº ±ÝÁöÇϰí ÀÖ½À´Ï´Ù.

ÀÌ Á¤º¸°¡ À¯¿ëÇÏ´Ù°í »ý°¢µÇ½Ã¸é QAOS.com°ú ¸¹Àº ´Ù¸¥ »ç¶÷µéÀ» À§ÇØ ÆÛ°¡±â º¸´Ù´Â ¸µÅ©·Î ¾Ë·ÁÁֽñ⠹ٶø´Ï´Ù.

¼¼»ó»ç´Â À̾߱â



RSS ±¸µ¶ (À͸í | ȸ¿ø | °­Á | Æ÷·³)
(C) 1996 ~ 2017 QAOS.com All rights reserved.