sd = new-object System.collections.specialized.stringdictionary
$sd.add("to","me@website.anyextention")
$sd.add("from","SharePointCodi@SP.anyextention")
$sd.add("Subject","Sent from Outbound Server")
$web = get-spweb "https://mySharePoint"
$body = "This is our body<br/> OutBound <strong>HTML</strong> mySharePoint."
With the body prepared, we just need to call the:
SPUtility.SendEmail method to send our message.
[Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web,$sd,$body)
Wednesday, March 1, 2017
Anonymous Access Process
When a list or document library is created on an SharePoint external facing website,
anonymous access must be applied.
The steps required steps for successful implementation:
1. Open
PowerShell console and run as administrator and then run following 3 commands:
- get-spfeature -site https://WebSite
- $viewformlockdown = get-spfeature viewformpageslockdown
- disable-spfeature $viewformlockdown -URL https://WebSite
- get-spfeature -site https://WebSite
- $viewformlockdown = get-spfeature viewformpageslockdown
- disable-spfeature $viewformlockdown -URL https://WebSite
Note: The above commands will disable
anonymous page lockdown.
2.
Apply associated InfoPath form, list permissions
3.
From Open PowerShell console execute:
- Get-SPFeature | where { $_.DisplayName -eq "ViewFormPagesLockdown"}
- Enable-SPFeature -url http://WebSite/ -identity GUID -confirm:$true
- Get-SPFeature | where { $_.DisplayName -eq "ViewFormPagesLockdown"}
- Enable-SPFeature -url http://WebSite/ -identity GUID -confirm:$true
Note: The above commands will enable anonymous page lockdown.
4.
Login as administrator into WFE and
navigate to WEBSITE web.config
5.
Make a backup copy and Edit Web.config as
administrator
6.
Within web.config, search for “<location
path” and immediately after the ending “</location>” add the following
entry:
<location
path="ich/as/ts/Lists/Passing/AllItems.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
Note: The location path is the view in
which you want anonymous access to be applied.
Subscribe to:
Posts (Atom)