2010. 9. 9. 15:59

파워쉘로 간단한 부팅매크로를 만들수 있습니다. 이럴때 유용한 cmdlet이 바로 Invoke-Item 입니다.
간단히 아래와 같이..

#file booting-macro.ps1
Set-ExecutionPolicy remotesigned

write-host "Exec Visual Studio 2010"
Invoke-Item 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe'


write-host "Exec Visual Studio 2008"
Invoke-Item 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe'


write-host "Exec Putty"
Invoke-Item 'C:\Program Files (x86)\PuTTY'


write-host "Exec Outlook"
Invoke-Item 'C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE'


write-host "Exec notepad++"
Invoke-Item 'C:\Program Files (x86)\Notepad++\notepad++.exe'
#end script


위의 내용으로 booting-macro.ps1 를 만들고 작업스케줄러에 적당히 등록하면 간단한 부팅 매크로가 완성됩니다.


원본:  http://vstarmanv.tistory.com/entry/Invoke-Item

'Powershell > @우주인' 카테고리의 다른 글

[MSSQL]WMI for SQL Management(1)  (0) 2010.09.15
파워쉘을 이용한 DOM 사용  (0) 2010.09.09
파워쉘 버전  (0) 2010.09.09
PowerShell Profile Configuration  (2) 2010.09.09
PowerGUI Visual Studio  (2) 2010.07.29
Posted by 알 수 없는 사용자
:
BLOG main image
Windows Server를 공부 하는 사람들의 팀블로그 by 마성민

카테고리

분류 전체보기 (76)
Windows (2)
Powershell (56)
AD (0)
Exchange (6)
System Center (9)
IIS (0)
SQL (3)
Sharepoint (0)

태그목록

Tistory Cumulus Flash tag cloud by BLUEnLIVE requires Flash Player 9 or better.

Total :
Today : Yesterday :