LoginSignup
13
11

More than 5 years have passed since last update.

PowerShell ギャラリーの使い方

Posted at

便利なPowerShellが集まってるPSギャラリーのモジュールをインストールする方法
https://www.powershellgallery.com

インストール要件

  • Windows 10
  • Windows Management Framework 5.0
  • MSI Installer (for PowerShell 3 and 4)

手順

  1. NuGetのインストール
    PS> Install-PackageProvider -Name NuGet -Force

  2. 便利モジュール・スクリプトの探し方

    1. PowerShell GalleryのHPで検索する(オススメ)
    2. コマンドラインで探す(名前を知っているとき) PS> Find-Module -Name パッケージ名 -Repository PSGallery PS> Find-Script -Name パッケージ名 -Repository PSGallery
  3. 目的のモジュール(スクリプト)をダウンロード&インストールする
    PS> Save-Module パッケージ名 -Path "保存先フォルダパス" #あるいは Save-Script
    PS> Install-Module パッケージ名 #あるいは Install-Script

  4. インストール済みのモジュールを一覧表示する
    PS> Get-InstalledModule

13
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
11