PowerShell [Tips]今何歳? 今何歳かを求める関数を作ってみました。(ネタ元はこちら) 誕生日に関する計算はいろいろとあるようですが、「誕生日の前日をもって年齢を+1する」という条件で計算しています。 function Get-Age($Birthday, $Today... 2009.10.20 PowerShellTips
PowerShell [Tips]XmlElementを取得する XMLの要素を取得する関数、GetElementNameを作ってみました。(元ネタはこちら) function Get-Elementname($element) { for ( $i = 0; $i -lt $element.get_Ch... 2009.10.20 PowerShellTips
PowerShell 2.0 RC [Tips]Enter-PSSessionコマンドレットでのエラー対処 ドメインに参加していないPCでEnter-PSSesionコマンドレットを使用しようとすると、下記のようなエラーが表示される場合があります。 このような場合には、TrustedHostにマシンを登録します。 最初にTrustedHostを確... 2009.10.15 PowerShell 2.0 RCTips
PowerShell [Tips]Windows VistaにPowerShell V2 RCをインストールするには? Windows Vista に Windows PowerShell V2 RC(以下PowerShell V2)をインストールする手順について説明します。 PowerShell V2は以前のバージョンのPowerShellと共存することは... 2009.10.09 PowerShellPowerShell 2.0 RCPowerShell ISETips
PowerShell [Tips]Windows VistaからPowerShell V1をアンインストールするには? Windows Vista から Windows PowerShell V1.0をアンインストールする手順です。 1.-を開きます。 通常、この一覧にはWindows PowerShellは表示されません。 そこで、をクリックします。 2.... 2009.10.09 PowerShellTips