Windows Server 2012 R2: PowerShell 스크립트를 작업 스케줄러에서 동작시키기

출처: <https://community.spiceworks.com/how_to/17736-run-powershell-scripts-from-task-scheduler>

위 방법대로 하니 잘 동작함. 필독.

clip_image001

5분마다 Skype for Business Server의 상태 보고서를 작성해 메일로 보냄. https://blogs.msdn.microsoft.com/canberrapfe/2014/12/11/lync-server-2013-health-check-script/ 에서 다운로드 가능.

자세한 사항은 아래와 같다.

clip_image002

일반

clip_image003

트리거

clip_image004

프로그램 시작

clip_image005

동작 속성

프로그램/스크립트

Powershell

인수 추가

-ExecutionPolicy Bypass “.\SystemStatus.1.01.ps1 -Action status -ServerFile c:\scripts\systemstatus\servers.txt -PoolName skype1.archmond.kr -SendEmail $true -Environment archmond -EventData $True” -RunType $true -Path C:\Users\skyadmin\Desktop

시작 위치

C:\Users\skyadmin\Desktop

clip_image006

비밀 번호를 저장하면 OK.

이것도 살펴보세요!

메인 컴퓨터 윈도우 재설치: 프로그램 설치용 winget 스크립트, 그 외 프로그램들(기록용)

마이크로소프트365https://office.com Hyper-V 설치 via. https://learn.microsoft.com/ko-kr/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All 윈겟(Winget) 프로그램 자동 설치 스크립트 …

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다