Tuesday, November 14, 2017

 

[WSUS] WSUSContent folder 변경하기



Change WSUSContent folder





[Explanation]

WSUS 구성시 초기 설정한 WSUS Content 폴더를 용량 부족 등의 이유로 다른 드라이브로 변경해야 하는 경우가 있습니다. 이럴 때 재구성을 하기보다 하기 명령어를 실행하시면 간편하게 변경이 가능합니다.
우선, CMD(명령프롬프트)를 관리자 권한으로 실행하시고 하기 명령어를 입력하셔서 wsusutil.exe가 있는 폴더 경로로 이동합니다. 
C:\Windows\system32>Cd c:\Program Files\Update Services\Tools\
그런 다음에 하기 명령어를 이어서 입력합니다. 여기서 'D:WSUS'은 변경하고자 하는 폴더 경로를 입력하시고, 'D:move.log'는 금변 변경작업에 대한 로그를 남기는 위치입니다. 
wsusutil.exe movecontent D:WSUS(변경주소) D:move.log(작업로그)
저의 경우는 아래와 같이 명령어를 입력하였습니다. 
c:\Program Files\Update Services\Tools>wsusutil.exe movecontent E:\WSUS\WsusContent E:\WSUS\WsusContent\move.log 

그러면 아래와 같이 작업에 대해 결과를 기다린 다음에 해당 작업 로그를 확인해보겠습니다. 
Content location is being moved. Please do not stop this program.Content move has successfully finished. 

작업 로그를 보니 WsusService 중지 및 재시작은 물론 실제 WSUS Configuration 정보도 정상적으로 변경 완료하였습니다. 

  • 2017-10-30T06:23:12 Successfully stopped WsusService.
  • 2017-10-30T06:23:12 Beginning content file location change to E:\WSUS\WsusContent
  • 2017-10-30T06:25:14 Successfully copied content files.
  • 2017-10-30T06:25:14 Successfully copied application files.
  • 2017-10-30T06:25:14 Successfully changed WUS configuration.
  • 2017-10-30T06:25:14 Successfully changed IIS virtual directory path.
  • 2017-10-30T06:25:15 Successfully removed existing local content network shares.
  • 2017-10-30T06:25:15 Successfully created local content network shares.
  • 2017-10-30T06:25:15 Successfully changed registry value for content store directory.
  • 2017-10-30T06:25:15 Successfully changed content file location.
  • 2017-10-30T06:25:17 Successfully started WsusService.
  • 2017-10-30T06:25:17 Content integrity check and repair...
  • 2017-10-30T06:25:17 Initiated content integrity check and repair.

그리고 아래 화면을 실제 경로가 변경된 Wsus Content 경로에서 옮겨진 패치정보를 확인할 수 있습니다. 



♔♔♔♔♔♔♔♔♔♔

댓글이나 의견은 언제든지 환영합니다.

Your Comments are Always Welcome!
Share:

0 comments:

Post a Comment