Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AsaiToshiya/f1a69893e9cd80fe5b88ea01dc5cd77c to your computer and use it in GitHub Desktop.
Save AsaiToshiya/f1a69893e9cd80fe5b88ea01dc5cd77c to your computer and use it in GitHub Desktop.
Chocolatey でインストールしたパッケージをエクスポートする

Chocolatey でインストールしたパッケージをエクスポートする

手順

1. スクリプトをダウンロード

https://gist.githubusercontent.com/alimbada/449ddf65b4ef9752eff3/raw/2cbc528668bc20aff55bc6a9cc340f7cd3dc6442/Export-Chocolatey.ps1

2. 実行ポリシーを変更

PS> Set-ExecutionPolicy Bypass -Scope Process -Force

3. スクリプトを実行

PS> C:\Users\User\Downloads\Export-Chocolatey.ps1 > chocolatey.config

4. 実行ポリシーを変更

PS> Set-ExecutionPolicy Restricted -Scope Process -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment