17 lines
618 B
Plaintext
17 lines
618 B
Plaintext
|
|
https://urban1980.tistory.com/42
|
||
|
|
|
||
|
|
0. Powershell 3.0이상설치
|
||
|
|
|
||
|
|
1. 관리도구>로컬보안정채ㅐㄱ>보안설정>로컬정책>사용자권한할당>일괄작업으로로그온에 예약>계정등록
|
||
|
|
|
||
|
|
2. url호출powershell스크립트 생성 url변경해야함
|
||
|
|
$url = "http://118.219.255.186/Account/Status335?sss=ynpartners123"
|
||
|
|
$request = [System.Net.WebRequest]::Create($url)
|
||
|
|
$response = $request.GetResponse()
|
||
|
|
$response.Close()
|
||
|
|
|
||
|
|
3. shellscript호출용 batch파일생성
|
||
|
|
@echo off
|
||
|
|
PowerShell.exe -noprofile -executionpolicy bypass -FILE "?:\?\ynpstatus335.ps1"
|
||
|
|
|
||
|
|
4. 작업스케쥴러 등록
|