Powershell COM+ 设置 [英] Powershell COM+ settings
问题描述
我正在尝试使用 powershell COMAdmin.COMAdminCatalog 设置以下值,但我找不到以下红色的设置.任何帮助将不胜感激.
I'm trying to set the following values with the powershell COMAdmin.COMAdminCatalog but I can't find the setting for the below in red. Any help would be appreciated.
谢谢
推荐答案
有关有问题的属性,请参阅 身份验证属性 和 AccessLevelChecks 属性,用于 应用程序集合 在 COM+ 管理集合.
For the properties in question see the Authentication property and the AccessLevelChecks property for the Applications Collection under COM+ Administration Collections.
有关如何设置身份验证级别属性的 VBScript 示例,请参阅 通过 vbs 脚本更改现有的 COM+ 应用程序标识.
For a VBScript example on how to set the Authentication Level property see the answer to changing existing COM+ applications identity via vbs script.
转换为 PowerShell 应该相当简单.这是我的猜测:
It should be fairly straight forward to convert to PowerShell. Here's my guess:
$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog
$apps = $comAdmin.GetCollection("Applications")
$apps.Populate();
$app = $apps | Where-Object {$_.Name -eq "MyAppName"}
# Set Authentication to Packet Authentication
$app.Value("Authentication") = 4
# Set Security Level to Process and Component level
$app.Value("AccessChecksLevel") = 1
$apps.SaveChanges()
这篇关于Powershell COM+ 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!