手動でPowerShellスクリプトを実行することの問題は、「誰がいつ何を実行したか」のトレーサビリティが弱くなることだ。 Gitリポジトリでスクリプトを管理していても、実行そのものが属人化してしまう。 担当者が休みのとき、誰もスクリプトを回せない ...
前回作成したPowerShellスクリプト「test-6.ps1」は次の通りだ。 #!/usr/bin/env pwsh #===== # 気温データを取得して整理する #===== $URL ...
PowerShellをシェルとして使うためのポイントを解説。今回は、PowerShellの使い方として最も多い、情報表示について紹介する。
「PowerShell」のループ処理構文を覚えれば、反復実行するタスクの自動化に役立つ。主要な構文のうち「while」「do while」の概要と、これらの違いを整理しよう。 「while」は、条件式の評価が「true」(真)である間、スクリプト(簡易プログラム)内のある ...
前回はウインドウのサイズを変更するPowerShellスクリプトとして、次のスクリプトを紹介した。 win7 powershell script to automatically resize a minecraft window for 1280x720 HD fraps recording. 今回からは、このスクリプトの中身を読み込みながら、もう少し汎用的に利用できる ...
「Windows」のコマンド実行ツール「PowerShell」は、IT管理者がシステムを構成したり、タスクを自動化したりするのに活用できる。PowerShellのスクリプト(簡易プログラム)でループ処理を使えば、IT管理者は同じスクリプトを繰り返し記述することなく、タスク ...
On Windows 11 (and Windows 10), PowerShell is a powerful command-line interface designed to run commands and scripts that automate tasks and manage system settings. While it serves a similar purpose ...
PowerShell is not just an application, it is a scripting language built on .Net CLR that automates IT tasks. It has backward compatibility with CMD and can automate simple or complex tasks. Because of ...
Back in 2008, I wrote a piece called PowerShell Tips and Tricks, which covered the then-relatively new Windows scripting language and some cool things you could do with it. Although PowerShell has ...
Over the last few years, I have created a vast library of PowerShell scripts that I use to keep my servers healthy. These scripts do everything from monitoring disk health to helping me to reclaim ...