Showing posts with label SharePoint 2010. Show all posts
Showing posts with label SharePoint 2010. Show all posts

Thursday, November 27, 2014

Manage Web Application Policy using SharePoint PowerShell Script

Remove a existing Web Application Policy using SharePoint PowerShell Script

# Get the Web Application Object
$webappobj = Get-SPWebApplication [Web Application URL]

# Return the Web Application policies and find the index of the policy which you would like to delete
$webappobj.Policies

# Put the index value and delete the policy
$webappobj.Policies.Remove([Index])

$webappobj.Update()

# Verify the policies again if it is deleted successfully
$webappobj.Policies

Add a new Web Application Policy using SharePoint PowerShell Script

# Get the Web Application Object
$webappobj = Get-SPWebApplication [Web Application URL]

# Create a policy role object with permission level like FullRead, FullControl etc.
$fullReadPolicyRole = [Microsoft.SharePoint.Administration.SPPolicyRoleType]::FullRead
$policyRole = $webappobj.PolicyRoles.GetSpecialRole($fullReadPolicyRole)

# Add the new web app policy with account name and account description
$policy = $webappobj.Policies.Add("TECHMM\SSWAIN", "Samarendra Swain")

# Bind the policy role to the new web  app policy
$policy.PolicyRoleBindings.Add($policyRole)

$webappobj.Update()

Friday, April 8, 2011

SharePoint 2010 : Display new form, edit form and display form of a list/Library in full page instead of in dialog box.

Go through the below steps to achive the same.
  • Open the List/Library.
  • Go to settings of the list/library.
  • Go to advanced settings.
  • Select 'No' in Dialogs section like below screen shot.






Now check the New form, Edit form and Display form for that list/library. You will able to see the forms in full page instead of dialog, like below screen shot.








Enjoy !

Wednesday, August 25, 2010

Enable rating feature for Document library in SharePoint 2010

Step 1: Go to the library settings of the document library.










Step 2: Click on 'Rating Settings' link of the document library.














Step 3: Click 'Yes' to enable rating feature for the document library.