반응형 PowerShell9 Powershell - Exchange 메일 추척 익스체인지(Exchange) 서버에서는 관리 도구에서 사용자가 전송한 메일 추적이 가능하다. 메일 추적이 중요한 이유는 특정 사용자의 장애상황이거나, 특정 사용자가 어떤 메일을 전송하였는지 감사할 때 유용하다. 만약 보안 사고가 발생하였고, 특정 유저의 계정이 해킹되어 사용되었다면, 메일을 통해 외부로 전송한 정보들이 존재하지 않은지 확인할 필요가 있겠다. 익스체인지에서는 메일 추적을 위해 GUI 도구도 제공하지만 입력 부분이 많고, 익숙하지 않아 시간이 걸리므로, 가독성이 좋은 CLI 도구인 Powershell을 사용하여 파일로 저장시키는 방법이 유용하다. 다음 명령을 통해 SEND라는 이벤트에 대한 특정 날짜 범위의 값을 파일로 추출 할 수 있다. get-messagetrackinglog -Event.. 2022. 4. 15. 파워쉘(Powershell) - 기본 사용법 파워쉘(Powershell) 역시 윈도우 관리 언어로 유용한 기능들을 다수 제공한다. 탄생 배경은 기존 쉘 명령은 간단한 실행 프로그램(예: Attrib.exe)에서부터 매우 복잡한 실행 프로그램(예: Netsh.exe)까지 그 범위가 개별적으로 존재하고 다양하여, 많은 시스템 관리자들이 어려워했다(존재 자체를 모르는 엔지니어도 많았다). 이를 위해 마이크로소프트에서 인프라 관리를 일관성 있게 관리할 수 있도록 개발된 Cmdlet(Command-let)이라는 명령어를 만들었고, 이를 파워쉘이라 불렸다. WMI는 자동화 작업을 위한 스크립트쪽 언어라면, 파워쉘을 관리자들이 바로 사용할 수 있는 명령어 기반의 언어라 할 수 있겠다. 파워쉘은 개체를 조작하는 단일 기능 명령으로, Windows, Linux 및.. 2022. 4. 6. Set-ExecutionPolicy - pssecurityexception unauthorized access When I try to use Azure Powershell, I see that it does not run with a pssecurity exception error. This can be resolved by changing the security settings. First, the command to check the currently set value is Get-ExecutionPolicy. To execute the Azure power cell command, set ExecutionPolicy to RemoteSigned by using Set-ExecutionPolicy and configure to enable remote authentication. As shown in the.. 2020. 12. 2. Powershell Hacking Script and Study There seems to be a lot of attacks using Powershell recently. You can see various attack codes such as various backdoor and Credentials stealing by using Powershell. https://github.com/samratashok/nishang I hope you can study this because you can build defense logic through understanding the ways of using Powershell. Also, there are lots of tricks and useful tips on blogs run by Github owner bel.. 2020. 11. 3. Powershell - Show Organizer of office 365 Meeting Room mailbox 오늘은 함께 Office365의 Meeting Room 메일박스의 일정에서 제목과 요청자를 볼 수 있는 방법을 알아보도록 하겠습니다. 먼저 파워쉘(Powershell)을 관리자 권한으로 실행합니다. 그리고 현재 Office 365 관리자 권한이 있는 인증 권한을 Credential를 이용해서 저장해 놓습니다. $credObject = Get-Credential 저장한 Credential를 이용하여 Office 365에 연결합니다. $ExchOnlineSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $credO.. 2020. 10. 29. POWERSHELL 7.0 - Cross-platform 지원 PowerShell 7.0 공개 2020년 3월 4일 Joey Aiello PowerShell PM은 PowerShell 7.0을 공개하였습니다. 아래 글을 보면 주요한 특징과 우수성을 설명을 잘 확인 할 수 있습니다. https://devblogs.microsoft.com/powershell/announcing-powershell-7-0/ 중요 특징으로는 PowerShell 7은 여러 운영체제를 지원하는 스크립트/cmdlet 실행 기반의 언어로, 하나의 언어로 cross-platform 을 지원하는게 된 것을 알 수 있습니다. 새로운 내용은 아래에서 세부적으로 설명합니다. 새로운 기능 https://docs.microsoft.com/en-us/powershell/scripting/whats-new/wh.. 2020. 10. 20. POWERSHELL - SHOW ORGANIZER OF OFFICE 365 MEETING ROOM MAILBOX 오늘은 함께 Office365의 Meeting Room 메일박스의 일정에서 제목과 요청자를 볼 수 있는 방법을 알아보도록 하겠습니다. 먼저 파워쉘(Powershell)을 관리자 권한으로 실행합니다. 그리고 현재 Office 365 관리자 권한이 있는 인증 권한을 Credential를 이용해서 저장해 놓습니다. $credObject = Get-Credential 저장한 Credential를 이용하여 Office 365에 연결합니다. $ExchOnlineSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $credO.. 2020. 10. 6. POWERSHELL – CREATE EXCHANGE ROOM LIST DISTRIBUTION GROUP When you start to make New Meeting on your Exchange Online (Office 365) or Outlook Live, You can choice meeting room of Room List Distribution Groups. Room Finder simplifies the process of searching for an available room while setting up a meeting. It can be very useful if you have a lot of meeting rooms, or if you have multiple locations. New-DistributionGroup Powershell full list of parameters.. 2020. 10. 6. POWERSHELL- WINDOWS 2019 CORE JRE/JDK INSTALL youtu.be/f2VI_TV8M4g Windows 2019의 경우 Core 모드로 Not GUI를 통해 최적화 하여 이용할 수 있다. 여기에 요즘 Spark 환경에 필수인 Java를 CLI로 설치해보자. 먼저 Powershell을 실행하자 그리고 Invoke-WebRequest를 통해 다운로드 주소와 저장할 위치를 지정합니다. JAVA Download Invoke-WebRequest -Uri "https://asecurity.dev/pds/jre-8u241.exe" -Outfile "C:\Users\Administrator\Documents\jre-8u241.exe" 이제 java 를 자동으로 설치할 수 있는 /s 옵션을 통해 설치를 진행합니다. 아래 링크를 확인하면 무인으로 설치할 수 있는 옵션을 확.. 2020. 10. 6. 이전 1 다음 반응형