Migrate from classic-mode to claims-based authentication
$wa = Get-SPWebApplication -Identity "http://alvin"
$wa.Properties["portalsuperuseraccount"] = "rainbowcorp\Administrator"
$wa.Properties["portalsuperreaderaccount"] = "rainbowcorp\Administrator"
$wa.Update()
$wa = Get-SPWebApplication -Identity "http://alvin"
$wa.Properties.Remove("portalsuperuseraccount")
$wa.Properties.Remove("portalsuperreaderaccount")
$wa.Update()
$WebAppName = "http://alvin"
$wa = get-SPWebApplication $WebAppName
$wa.UseClaimsAuthentication = $true
$wa.Update()
$account = "rainbowcorp\Administrator"
$account = (New-SPClaimsPrincipal -identity $account -identitytype 1).ToEncodedString()
$wa = get-SPWebApplication $WebAppName
$zp = $wa.ZonePolicies("Default")
$p = $zp.Add($account,"PSPolicy")
$fc=$wa.PolicyRoles.GetSpecialRole("FullControl")
$p.PolicyRoleBindings.Add($fc)
$wa.Update()
$wa.MigrateUsers($true)
$wa.ProvisionGlobally()
'Dynamics AX' 카테고리의 다른 글
Dynamics AX Hotfix 적용전 확인 사항 (0) | 2013.09.24 |
---|---|
Item의 Default Order Settings 일괄 생성 (0) | 2013.09.24 |
Listpage와 Formpart간의 데이터 전송 이슈ㅜ.ㅜ (0) | 2013.09.24 |
AX 2012 Resource Pages (0) | 2013.09.24 |
AX 2012 Data Tables & Table Groups (0) | 2013.09.24 |