IT/Programming
Run powershell command in batch file
Hotman
2017. 7. 24. 10:57
- bat 파일에서 powershell command 사용하는 방법
powershell -Command "& {<powershell 명령어>; }"
- Ex)
@echo off
powershell -Command "& {get-service; }"