獲取電腦中所安裝的軟件

一、下載Get-InstalledSoftwares.ps1函數

    Get-InstalledSoftwares.ps1


二、導入Get-InstalledSoftwares函數

Invoke-Expression (new-object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/mosserlee/PSTips/master/Functions/Get-InstalledSoftwares.ps1')


三、獲取軟件實例

  1.獲取當前電腦所安裝的軟件

        Get-InstalledSoftwares

        圖片.png

    2.獲取電腦中已經安裝的軟件,並篩選出“U啓動”相關軟件

Get-InstalledSoftwares | Where-Object {$_.Name -like "*U啓動*"}

        圖片.png

    3.指定電腦導入Get-InstalledSoftwares函數,並過濾出“百度雲盤“

Invoke-Command -ComputerName $PC_Info -ScriptBlock {Invoke-Expression (new-object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/mosserlee/PSTips/master/Functions/Get-InstalledSoftwares.ps1') -and (Get-InstalledSoftwares).name | where {$_ -like "百度網盤"} }




         

       



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章