Recently was tasked with updating passwords on an older SharePoint 2007 farm. The fun part, Windows Server 2003 was the host OS. I hit a wall right out of the gate when I tried to run my STSADM command.
What the $#%##, I know I have full access to the farm and databases.
In Windows Server 2003, to launch the command prompt, right-click and select Run As. THEN, un-check Run this program with restricted access. Now run the STSADM command again.
As we all know, digging through SharePoint groups looking to see what users are in each, is no fun.
To solve this, I created a new List, and added the groups I wanted to monitor. Then, added a little PowerShell to update a column in the List with the members in each group.
Setup:
Create a new List.
New Columns:
SPgroup
Type: Person or Group
Allow selection of: People or Group
Users
Type: Multiple lines of text
Specify the type of text to allow:
Update Column:
Title
Require that this column contains information: No
The PowerShell script below does the following:
Get the SharePoint Site and List.
Loop through each item in the List.
Retrieve the value of the SPgroup field.
Truncate the Users field.
Loop through the users in the SPgroup.
Update the Users field with the values from SPgroup.
User works in the office for a few weeks, then leaves.
Same user returns a year later.
The user account was never removed from SharePoint, but the user was unable to access sites, where permissions were directly granted. Sites were Domain Users was implemented, the user could access sites.
On sites where the user was granted direct permissions, they would get the Error: Access Denied message box.
Was trying to modify the Search Service Topology and ran into a few errors.
Crawl component cannot be dismounted SharePoint
Search Application Topology Status stuck in Recovering
Both errors were cleared up by running the SharePoint Configuration Wizard on the server in question.
Some other errors that occured:
Retry of query component 0e5ab760-3fa2-462f-99a5-aab5c7655dad-query-7 has failed with error: The system cannot find the file specified.
0x80070002. It will be retried again in 64 seconds.
Query component 0e5ab760-3fa2-462f-99a5-aab5c7655dad-query-7 has been taken out of rotation due to this error: The system cannot find the file specified.
0x80070002. It will be retried in 4 seconds.
Simple question, how do you hide or remove a button from the ribbon in SharePoint?
In my case, I needed to remove the Upload Document and Open with Explorer buttons for my Form Library.
Open your site using SharePoint Designer. Once opened, navigate to your Library and edit your default view. (All Files -> Your Library -> Forms -> Your View.aspx, right click and select Edit File in Advanced Mode)
At the bottom of the screen, you will see three options Design, Split, and Code. Select the Split option.
In your code window, locate the <asp:Content ContentPlaceHolderId=”PlaceHolderMain” runat=”server”> tag.
Now, enter the code below in a line after the PlaceHolderMain tag.
Click save, then refresh your page. The Documents tab should now be missing the Upload Document button and the Library tab should be missing the Open with Explorer button.
How I’m finding the items that I want to hide.
using this link:
http://msdn.microsoft.com/en-us/library/ee537543(v=office.14).aspx
Find the item you want to hide (open with explorer).
Ribbon.Library.Actions.OpenWithExplorer
Then use the last part of the string OpenWithExplorer in your jquery.
*NOTE*
The Library I’m working with is locked down and users are not able to create their own Views. If someone creates a new View, the buttons will be available on that page.