![[파워쉘]실행 권한 예외처리](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F6WCjv%2FbtrCajQ5Ur9%2FN8cKgpRqhE6o9f68aHKTlk%2Fimg.png)
# powershell -ExecutionPolicy ByPass -File [파워쉘파일]
![[파워쉘]텔레그램 푸시](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FoNlOk%2FbtrCiaE7hdy%2FWhEfBDAwdEwZ0E6DCjXe1k%2Fimg.png)
아래 내용 test.ps1로 저장 $token = "#########################" $chatId = "################" $message = $args Invoke-RestMethod -Uri "https://api.telegram.org/bot$token/sendMessage?text=$message&chat_id=$chatId" 실행 powershell -executionpolicy bypass test.ps1 테스트~~~
![[vmware]powercli-6.5.1설치](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbDcQCK%2FbtrCAxO0aNk%2FBYYlaOaXx4s7s41qk4oiaK%2Fimg.jpg)
https://blogs.vmware.com/PowerCLI/2017/05/powercli-6-5-1-install-walkthrough.html
![[파워쉘]파일 마지막 쓰기한 날짜변경](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FJXDaR%2FbtrCiva7dlh%2FGvddhuOKCZ3yRuEy5fqlB1%2Fimg.png)
# 변경할 날짜지정 $d = Get-Date "02/09/2013 4:59 PM" # 변경할 파일 대상 지정 $f = Get-Item "C:\test\test.txt" # 변경할 파일에 변경할 날짜 적용 $f.LastWriteTime = $d 출처 : http://stackoverflow.com/questions/21630424/modifying-lastwritetime-directory-in-powershell
![[파워쉘]VBS로 파워쉘 실행](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fk9l94%2FbtrCiRegy3q%2FWb28mCEGKQBbV4KrO90GrK%2Fimg.png)
ps="powershell.exe -nologo -command " & Chr(34) & "[xxxx.ps1]" & Chr(34) set shell=createobject("WScript.Shell") shell.Run ps,0,true 출처 : http://kernel64.tistory.com/567