RunAsynchronousCommand (microsoft-windows-deployment-runasynchronous-runasynchronouscommand)
RunAsynchronousCommand
は、auditUser 構成パスまたは specialize 構成パスの実行中に実行する 1 つのコマンドを指定します。
同時に開始できるサービスまたはコマンドを実行するには、非同期コマンドを使用します。 他のコマンドを開始する前に完了する必要があるコマンドを開始するには、代わりに RunSynchronousCommand を使用します。
RunAsynchronous
コマンドは、auditUser 構成パスではユーザー コンテキストで実行され、specialize 構成パスではシステム コンテキストで実行されます。
子要素
設定 | 説明 |
---|---|
資格情報 | パスにアクセスするときに使用する資格情報を指定します。 |
説明 | 実行するコマンドの説明を指定します。 |
受注 | コマンドごとに一意の値を指定します。 |
重要: コンピューターは、1 つのコマンドの終了を待たずに、次のコマンドを開始します。 | |
Path | 実行するコマンドへのパスを指定します。 |
有効な構成パス
auditUser
specialize
[親階層]
Microsoft-Windows-Deployment | RunAsynchronous | RunAsynchronousCommand
適用対象
このコンポーネントでサポートされている Windows のエディションとアーキテクチャの一覧については、「Microsoft-Windows-Deployment」を参照してください。
XML の例
次の XML 出力は、同期コマンドを設定する方法を示しています。
<RunAsynchronous>
<RunAsynchronousCommand wcm:action="add">
<Credentials>
<Domain>MyDomain</Domain>
<Password>MyPassword</Password>
<Username>MyUsername</Username>
</Credentials>
<Description>AsynchCommand1</Description>
<Order>1</Order>
<Path>\\network\server\share\filename</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Credentials>
<Domain>MyDomain</Domain>
<Password>MyPassword</Password>
<Username>MyUsername</Username>
</Credentials>
<Description>AsynchCommand2</Description>
<Order>2</Order>
<Path>\\network\server\share\filename</Path>
</RunAsynchronousCommand>
</RunAsynchronous>