PowerShellスクリプト(PS1)をWindows実行可能プログラム(EXE)に変換することができます。 PS1ファイルの中身を見られたくない、編集されたくない、簡単に実行したい場合などに便利です。 その変換方法を紹介します。 1.PS2EXE モジュールを PowerShell に ...
One of the most welcome new features in PowerShell 7 is the ability to perform parallel execution of script blocks. This new parallel execution capability can drastically reduce the amount of time it ...
他のPowershellスクリプト(.ps1)を参照する方法。生成AIに聞いても、一発で答えてくれないので記載。例えばこの記事内のメイン部分(「# C# コード 部分」から「# 実行(画像1を探し、その範囲内で画像2をクリック)」の直前まで)を「opencv.ps1」として保存 ...
We are provisioning Windows vm templates using Packer and Ansible on vSphere. We run Packer in a container (alpine-based) in our gitlab CI/CD pipeline. One of the steps in this process behaves ...
PowerShellスクリプトのメンテナンスという点で考えると、書き換え対象となるPowerShellスクリプトは1つである方が好ましい。ほとんど同じようなPowerShellスクリプトのファイルがたくさんあったら、書き換えが必要になったときにそれらを全部書き換えなければ ...
前回までに、グラフにしたいデータをCSVデータとして用意しておき、これを棒グラフの画像に変換するPowerShellスクリプトを作成した。Google Chartsの利用、Microsoft Edgeの外部からのコントロールなど、PowerShellを使いつつほかの機能を組み合わせて機能を実現し ...