PowerShellから各種ブラウザで開いているURLを取得する (Windows10+IE編)
概要
IEからも取るよ。難しいことは不要
コード
$shell = New-Object -ComObject Shell.Application $ie_list = @($shell.Windows() | where { $_.Name -match "Internet Explorer" }) $ie = @($ie_list | select LocationURL) $ie
IEからも取るよ。難しいことは不要
$shell = New-Object -ComObject Shell.Application $ie_list = @($shell.Windows() | where { $_.Name -match "Internet Explorer" }) $ie = @($ie_list | select LocationURL) $ie