Powershell 设置 COM+对此应用程序强制执行访问检查
我在弄清楚用于在该应用程序属性的“安全”选项卡下选择“强制执行此应用程序的访问检查”的 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()
现在我有了所有其他值的字符串,但我无法找出“强制执行此应用程序的访问检查”的字符串?
谢谢
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"?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我并不
肯定,因为当我设置上述值时,它在 COM+ 属性中不会改变。我不确定设置该字段是否有问题。我还尝试通过属性 gui 更改值并使用以下内容获取当前值:
谢谢
It will be
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:
Thanks