Skip to content
Snippets Groups Projects

Sprint/201920

Merged Marcel Nellesen requested to merge Sprint/201920 into master
1 file
+ 0
13
Compare changes
  • Side-by-side
  • Inline
+ 0
13
@@ -61,17 +61,4 @@ $winAp = new-SPAuthenticationProvider -UseWindowsIntegratedAuthentication -Disab
Set-SPWebApplication -Identity $sharePointUrl -AuthenticationProvider $ip,$winAp -Zone "Default"
Write-Host 'Give Everyone Read Access'
$everyoneUserName = 'c:0(.s|true'
$everyoneDisplayName = 'Everyone'
Get-SPWebApplication $sharePointUrl | foreach {
$webApp = $_
$policy = $webApp.Policies.Add($everyoneUserName, $everyoneDisplayName)
$policyRole = $webApp.PolicyRoles.GetSpecialRole([Microsoft.SharePoint.Administration.SPPolicyRoleType]::FullRead)
$policy.PolicyRoleBindings.Add($policyRole)
$webApp.Update()
}
$ip
\ No newline at end of file
Loading