Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Add PowerShell script to set execution policy to RemoteSigned #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tqer39
Copy link
Owner

@tqer39 tqer39 commented Nov 30, 2024

📒 変更点の概要

  • 新しいPowerShellスクリプトsetup.ps1が追加されました。このスクリプトは、PowerShellの実行ポリシーをRemoteSignedに設定します。

⚒ 技術的な詳細

  • スクリプトは、現在の実行ポリシーを取得し、ProcessおよびCurrentUserスコープのポリシーがRemoteSignedでない場合に、それぞれのスコープでポリシーをRemoteSignedに設定します。
  • Get-ExecutionPolicy -Listコマンドを使用して、すべてのスコープの実行ポリシーを確認します。
  • スクリプトの最後にexit 0があり、正常終了を示します。
  • コメントアウトされた行として、Scoopのインストールを行うコマンドが含まれていますが、現時点では実行されません。

⚠ 注意点

  • 💡 スクリプトは-Forceオプションを使用しているため、ユーザーの確認なしに実行ポリシーを変更します。実行環境での影響を確認した上で使用してください。
  • 💡 RemoteSignedポリシーは、リモートからダウンロードされたスクリプトの署名を要求します。セキュリティ上の理由から、スクリプトの実行には注意が必要です。

@github-actions github-actions bot changed the title Add PowerShell script to set execution policy to RemoteSigned 🔧 Add PowerShell script to set execution policy to RemoteSigned Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant