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 Agent Hostによって認識されるプリンター名です。このフィールドは空白にすることはできません。
\<Description>. これは、Workspace Environment Management Agent Hostによって認識されるプリンターの説明です。このフィールドは空白にできます。
\<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>