跟小D每日学口语

安装SharePoint2010及设置-4

Configuring Microsoft SharePoint Foundation User Code Service

 


Click "Start" on "Microsoft SharePoint Foundation User Code Service"

Run the PowerShell script (if you installed Active Directory Domain Services role on server):

$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName
$person = [System.Security.Principal.NTAccount]"Users"
$access = [System.Security.AccessControl.RegistryRights]::FullControl
$inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
$propagation = [System.Security.AccessControl.PropagationFlags]::None
$type = [System.Security.AccessControl.AccessControlType]::Allow
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
$acl.AddAccessRule($rule)
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl

Source: Jie Li

 

posted @ 2010-01-12 10:16  kongsun  阅读(307)  评论(0编辑  收藏  举报