2006年11月、マイクロソフトは新シェル「Windows PowerShell 1.0」の配布を開始した。オブジェクト指向で、ひと味違う。XP標準装備の「コマンドプロンプト」でテキストコマンドを使っている人は要注目だ。
「Windows」のコマンド実行ツール「PowerShell」は、IT管理者がシステムを構成したり、タスクを自動化したりするのに活用できる。PowerShellのスクリプト(簡易プログラム)でループ処理を使えば、IT管理者は同じスクリプトを繰り返し記述することなく、タスク ...
Whenever you use PowerShell, whether it is querying data or making a change to some configuration or existing object, you are working with different types of objects. You may not be aware of it ...
The ForEach-Object cmdlet performs an operation on each item in a collection of input objects. The input objects can be piped to the cmdlet or specified using the InputObject parameter. Starting in ...
PowerShell 3 deploys a new type adapter that will have you seeing hash table output in the order you want them to appear. In PowerShell 2, a common technique for creating a custom object is to create ...
PowerShellコマンドレットとスクリプトだけであらゆる処理を簡単に実行できればいいのですが、実際の運用では、従来型のWindowsアプリケーションやコマンドプロンプト用のプログラム(コマンド)と組み合わせて使う方が効率がよい場合が少なくありません。
一見するとコマンドプロンプトに似ているPowerShellですが、いろいろな違いがあります。例えばPowerShellのプロンプトに「20 * 5 + 10 / 3」など、数式を入力してみましょう。 PowerShell使用中、電卓代わりにも使えそうです。しかも、ちゃんと数式の計算優先順位を ...