Powershell COM+ 设置 [英] Powershell COM+ settings

查看:36
本文介绍了Powershell COM+ 设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆