Cannot delete a document library

Log in to the SharePoint Server and execute the Powershell script below.

$web = Get-SPWeb("http://YourSite")

$list = $web.Lists["Documents"]

$list.AllowDeletion = $true

$list.Update()

You can now go to the Document Library and try deleting it or you can just run the line below.
$list.Delete()
Advertisements

Ghantt View Default Zoon

 

Add a Media ContentScript Editor Web Part and add the following code.

src=http://code.jquery.com/jquery-1.11.1.min.js” type=“text/javascript”>
type=“text/javascript”>
    $(document).ready(function () {
        var count = 0;
        setInterval(function () {
            if (count 2) {
                for (var i = 0; i 2; i++) {
                    if (WebPartWPQ2_JSGridController != null) {
                        WebPartWPQ2_JSGridController.ZoomOutGantt();
                        count++;
                    }
                }
            }

        }, 100);
    });

 

How to change the password of SharePoint service accounts

  • Change the password in AD Users and Computers as you would normally.
  • Log in to the SharePoint Server
  • Launch SharePoint Management Shell as an administrator.
  • Execute the following:
$username=”DOMAIN\spFarm”
$newpassword=ConvertTo-SecureString -String “password” -AsPlainText -Force
Set-SPManagedAccount -Identity $username -ExistingPassword $newpassword -UseExistingPassword:$true
  • This can take a minute or two to complete. There’s a lot to update here and these changes are intricate.
  • Now, open the Windows Server Services control panel on the SharePoint Server machine you are currently logged into, and then sort by the Log On As
  • Scroll down until you see the services having the server farm account (eg, spFarm).
  • For each of these services:
  • 1) verify that it is running;
  • 2) if its Startup Type has been changed to Disabled, change it back to Auto;
  • 3) if it is not running then start it;
  • 4) if on trying to start it, it prompts you for logon information, enter the appropriate logon info, including the new password, and then start it.
  • Go back to Central Administration and System Settings > Services on Server.
  • Start any service here that should be started but that stopped after you changed the password.

Remove the left navigation menu in SharePoint 2013

There are a few ways to do this.

This will work, but if you also want to get rid of the space this is not going to be a solution because “Site Contents” will be still on. Check my blog for information about hiding “Site Contents”.

– Open the  site in SharePoint Designer
– Uncheck Display Quick Launch under Settings
– Save

Even if you hide “Site Contents”, the space won’t be deleted. Try the following to delete the space used for the Left Navigation Menu if that is what you want.

Add the following code to your existing .css file if you are using one or add the code to a Script Editor webpart.

<style>
.ms-core-navigation { DISPLAY: none }
#contentBox { margin-left: 0px }
</style>

When you delete the left navigation menu, the web parts will be moved to the left. Modify the value of the margin-left if you want to add space between the left margin and the web part.