そのアプリケーションのプロパティの[セキュリティ]タブで[このアプリケーションのアクセスチェックを強制する]を選択するためのPowershell文字列を理解するのに問題があります。これが、Powershellが他のものを選択するためにこれまでに持っているものです。
$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog
$apps = $comAdmin.GetCollection("Applications")
$apps.Populate();
$app = $apps | Where-Object {$_.Name -eq $targetApp}
$app.Value("Identity") = $identity
$app.Value("Password") = $passwordEncrypted
$app.Value("ApplicationDirectory") = $appRootDir
$app.Value("ConcurrentApps") = 1 # set to default
$app.Value("RecycleCallLimit") = 0 # set to default
$app.Value("Activation") = 1 # dedicate local server process
$apps.SaveChanges()
これで、値の他のすべての文字列ができましたが、「このアプリケーションのアクセスチェックを強制する」の文字列がわかりませんか?
ありがとう