Skip to main content

Posts

Showing posts with the label SharePoint

Project Server to Sharepoint Email sync program

Today I got a support case where alerts in SharePoint was not triggered, I quickly realized the problem was that the email address on the users was wrong in SharePoint and the admins only updated the emails in Project Server. Why the emails were not correct i do not know and did not look further into it. To solve the difference between SharePoint and Project Server I created this small C# script/program which synchronize user emails from Project Server into SharePoint. You will typically need a tool like this when you are creating your users manually in Project Server and the emails are synchronized from a inconsistent Active Directory. The program can be found here: Project Server -> SharePoint Emails sync The code for the program/script is as follows: static void Main(string[] args) { string pwa = ""; string webApp = ""; if (args.Length <= 0) { WriteLine("WRONG ARGS, PWA"); return; } pwa = args...

SharePoint Sites and Pages Powershell Warmup Script

Very nice little script i created to warmup all PWA pages and workspaces. Simply replace the SiteURL and the SitePages with your own values and place the code in a file named "SharePointWarmup.ps1". Run the script in Powershell or  Task Scheduler . $SiteURL = "http://intra/PWA/" $SitePages = "default.aspx", "projects.aspx", "ProjectBICenter/_layouts/15/xlviewer.aspx?id=/PWA/ProjectBICenter/Sample%20Reports/Projectum/DailyCommentsReport%20v7%20-%20PowerView.xlsx&Source=http%3A%2F%2Fintra%2FPWA%2FProjectBICenter%2FSample%2520Reports%2FForms%2FAllItems%2Easpx%3FRootFolder%3D%252FPWA%252FProjectBICenter%252FSample%2520Reports%252FProjectum%26FolderCTID%3D0x012000271EBEF22B819D4AA417BE3C68ADBA34%26View%3D%257B857402E5%252DF616%252D4DC2%252DA880%252D5CFC03D52EFA%257D", "Project%20Detail%20Pages/Project%20Information.aspx", "project%20detail%20pages/schedule.aspx", "project%20detail%20pa...

Run powershell from CMD or Task Scheduler

If you want to run a Powershell script against SharePoint on a timely schedule the Windows Task Scheduler is fast an simple approach. A simple example of this could be a SharePoint warm-up script which hits a number of sites on a regular schedule. However it is maybe not as straight forward to figure out the syntax for the Powershell command as you might think. Run in CMD The first step is to verify you can run the script from a command prompt. (you might want to start the command prompt as the account that is going to run the scheduled task). 1. Click start and type CMD, press enter. 2. Paste the following command and replace the script-path with the location of you own script.     Powershell -file "C:\PathToFile\SharePointWarmupScript.ps1" 3. Press enter and see the script being executed successfully. Create Task Schedule The next step is to create the scheduled task. 1. Click start and type Task Scheduler, press enter. 2. Left click Task Schedul...

Visual Studio 2013 Update 4 Release Notes (SharePoint notes)

A new update to Visual Studio 2013 is out, and as always there are a lot of general improvements and some improvements targeted SharePoint/Project Server. The most noticeable changes for SharePoint development (and SharePoint App development) is:  - Better IntelliSense for JavaScript  - JSON improvements (Loading and IntelliSense)  - Better HTML IntelliSense  - #Region support in HTML  - Razor bugfix  - XAML Designer bugfix (Silverlight) (Download it from: http://support.microsoft.com/kb/2994375 ) Complete release notes Team Foundation Server You can create trend charts and aggregate data from work item queries. When a new work item chart is created, you can see three new chart types: Stacked Area , Area , and Line . You can move items in the backlog to the top position ( Move to Top ) or to any position you want to determine ( Move to Position ). You can enter the "full-screen mode" for all the pages in the Backlogs hub. Yo...

Error occurred in deployment step 'Add Solution': Attempted to perform an unauthorized operation.

Received this error today when trying to create a SharePoint solution against a newly created site. My first problem was the site was configured to use a port which was already used by another web site. Therefore the site could not start at all. In my case both Default Web Site and SharePoint - 2000 was both using port 2000. Changing the port of Default Web Site and I was able to start the site. However now I still received the same error message. When browsing the site I realized I did not have access to the site. Giving access to my user and I was able to deploy the solution. To sum up this post:  - Check the site can start  - Check the site can be browsed  - Check your user have access to the site

Error occurred in deployment step 'Install app for SharePoint': Sideloading of apps is not enabled on this site

If you are starting to develop Apps for SharePoint or Project Server and you encounter the problem where you get the following error message: Error 1 Error occurred in deployment step 'Install app for SharePoint': Sideloading of apps is not enabled on this site. 0 0 SharePointApp_01 It is usually because the site you are developing against is not a SharePoint development site. The easiest way to solve the problem is of cause to create a new SharePoint Development site. However this is not always possible and you might have a lot of content on your site you want to test against. Furthermore if you are creating a Project Server App I have not found a way to create a Project Server Development site. Convert SharePoint (and Project Server) site into a Development site This can simply be done through Powershell. To be able to run Powershell agains online you will need to download  SharePoint Online Management Shell . The Powershell s...

Ask me anything...

In the comments section below feel free to a sk me any questions related to Microsoft Project Server, Project Server Programming (VBA/PSI/CSOM/Powershell), SharePoint or Project Portfolio Management in general.

How to move web front end server in SharePoint (2010/2013)

How to move web front end server in SharePoint When i install a new SharePoint farm i often make the mistake to run the configuration wizard on the application server first. this results in the Central Administration and all web applications to be hosted on the application server instead of the web front end server. follow this guide to solve the issue. The solution consists of 4 steps. 1. Unprovision the Central Admin from the application server 2. Provision the Central Admin to the web front end server 3. Update alternative access mappings And in more detail: 1. Unprovision the Central Admin from the application server Log in to application server and start the SharePoint Configuration wizard. Click Next/Yes and make sure you do not desconnect from the farm.    Click Yes to remove the Central Admin and web sites from the machine. If you do not see the above screen click "Advance Settings" on the summary page.   Run the wizard. 2. Provision ...

SharePoint 2013/Project Server 2013 - Remove or hide ribbon button

SharePoint/Project Server - Remove or hide ribbon button SharePoint and Project Server has a lot of function ality in the ribbon. Sometimes it can be beneficial to hide some of the buttons for the users so they do not get too confused. The correct way to hide ribbon buttons is to create a SharePoint feature in Visual Studio and create some XML to override the ribbon. However, if you are not that familiar with developing or Visual Studio it can be a prohibitive task to do. If you would like to go with the feature solution here is a link for a nice guide on how to do it : http://msdn.microsoft.com/en-us/library/office/ff408060(v=office.14).aspx In this post I will go through how to remove ribbon buttons only through the standard Script Editor webpart and Javascript. However you don’t have to know Javascript to complete the task. The downside of this approach is that your have to add the webpart on all pages where you want to remove the ribbon. Remove Ribbon Buttons ...