민서네집

Windows 제어판 설치 목록(레지스트리) 읽어서 출력하기. 본문

컴퓨터 일반

Windows 제어판 설치 목록(레지스트리) 읽어서 출력하기.

브라이언7 2014. 6. 26. 18:09

제어판에서 설치 목록을 읽어오는 레지스트리 경로


  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall


[출처] http://hummingbird.tistory.com/4908


[참고] http://forum.sysinternals.com/finding-all-installed-programs-from-the-registry_topic21312.html


< vbscript to read registry keys and its subkeys >


http://social.technet.microsoft.com/Forums/scriptcenter/en-US/aa04b016-74a7-4275-a441-ee6b05e4cc9a/vbscript-to-read-registry-keys-and-its-subkeys?forum=ITCG


< 윈도우 설치 프로그램 목록 확인 >


http://jmnote.com/wiki/%EC%9C%88%EB%8F%84%EC%9A%B0_%EC%84%A4%EC%B9%98_%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%A8_%EB%AA%A9%EB%A1%9D_%ED%99%95%EC%9D%B8


< Power Shell 로 프로그램 목록 읽기 >


http://www.computerperformance.co.uk/powershell/powershell_win32_product.htm#Barking_Eddies_Non-PowerShell_Solution


위 웹사이트에 있는 스크립트에 정보를 약간 더 추가해서 출력함.

# PowerShell script to display programs from registry.

Clear-Host

$i=0

$RegLoc = Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall

$Programs = $RegLoc | foreach {Get-ItemProperty $_.PsPath}


Foreach ($name in $Programs | Sort-Object DisplayName) `

{Write-Host $name.Displayname, ',', $name.DisplayVersion, ',', $name.Publisher, ',', $name.InstallDate, ',', $name.URLInfoAbout; $i++}


Write-host "There are $i programs installed"


get-install.ps1


< PowerShell script 를 실행시키기 >


powershell -executionpolicy bypass -File get-install.ps1 > report.txt


Security 제한을 우회하면서 sign 되지 않은 script를 실행시키고, report.txt 파일로 결과를 저장함.


[출처] http://stackoverflow.com/questions/2035193/how-to-run-a-powershell-script


< PowerShell Script Security 제한 풀기 >


"Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process"


혹은 명령 프롬프트를 관리자 권한으로 띄운 후


powershell set-executionpolicy remotesigned


[출처] http://stackoverflow.com/questions/10635/why-are-my-powershell-scripts-not-running


< Power Shell : Write-Host => Export to a file >


http://stackoverflow.com/questions/9294221/write-host-export-to-a-file



Comments