Powershell 设置 COM+ 强制对此应用程序进行访问检查 [英] Powershell setting COM+ Enforce access checks for this application

查看:61
本文介绍了Powershell 设置 COM+ 强制对此应用程序进行访问检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在弄清楚用于选择该应用程序属性的安全"选项卡下的对此应用程序强制访问检查"的 Powershell 字符串是什么时遇到了问题.到目前为止,我对 Powershell 选择其他东西的方法如下:

I'm having problems figuring out what is the Powershell string for choosing the "Enforce access checks for this application" under the Security tab of the properties for that application. Here is what I have so far for Powershell in choosing other things:

$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()

现在我拥有该值的所有其他字符串,但我无法找出对此应用程序执行访问检查"的字符串?

Now I have all those other strings for the value but I can't figure out the one for the "Enforce access checks for this application"?

谢谢

推荐答案

It will

$app.Value("ApplicationAccessChecksEnabled") = 0

我不是很肯定,因为当我设置上述值时,它不会在 COM+ 属性中发生变化.我不确定设置该字段是否有问题.我还尝试通过属性 gui 更改值并使用以下内容获取当前值:

I'm not positive because when I set the above value it doesn't change in the COM+ properties. I'm not sure if there is something wrong with setting that field. I also tried changing the value through the property gui and using the following to get the current value:

$app.Value("ApplicationAccessChecksEnabled")

谢谢

这篇关于Powershell 设置 COM+ 强制对此应用程序进行访问检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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