Powershellスクリプトの作成方法の一例を念のため書きます。 各記事(例:機内モード解除(Powershell+UIAutomation))のコード部分をコピーし、メモ帳に貼り付けてください。 名前を付けて保存する際にエンコード形式を「UTF-8 (BOM付き)」にし、拡張子を「.ps1 ...
PowerShellスクリプト(PS1)をWindows実行可能プログラム(EXE)に変換することができます。 PS1ファイルの中身を見られたくない、編集されたくない、簡単に実行したい場合などに便利です。 その変換方法を紹介します。 1.PS2EXE モジュールを PowerShell に ...
ここ数回の取り組みでCSVやTSVといったデータからグラフ画像を生成するPowerShellスクリプト「data2chart.ps1」を作成した。さらに、data2chart.ps1を利用したラッパーコマンドとして「csv2barchart」「csv2piechart」「tsv2barchart」「tsv2piechart」も用意した。作業途中で ...
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 ...
PowerShell scripts are used to automate repetitive tasks and make some changes to your system’s configuration. However, we have noticed that at times, Windows can’t run a PowerShell script in Windows ...
PowerShellスクリプトのメンテナンスという点で考えると、書き換え対象となるPowerShellスクリプトは1つである方が好ましい。ほとんど同じようなPowerShellスクリプトのファイルがたくさんあったら、書き換えが必要になったときにそれらを全部書き換えなければ ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する