XML プリンターリストの構成
Workspace Environment Management™ には、XML プリンターリストファイルを使用してユーザープリンターを構成する機能が含まれています。
XML プリンターリストファイルを作成したら、管理コンソールで アクションの種類 オプションを デバイスマッピングプリンターファイルを使用 に設定して、プリンターアクション を作成します。
注:
特定の Windows 資格情報を必要としないプリンターのみがサポートされます。
XML プリンターリストファイルの構造
XML ファイルは UTF-8 でエンコードされており、次の基本的な XML 構造を持っています。
<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfSerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
...
</ArrayOfSerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
すべてのクライアントと関連デバイスは、次の種類のオブジェクトで表されます。
SerializableKeyValuePair<string, List<VUEMUserAssignedPrinter>>>
各デバイスは次のように表されます。
<SerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
<Key>DEVICE1</Key>
<Value>
<VUEMUserAssignedPrinter>
...
</VUEMUserAssignedPrinter>
</Value>
</SerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
各デバイスブロックは、特定のクライアントまたはコンピューター名と一致している必要があります。\<Key> タグには関連する名前が含まれます。\<Value> タグには、指定されたクライアントに割り当てられたプリンターと一致する VUEMUserAssignedPrinter オブジェクトのリストが含まれます。
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfSerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
<Key>DEVICE1</Key>
<Value>
<VUEMUserAssignedPrinter>
...
</VUEMUserAssignedPrinter>
</Value>
</SerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
</ArrayOfSerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
VUEMUserAssignedPrinter タグの構文
構成された各プリンターは、次の属性を使用して \<VUEMUserAssignedPrinter> タグで定義する必要があります。
\<IdPrinter>。これは、構成されたプリンターの Workspace Environment Management プリンター ID です。各プリンターは異なる ID を持つ必要があります。注 Workspace Environment Management 管理コンソールで構成された XML プリンターリストアクションも、独自の ID を持つプリンターアクションであり、XML リストで個別に構成されたプリンターの ID とは異なる必要があります。
\<IdSite>。関連する Workspace Environment Management サイトのサイト ID が含まれます。これは、既存のサイトの ID と一致する必要があります。
\<State>。プリンターの状態を指定します。1 はアクティブ、0 は無効です。
\<ActionType>。常に0である必要があります。
\<UseExtCredentials>。0である必要があります。特定のWindows資格情報の使用は現在サポートされていません。
\<isDefault>。1の場合、プリンターはデフォルトのWindowsプリンターです。0の場合、デフォルトとして構成されていません。
\<IdFilterRule>。常に1である必要があります。
\<RevisionId>。常に1である必要があります。プリンターのプロパティが後で変更された場合、この値を1増やしてエージェントホストに通知し、プリンターアクションが再処理されるようにします。
\<Name>。これは、Workspace Environment Managementエージェントホストによって認識されるプリンター名です。このフィールドは空白にできません。
\<Description>。これは、Workspace Environment Managementエージェントホストによって認識されるプリンターの説明です。このフィールドは空白にできます。
\<DisplayName>。これは使用されておらず、空白のままにする必要があります。
\<TargetPath>。これはプリンターへのUNCパスです。
\<Reserved01>。これには詳細設定が含まれています。いかなる方法でも変更しないでください。
><VUEMActionAdvancedOption><Name>SelfHealingEnabled</Name><Value>0</Value></VUEMActionAdvancedOption
特定のプリンターオブジェクトの自己修復をアクティブにするには、上記のコンテンツをコピーして貼り付け、強調表示されている0の値を1に変更するだけです。
プリンターオブジェクトの例
次の例では、クライアントまたはコンピューターDEVICE1に2つのアクティブなプリンターを割り当てます。
-
UNC パス
\\server.example.net\HP LaserJet 2200 Series上の HP LaserJet 2200 Series(デフォルトプリンター) -
UNC パス
\\server.example.net\Canon C5531i Seriesにある Canon C5531i Series プリンター
また、クライアントまたはコンピューター DEVICE2 に 1 台のアクティブなプリンターを割り当てます。
-
UNC パス
\\server.example.net\HP LaserJet 2200 Seriesにある HP LaserJet 2200 Series
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfSerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
<Key>DEVICE1</Key>
<Value>
<VUEMUserAssignedPrinter>
<IdPrinter>1</IdPrinter>
<IdSite>1</IdSite>
<State>1</State>
<ActionType>0</ActionType>
<UseExtCredentials>0</UseExtCredentials>
<isDefault>1</isDefault>
<IdFilterRule>1</IdFilterRule>
<RevisionId>1</RevisionId>
<Name>HP LaserJet 2200 Series</Name>
<Description />
<DisplayName />
<TargetPath>\\server.example.net\HP LaserJet 2200 Series</TargetPath>
<ExtLogin />
<ExtPassword />
<Reserved01><?xml version="1.0" encoding="utf-8"?><ArrayOfVUEMActionAdvancedOption xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><VUEMActionAdvancedOption><Name>SelfHealingEnabled</Name><Value>0</Value></VUEMActionAdvancedOption></ArrayOfVUEMActionAdvancedOption></Reserved01>
</VUEMUserAssignedPrinter>
</Value>
<Value>
<VUEMUserAssignedPrinter>
<IdPrinter>2</IdPrinter>
<IdSite>1</IdSite>
<State>1</State>
<ActionType>0</ActionType>
<UseExtCredentials>0</UseExtCredentials>
<isDefault>0</isDefault>
<IdFilterRule>1</IdFilterRule>
<RevisionId>1</RevisionId>
<Name>Canon C5531i Series</Name>
<Description />
<DisplayName />
<TargetPath>\\server.example.net\Canon C5531i Series</TargetPath>
<ExtLogin />
<ExtPassword />
<Reserved01><?xml version="1.0" encoding="utf-8"?><ArrayOfVUEMActionAdvancedOption xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><VUEMActionAdvancedOption><Name>SelfHealingEnabled</Name><Value>0</Value></VUEMActionAdvancedOption></ArrayOfVUEMActionAdvancedOption></Reserved01>
</VUEMUserAssignedPrinter>
</Value></SerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
<SerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
<Key>DEVICE2</Key>
<Value>
<VUEMUserAssignedPrinter>
<IdPrinter>1</IdPrinter>
<IdSite>1</IdSite>
<State>1</State>
<ActionType>0</ActionType>
<UseExtCredentials>0</UseExtCredentials>
<isDefault>0</isDefault>
<IdFilterRule>1</IdFilterRule>
<RevisionId>1</RevisionId>
<Name>HP LaserJet 2200 Series</Name>
<Description />
<DisplayName />
<TargetPath>\\server.example.net\HP LaserJet 2200 Series</TargetPath>
<ExtLogin />
<ExtPassword />
<Reserved01><?xml version="1.0" encoding="utf-8"?><ArrayOfVUEMActionAdvancedOption xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><VUEMActionAdvancedOption><Name>SelfHealingEnabled</Name><Value>0</Value></VUEMActionAdvancedOption></ArrayOfVUEMActionAdvancedOption></Reserved01>
</VUEMUserAssignedPrinter>
</Value></SerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>
</ArrayOfSerializableKeyValuePairOfStringListOfVUEMUserAssignedPrinter>