PowerShell
Visual Studio Enterprise エディションのコードカバレッジの機能を使わずとも、Coverlet を使えば単体テストのコードカバレッジを収集できるし、ReportGenerator を使えば HTML レポートを生成できる。 docs.microsoft.com PowerShell でスクリプトを書いて…
Windows サービスとして動くようにした ASP.NET Core アプリを、Network Service アカウントで動かすための PowerShell スクリプトを書いた。 $serviceName = "Windows サービス名" $exePath = "Windows サービスとして動かす exeのパス" $displayName = "表…
管理者権限で New-NetFirewallRule コマンドレットを実行。サンプルは次の通り。 New-NetFirewallRule -Name Example -DisplayName "Example TCP" -Description "Example Permit TCP/443" -Protocol TCP -LocalPort 443 -Enabled True -Profile Any -Action …