본문 바로가기

Windows Server

Active Directory 메일 속성 업데이트(Powershell)

반응형

Active Directory Powershell 모듈을 아래의 명령어를 통해 설치하고 나면,  Exchange 관리 Console에 대한 설치 없이도 직접적으로 Mail 속성 값들을 업데이트할 수 있다.

 

import-module ActiveDirectory

 

Primary Mail 속성 업데이트 방법

 - Set-ADUser -Identity "계정명" -EmailAddress "메일주소"

 

메일 속성 Clear 방법 

- Set-ADuser -identity "계정명" - EmailAddress $null 

 

ProxyAddresses 속성에서 secondary smtp 제거 방법

- Set-ADuser -identity "계정명" -remove @{proxyAddresses="smtp:메일주소"}

 

ProxyAddresses 속성에서 secondary smtp 추가 방법

- Set-ADuser -identity "계정명" -add @{proxyAddresses="smtp:메일주소"}

 

Target Address 속성 추가 방법

- Set-ADuser -identity "계정명" -replace @{targetaddress="SMTP:메일주소"}

 

ExtensionAttribute 속성 추가 방법

- Set-ADuser -identity "계정명" -replace @{ExtensionAttribute1="test"}

 

ProxyAddresses 속성 Clear 방법 

- Set-ADuser -identity "계정명" -clear proxyAddresses

 

 

반응형