LoginSignup
3
2

More than 5 years have passed since last update.

【メモ】PowerShell書き始めるまで

Posted at

初めて触ったので自分用メモ


  • Windows7のデフォルトバージョンは2
  • 最新は4
  • Invoke-RestMethodなどは3以降で使用可能
  • バージョン確認方法
    $PSVersionTable
  • 更新は
    Windows Management Framework 4.0
    から
    Windows6.1-KB2819745-x64-MultiPkg.msu
    のみインストール
  • インストール後は再起動
  • バージョン2は消える(共存できそうな検索結果も出たが、詳しく見てない)
  • 拡張子は.ps1
  • 文字コードはShift-JIS(Sublime textではなく秀丸などで作る)
  • シェルの実行権限を与える
    WindowsでPowerShellスクリプトの実行セキュリティポリシーを変更する
    Set-ExecutionPolicy RemoteSigned
    PowerShellは管理者として実行すること
3
2
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
3
2