예전의 방법
오피스 2013 KMS가 설치된 AD환경 사용자들 중
2013이 설치된 컴퓨터들이 있는 OU에만
다음의 GPO를 적용했다.
(Computer - Policies - Windows Settings - startup script)
kms.bat
cd C:\Program Files\Microsoft Office\Office15\
cscript ospp.vbs /act
개선된 방법
if문을 활용해서 2013이 설치되지 않은 사용자들 상관없이 모든 OU에 대해 적용
scheduled task를 통해 로그온시 한번만 실행할 수 있도록 하기
배치파일자체는 스크립트를 사용해서 더 스마트한 코드를 구현
kms.bat
@echo off
set ospp="C:\Program Files\Microsoft Office\Office15\ospp.vbs"
if exist %ospp% (
cscript %ospp% /act
)
오피스 2013 KMS가 설치된 AD환경 사용자들 중
2013이 설치된 컴퓨터들이 있는 OU에만
다음의 GPO를 적용했다.
(Computer - Policies - Windows Settings - startup script)
kms.bat
cd C:\Program Files\Microsoft Office\Office15\
cscript ospp.vbs /act
개선된 방법
if문을 활용해서 2013이 설치되지 않은 사용자들 상관없이 모든 OU에 대해 적용
scheduled task를 통해 로그온시 한번만 실행할 수 있도록 하기
배치파일자체는 스크립트를 사용해서 더 스마트한 코드를 구현
kms.bat
@echo off
set ospp="C:\Program Files\Microsoft Office\Office15\ospp.vbs"
if exist %ospp% (
cscript %ospp% /act
)
'OS > Windows' 카테고리의 다른 글
AD GPO로 Task Scheduler 로 batch 백그라운드로 사용하기 (0) | 2017.08.31 |
---|---|
[batch스크립트]현재날짜와 PC 부팅 날짜 차이 계산하기 (0) | 2017.08.30 |
WSUS 이슈 : Clients cause the WSUS App Pool to become unresponsive with HTTP 503 (0) | 2016.12.29 |
2012 R2 WSUS 구축기 (2) | 2016.10.27 |
표준이미지 Office 2013 설치시 작업 스케줄러 오류 (0) | 2016.10.04 |