2006-01-01から1ヶ月間の記事一覧

最近はMonadよりW-ZERO3で遊んでいます

高価なおもちゃ 率直な感想として、初期状態では使い勝手が悪いですね。 ×ボタンを押してもWindowが隠れるだけでプロセスは終了しない。 プロセスを落とすには、タスクマネージャに相当するツールからのみ。 この点はWindows使いとして違和感ありありですね…

「Monad Hacks」のスクリプト募集

MSH

「Monad Hacks」 O'Reillyから「Monad Hacks」を刊行する予定があるようです。 http://www.leeholmes.com/blog/WouldYouLikeToContributeToMonadHacks.aspx 上記Blogで、Lee Holmes氏が掲載するサンプルを募集しています。 サンプル掲載される場合は、名前が…

Monad Beta3の謎

MSH

なぜかBeta3で動作しない 文字列をIEに出力する(out-ie) - PowerShell Memoで紹介した「out-ie」は、文字列をIEに出力するScriptです。このScriptは、Beta2では問題なく動作していたのですが、Beta3ではエラーが出て正しく動作しません。 なぜ? out-ie para…

「Shell.Application」の活用(2)

MSH

フォルダ選択ダイアログを利用する(Use the Dialog of browsing folder) $app = new-object -com Shell.Application $app.BrowseForFolder(0,"Select Folder", 1, 0) BrowseForFolderメソッドは「フォルダ選択ダイアログ」を表示します 参照:Microsoft API …

「Shell.Application」の活用(1)

MSH

「Shell.Application」はWindowsのシェル機能を利用できるCOMオブジェクトです。 URLに任意文字列を含むIEを終了させる(Quit the IE with URL that contains specified string) URLに「google」を含むIEを終了する function quitIE() { PARAM([String]$urlKe…

プロパティの値を素早く調べる(Quick search of property value)

MSH

全てのプロパティに対して名前と値を同時に確認する オブジェクトが持つプロパティの名前は「get-member」で簡単に調べられますが、各プロパティの値はすぐには調べられません。 PropertyGridの活用 - PowerShell Memoで紹介した「ObjectViewer」は、プロパ…

イベントログを取得する(Get EventLog)(1)

MSH

サーバの運用管理でイベントログを参照することがあります。 例えば、サービスの開始/終了やログオン時刻の取得などです。 Monadでは簡単にイベントログを取得できるCmdletが用意されているため、 VBScriptに比べてイベントログ周りの処理は非常に簡単です…

Monad Beta3 Release

MSH

Monad Beta3がリリースされました。 Download Monad Beta3 Monad Beta3 Docs Beta3のインストール Beta3をインストールするには古いバージョンのMonadをアンインストールする必要があります。 今回は、Beta2をアンインストールし、Beta3はインストールしまし…

Use of IronPython in Monad, Part 2

We can call IronPython in Monad. See MSH Memo - Use of IronPython in Monad Additionally, we can use the function of IronPython script in Monad. Use the function of IronPython script in Monad 1. Load IronPython.dll. Create ScriptEngine Obje…

Use of IronPython in Monad

STEP1 Install of IronPython 1.0 Beta1 Last month IronPython 1.0 Beta was released. http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742 The install of IronPython is very easy. 1. Download IronPython 1.…

Mr. /\/\o\/\/ got a MVP award !

MSH

Monad Beta3も楽しみですが、それよりも素晴らしいニュースが・・・。 /\/\o\/\/ PowerShelled: Monad Beta 3 is Coming soon and I got a MVP award Link from the Blog of /\/\o\/\/ - PowerShell Memoで紹介した /\/\o\/\/氏がMVP Windows Server - Admin…

ランダムなパスワードの生成(1)

MSH

Codezineでhttp://codezine.jp/a/article.aspx?aid=238という記事が紹介されています。 Monadに移植してみました。 GUIDを使った手っ取り早いランダムなパスワードの生成 function GetRandomPasswordUsingGUID { PARAM([int]$length) #Get the GUID $guid = …

Link from the Blog of /\/\o\/\/

MSH

Joyful News This Blog had linked from the Blog of /\/\o\/\/, better-known in microsoft.public.windows.server.scripting His blog that has many monad samples is worth seeing. I think that he is one of good Monad Script Presenter, and the lin…

get-memberのパイプ入力の処理

MSH

あけましておめでとうごうざいます。 2006年はMonadが正式リリース・・・されるはずです、多分。(^^; 楽しいScriptingライフが送れることを期待しています。 さて、今年最初の記事は「get-member」にパイプでオブジェクトを渡した際の挙動についてです。 「g…