Approve masterpage using PowerShell in SharePoint

Advertisement
           I have a problem with my custom masterpage approve, i have edited my masterpage, save the page and check-in the masterpage but i con't able to approvel the masterpage. To solve this issue i use one PowerShell Script.

 The following PowerShell Script will help you to approve the masterpage in SharePoint.

$SPWeb = Get-SPWeb "http://localhost/site/mysite"
$file = $SPWeb.GetFile("_catalogs/masterpage/v4_my.master")
$file.CheckIn("")
$file.Publish()
Advertisements
SHARE

Unknown

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment