PowerShellでは、HostName や IP Address を取得するのにいくつかやり方が考えられます。 今回、PSRemoting中に取得するに当たって、どの方法が最も実行速度が速いのかを測ってみたので公開します。 検証環境 以下を 同一Zoneの Public VPCからPrivate VPC x2 に向けて10回実行した結果で、単一インスタンスに対して最も遅かった時間(ms)を取得しています。 (初回のDNS解決はICMPで処理済み) PS Remoting 接続元サーバー (Public VPC) Amazon AWS EC2 インスタンス (m1.large) with Windows Server 2012 PS Remoting 接続先サーバー x 2 (Private VPC) Amazon AWS EC2 インスタンス (m1.medium) with Wind
Main メソッドは、C# アプリケーションのエントリ ポイントです アプリケーションを起動すると、最初に Main メソッドが呼び出されます。 C# プログラムのエントリ ポイントは 1 つのみです。 Main メソッドを持つクラスが 2 つ以上ある場合、プログラムをコンパイルする際に StartupObject コンパイラ オプションを使用して、どの Main メソッドをエントリ ポイントとして使用するかを指定する必要があります。 詳細については、「StartupObject (C# コンパイラ オプション)」を参照してください。 class TestClass { static void Main(string[] args) { // Display the number of command line arguments. Console.WriteLine(args.Lengt
妻のお母さんがPCがおかしいというので見てみたところ、起動時にBitLockerが回復キーを求めてくるようになっていました。 それ自体はさほど驚かなかったのですが、よく考えるとこのPCたしかWindows 10 Homeだったはず。 あれ?BitLockerってWin10 Proからの機能じゃなかったっけ? というかそもそもリテラシー的にも自分でBitLockerなんて設定しないだろうから最初から有効になってる?じゃあ回復キーは?? というところから始まり、いろいろ調べてみました。 結論 HomeエディションでもコマンドならBitLockerを操作できる(GUIは利用できない) 初期出荷イメージの時点でBitLockerが有効になっていた 前段のBitLockerが回復キーを求めているという状況に対し、回復キーが分からないとのことだったのでリカバリをかけました。 今回対象のPCはDELLの
Microsoftは5月13日(米国時間)、「WSL 2 Post BUILD FAQ|Windows Command Line Tools For Developers」において、ユーザからの質問に答える形で先日発表されたWSL2 (Windows Subsystem for Linux 2)の詳細について伝えた。当初発表された内容よりも詳しい内容が伝えられている。 伝えられている主な内容は次のとおり。 WSL 2はWSL 1が利用可能なすべてのSKUで利用可能になる WSL 2では仮想環境としてHyper-Vを使用する WSL 1を廃止する予定はなく、WSL 1とWSL 2は並列して実行することが可能 LinuxディストリビューションはWSL 1とWSL 2を切り替えることが可能 WSL 2の実行中はVMwareやVirtualBoxといった仮想環境を使うことができない。この点に関して
Get notified in your email when a new post is published to this blog The next Windows update is coming soon and we’re bringing exciting new updates to WSL with it! These include accessing the Linux file system from Windows, and improvements to how you manage and configure your distros in the command line. Accessing Linux files from Windows In the past, creating and changing Linux files from Window
Windows系のサーバなどで常時稼働しているものなどで、システム情報の稼働時間を確認したい場合がたまにありますが、確認方法がふたつあります。 その方法について、ご紹介しますね。
The Drvload tool adds out-of-box drivers to a booted Windows PE image. It takes one or more driver .inf files as inputs. To add a driver to an offline Windows PE image, use the peimg tool. If the driver .inf file requires a reboot, Windows PE will ignore the request. If the driver .sys file requires a reboot, then the driver cannot be added with Drvload. Drvload Command-Line Options The following
net - ファイル共有サービス制御 サーバサイド 公開しているファイル共有の一覧を表示する net share 公開しているファイル共有の詳細を表示する net share my-share ファイル共有を公開する1 net share my-share=C:\Users\taro\pub01 /grant:everyone,full ファイル共有を公開する2 net share my-private=C:\Users\taro\pub01 /grant:mypc\taro,full /grant:everyone,read サーバがドメイン環境な場合、"ドメイン名\ユーザ名"でユーザを指定する。 公開しているファイル共有を削除する net share my-share /delete 公開しているファイル共有の設定を変更する ファイル共有を削除した後、作り直す。(多分、この方法しかない
パソコンにおけるWindowsネットワークのファイル共有に関する設定をしたり設定情報を表示したりする。このコマンドを利用するには,そのパソコンに「Microsoftネットワーク用ファイルとプリンタ共有」コンポーネントがインストールされている必要がある。 Windows Server 2003: net share [共有名] [共有名=ドライブ名:パス [/grant:ユーザー名,{full|change|read}] [/users:制限ユーザー数|/unlimited] [/remark:"コメント"] [/cache:{manual|documents|programs|none}]] [共有名 [/users:制限ユーザー数|/unlimited] [/remark:"コメント"] [/cache:{manual|documents|program|none}]] [{共有名|ドラ
Applies To: Windows 7 ImageX is a Windows Vista® and Windows® 7 tool that captures and applies Windows images using compressed .WIM files. For Windows 8, see Windows Deployment with the Windows ADK. You typically use the ImageX tool with the Windows Imaging File System Filter (WIM FS Filter) driver. The WIM FS Filter driver enables you to mount an image to a directory, where you can browse, copy,
Windows上にある特定のフォルダ以下を、仮想ドライブとしてマウントして、ドライブとしてアクセスする方法を紹介します。 重要なフォルダを自分で好きに選んだドライブレター「X:」などでアクセスできるようになり、利便性の向上や、絶対パスによる設定の簡潔化などが期待されます。使い方次第。 目次 1. Substコマンドを使う方法1.1. 使い方1.2. 再起動対策1.3. 注意点1.4. 問題点2. レジストリを使う方法3. まとめ スポンサーリンク Substコマンドを使う方法 一つ目はSubstコマンドを使う方法です。 使い方 たとえば、「C:\Users\did2\Downloads」フォルダを「X:」ドライブとしてマウントしたいときは、コマンドプロンプトで次のコマンドを実行すればOKです。 >subst X: "C:\Users\did2\Downloads" 成功すると、何も出力され
作成日:2008/12/30 更新日:2016/12/20 対象:Windows Vista ファイルを掴んでいるプロセスを特定する ファイルを掴んでいるプロセスを特定するには以下の手順に従います。 (1)コマンドプロンプトを管理者モードで起動します。 (2)以下のコマンドを実行します。 >openfiles /local on 以下が表示されれば成功です。 情報: システム グローバル フラグ 'maintain objects list' は、現在有効です。 (3)OSを再起動します。 (4)再起動したら以下のコマンドを実行します。 openfiles | findstr <ファイル名> 例えば以下は index.datファイルを開いているプロセス一覧を表示しています。 C:\>openfiles | findstr index.dat 1648 explorer.exe C:\..\
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く