Powershell

レジストリのキーが存在するかどうかチェック

レジストリのキーが存在するかどうかチェックするPowershell$tmp1 = test-path HKLM:"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4A0E73BB-0D67-4DB7-87BE-751068774920}" $tmp2 = test-path HKLM:"SOFTWARE\Microsoft\Windows\Curr…

WMIでインストールされているソフト一覧を取得

WMIでインストールされているソフト一覧を取得し、結果を返すPowershell.$tmp = Get-WmiObject Win32_Product | Select-String "Java" If ([String]::IsNullOrEmpty($tmp)){ Write-Output "Not Found." }