powershell - 适用于com plus应用程序的Powershell更新

标签 powershell powershell-2.0 com+

我正在使用以下内容,但我需要将com +应用程序的“池和回收”选项卡上的池大小设置为1,但是在保存之前找不到相应的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()

谢谢

最佳答案

看来您已经使用$app.Value("ConcurrentApps") = 1设置了池的大小。可能是您缺少了某些内容(例如,您没有检查您的设置是否成功)。看这个例子Configuring COM+ Application Pooling Values

关于powershell - 适用于com plus应用程序的Powershell更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5589035/

相关文章:

powershell - 从网络位置复制列表中定义的文件

powershell - 是否可以使用 F# 创建 Windows PowerShell Cmdlet?

powershell - 从路径创建文件夹目录?

powershell - 如何将 foreach 循环输出转储到 PowerShell 中的文件中?

powershell - 实现 PowerShell PSProvider *in* PowerShell

powershell - 如何在powershell中提示以不同用户身份运行EXE

azure - 通过 PowerShell 在消耗计划上创建 Azure 函数失败

c++ - CreateInstance 返回 "The specified module could not be found."

vb.net - VB6 DLL 将回调作为 Integer,VB.NET 需要委托(delegate)引用类型

multithreading - 阻止STA线程中的调用(等待,com调用)