米Microsoftの「Windows PowerShell 5.0」には多数の新機能が導入されており、全体的な操作性が向上している。筋金入りのWindows PowerShell開発者しか興味を持たない機能もある一方で、広範なユーザーが関心を持つ新機能もある。その1つがリモートファイル編集機能だ。
A single pipeline replaced fourteen lines and I never looked back.
前回は、テキストファイルを加工してCSVファイルを出力する例を紹介しました。元になるデータがPowerShellのオブジェクトであれば、Export-Csv(省略形epcsv)コマンドレットを使って簡単にCSVファイルを作成できます。 Export-Csvの書式は以下の通りです。 Export-Csv ...
すみません、やや手抜き記事です。 先日、PowerShellファイルを高速起動(?)する仕組みの記事を書いたのですが。 これはタスクバー上にPowerShellの便利機能のファイルを起動させるキー入力用フォームを常置させて、機能呼出を速やかに行う仕組みでした。
Four scripts to fix them all ...
ファイルやディレクトリの一覧から、必要な行だけを抜き出して表示する例を考えよう。 まず、次のようなディレクトリがあったとする。 PowerShell CoreではSelect-Stringコマンドレットがgrepコマンドと似たような動きをする。 そこでSelect-Stringコマンドレットを ...
Windows PowerShell is probably best-known for its ability to allow Windows admins to operate at scale. For instance, it would take forever to create a thousand user accounts through the GUI, but ...
Typically, on a Windows-based PC, you can check an item or a folder’s size by just right-clicking the item or folder and then selecting Properties from the context menu. In this post, we will show you ...
今、社内のファイルサーバー移行計画を進めているのですが、最大の敵は技術的な問題ではありません。「ユーザーが放置した、何年も使われていない謎の巨大ファイル群」です。 システム側から「不要なものは消してくださいね〜」と優しくアナウンスし ...