PowerShell 下获取 chrome 版本号和路径

写这脚本真是麻烦,ai都救不了

$softexekey = (dir "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths" -Recurse -include *chrome* | Get-ItemProperty | select "(default)")."(default)"

$currentVersion = (Get-Item $softexekey).VersionInfo.ProductVersion

Write-Host $currentVersion
Write-Host $softexekey

发布者

湘笃秀

曲水流觞,维湘笃秀