-
배치파일에서 Powershell 실행컴퓨터/배치파일 2015. 9. 11. 12:01
http://stackoverflow.com/questions/6037146/how-to-execute-powershell-commands-from-a-batch-file
;@echo off
;Findstr -rbv ; %0 | powershell -c -
;goto:sCode
set-location "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
set-location ZoneMap\Domains
new-item TESTSERVERNAME
set-location TESTSERVERNAME
new-itemproperty . -Name http -Value 2 -Type DWORD
;:sCode
;echo done
;pause & goto :eof
-------------------------------------------------------------------------------------
http://www.daveamenta.com/2013-03/embed-powershell-inside-a-batch-file/
댓글