POS デバイス マネージャー (posdm.exe) を使わなくても、ほとんどの Microsoft Point of Service for .NET (POS for .NET) デバイス管理タスクを手動で実行できます。
POS for .NET デバイスを手動で管理する
POS for .NET 構成 XML ファイルを手動で編集して、posdm.exe で使用できる機能のほとんどをレプリケートできます。
POS for .NET 構成 XML ファイルの場所は、レジストリ キー HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\POSfor.NET の Configuration 値で確認できます。
構成ファイルの既定の場所は *%ProgramData%\*Microsoft\Point Of Service\Configuration\Configuration.xml です
次の表に、posdm.exe コマンドと、構成 xml ファイルに追加する必要がある同等の XML を示します。
Posdm.exe コマンド |
説明 |
Configuration.xml |
例 |
ADDDEVICE |
プラグ アンド プレイ非対応の物理デバイスを追加します。 |
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="[Service Object Name]" Type="[Device Type]">
<Device HardwarePath="[Hardware Path]" Enabled="yes" PnP="no">
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
Posdm.exe コマンド:
Posdm ADDDEVICE COM1 /SONAME:"Microsoft Msr Simulator" /Type:msr
Configuration.xml:
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="Microsoft Msr Simulator" Type="Msr">
<Device HardwarePath="COM1" Enabled="yes" PnP="no">
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
ADDNAME |
デバイスの名前一覧に名前を追加します。 |
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="[Service Object Name]" Type="[Device Type]">
<Device HardwarePath="[Hardware Path]" Enabled="yes" PnP="no">
<LogicalName Name="[Device Name]" />
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
Posdm.exe コマンド:
Posdm ADDNAME MyName /SONAME:"Microsoft Msr Simulator" /Path:COM1
Configuration.xml:
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="Microsoft Msr Simulator" Type="Msr">
<Device HardwarePath="COM1" Enabled="yes" PnP="no">
<LogicalName Name="MyName" />
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
ADDPROPERTY |
デバイスにプロパティを追加します。 |
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="[Service Object Name]" Type="[Device Type]">
<Device HardwarePath="[Hardware Path]" Enabled="yes" PnP="no">
<Property Name="[Property Name]" Value="[Property Value]" />
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
Posdm.exe コマンド:
Posdm addproperty MyProperty MyValue /Name:MyName
Configuration.xml:
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="Microsoft Msr Simulator" Type="Msr">
<Device HardwarePath="COM1" Enabled="yes" PnP="no">
<LogicalName Name="MyName" />
<Property Name="MyProperty" Value="MyValue" />
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
DELETEDEVICE |
プラグ アンド プレイ非対応の物理デバイスを削除します。 |
<Device> ノードを削除します。 |
|
DELETENAME |
デバイスの名前一覧から名前を削除します |
<LogicalName> ノードを削除します。 |
|
DELETEPROPERTY |
デバイスからプロパティを削除します。 |
<Property> ノードを削除します。 |
|
DISABLE |
POS デバイスの SO を無効にします。 |
<Device> ノードに Enabled="no" と Default="no" を設定します。
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="[Service Object Name]" Type="[Device Type]">
<Device HardwarePath="[Hardware Path]" Enabled="no" PnP="no" Default="no">
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
Posdm.exe コマンド:
Posdm disable /Path:COM1
Configuration.xml:
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="Microsoft Msr Simulator" Type="Msr">
<Device HardwarePath="COM1" Enabled="no" PnP="no" Default="no">
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
有効化 |
POS デバイスの SO を有効にします。 |
<Device> ノードに Enabled="yes" を設定します。 |
|
INFO |
デバイスのプロパティを表示します。 |
該当なし |
|
LISTDEVICES |
ターゲット <host> 上の POS デバイスを一覧表示します。 |
該当なし |
|
LISTNAMES |
POS デバイスに関連付けられた名前を一覧表示します。 |
該当なし |
|
LISTPROPS |
デバイスに関連付けられたプロパティを一覧表示します。 |
該当なし |
|
LISTSOS |
ターゲット <host> 上の POS サービス オブジェクトを一覧表示します。 |
サービス オブジェクトの検索パスは、以下のレジストリ キー下のすべての値です。
HKLM\Software\Wow6432Node\Posfor.NET\ControlAssemblies
既定の検索パスは次のとおりです。
%CommonProgramFiles(x86)%\Microsoft Shared\Point Of Service\Control Assemblies\
POS for .NET は、これらのパスで見つかったすべてのサービス オブジェクト DLL の読み込みを試みます。 |
|
SETDEFAULT |
1 つのデバイスをその <type> の既定値として設定します。 |
<Device> ノードに Default="yes" を設定します。
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="[Service Object Name]" Type="[Device Type]">
<Device HardwarePath="[Hardware Path]" Enabled="yes" PnP="no" Default="yes">
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
Posdm.exe コマンド:
Posdm SETDEFAULT ON /Path:COM1
Configuration.xml:
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="Microsoft Msr Simulator" Type="Msr">
<Device HardwarePath="COM1" Enabled="yes" PnP="no" Default="yes">
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
SETPATH |
プラグ アンド プレイ非対応の POS デバイスの <path> を設定します。 |
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="[Service Object Name]" Type="[Device Type]">
<Device HardwarePath="[Hardware Path]" Enabled="yes" PnP="no">
</Device>
</ServiceObject>
</PointOfServiceConfig>
|
Posdm.exe コマンド:
Posdm SETPATH COM2 /SONAME:"Microsoft Msr Simulator" /Type:msr
Configuration.xml:
<PointOfServiceConfig Version="1.0">
<ServiceObject Name="Microsoft Msr Simulator" Type="Msr">
<Device HardwarePath="COM2" Enabled="yes" PnP="no">
</Device>
</ServiceObject>
</PointOfServiceConfig>
|