본문 바로가기
기술자료 (KB)/Active Directory (AD)

클라이언트에 강제 메시지 전송

by 이완주 2021. 7. 13.

 

터미널 서버 명령: MSG

https://docs.microsoft.com/ko-kr/troubleshoot/windows-server/remote/terminal-server-commands-msg

      

msg * /server:192.168.100.120 "보내고자 하는 메시지를 여기에 적으세요..."

 

AD에서 Powershell 명령어로 아래와 같이 보내면 됩니다. 해당 OU 밑의 컴퓨터에게 일괄 발송되게 됩니다.

  

"dc=gsoft,dc=local"   이 값은 실제 고객 DN 값을 넣어야 합니다.

 

DN에 대하여서는 저에게 물어보시면 자세히 설명 드리도록 하겠습니다.

(Get-ADComputer -SearchBase "dc=gsoft,dc=local" -Filter *).Name | Foreach-Object {
        msg * /server:$_ "보내고자 하는 메시지를 여기에 적으세요..."
    }

 

댓글