[파워쉘]실행 권한 예외처리
# Script/Powershell2019. 1. 16. 16:56[파워쉘]실행 권한 예외처리

# powershell -ExecutionPolicy ByPass -File [파워쉘파일]

[파워쉘]텔레그램 푸시
# Script/Powershell2018. 8. 21. 09:48[파워쉘]텔레그램 푸시

아래 내용 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설치
# Virtualation/Private Cloud2018. 3. 9. 13:49[vmware]powercli-6.5.1설치

https://blogs.vmware.com/PowerCLI/2017/05/powercli-6-5-1-install-walkthrough.html

[파워쉘]파일 마지막 쓰기한 날짜변경
# Script/Powershell2017. 3. 5. 18:23[파워쉘]파일 마지막 쓰기한 날짜변경

# 변경할 날짜지정 $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로 파워쉘 실행
# Script/Powershell2017. 3. 5. 18:22[파워쉘]VBS로 파워쉘 실행

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

image