• Know more about me

Mai Omar Desouki

~ Senior Cloud Solution Architect @ Microsoft

Mai Omar Desouki

Category Archives: SharePoint Administration

Automate Variations in SharePoint 2013 using PowerShell & C#

14 Sunday Jul 2013

Posted by Mai Omar Desouki in PowerShell, SharePoint 2013, SharePoint Administration

≈ 20 Comments

Tags

C-sharp, Microsoft, Microsoft SharePoint, Multilingual, Multilingual sites, PowerShell, SharePoint, SharePoint 2013, Variations, Windows PowerShell


“Thanks to Waldek Mastykarz for his post, he posted about it but for SP 2010 and only in C#” but then I was able to convert it to Powershell, also thanks to “Eric Soo” for his reply but I was done already but thank you both.”

Let’s Start.. Automating variations settings and configuration so whenever a deployment is needed, you will be ready with your PowerShell scripts.

Manual deployment is time consuming as it is repetitive task, in this post I will let you know how to automate one of those many tasks when it comes to deployment.

SharePoint Variations has a UI which I will show you its steps now;

The steps in this post is for automation of variation in UI, in C# & finally in PowerShell.

  1. Go to “Site Actions” à“Site settings”;
  2. Under “Site collection administration”, click “Variation Settings”,

  3. The code below is in C# for the page above to change or update the “Variation Settings”;



  4. The same code but this time in PowerShell,


  5. Now we need to create labels; go back to “Site Settings”, under “Site Collection Administration” click “Variation Settings”;

  6. I have 2 labels, currently if this is your first time, it will be empty, click now “New Label” (as if you are telling SharePoint List to create new item) since we will do this in the code 😉


  7. Now same code but PowerShell for creating variation labels;



  8. Now to create hierarchies; you should see the labels added as below, click above them “Create Hierarchies”, before creating hierarchies, the values for the labels are “No”,

  9. After creating hierarchies, the values should be yes under “Hierarchy is Created”,
  10. To create Hierarchies in C#,


  11. Now let’s create hierarchies in PowerShell,


     

    Thank you and please write your comments or in case you have any questions.

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

Uploading large files to SharePoint

11 Saturday Aug 2012

Posted by Mai Omar Desouki in SharePoint 2010, SharePoint Administration

≈ Leave a comment


Sometimes we face a need when we upload large files like 100MB, and what happens is error or timeout.. so we can configure 2 different values to over come the timeout and the error.

Step 1: In Central Administration:

This is due a settings in Central Administration.

You can change this by opening to Central Administration > Application Management > select your web application and from ribbon click General Settings and choose “General Settings”

At the bottom, there is a section called “Maximum upload size” you will see the value is 50MB as this is the default .. from here you can change it.

Step 2: in IIS

We need to increase Time-Out settings in IIS 7.0

Right click your site and navigate to Advanced settings

Update SharePoint web.config

  1. The next thing we need to do is increase the execution timeout of the upload page that SharePoint uses (upload.aspx).  The executionTimeout attribute we are adding is an optional attribute, but necessary to prevent timeouts on the page.  It requires an int32 value, which will specify the amount of seconds that a request can execute before it’s shutdown by ASP.NET (the underlying framework of SharePoint pages).  Although this attribute is optional, default timeout for ASP.NET 2.0 is 110 seconds, so any uploads that are taking longer than that will result in the request being shutdown – thus we are going to add the attribute and increase it at the sametime.
  2. To add the value; Navigate your file browser to the SharePointRoot (hive) directory, typically: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS
  3. Open Web.config with a text editor (like Notepad), and add in the executionTimeout=”999999″parameter and value to the upload.aspx setting.

Update SharePoint Web Application web.config

  1. Next, we need to also add the executionTimeout setting to the web.config for our SharePoint Web Application specifically. located here: Inetpub\wwwroot\wss\VirtualDirectories\[YourSiteVirtualDirectoryFolder]
  2. Locate the web.config, and add the executionTimeout=”999999″ parameter and value to the httpRuntime setting

.You are ready to go now to support large file uploads to SharePoint

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

MOSS 2007 & SharePoint 2010 April CU is here !

01 Tuesday May 2012

Posted by Mai Omar Desouki in SharePoint 2010, SharePoint Administration, SharePoint Updates

≈ Leave a comment

Tags

MOSS 2007, SharePoint 2010


The product group released the April 2011 Cumulative Update for the SharePoint 2007 and 2010 product family.

The KB articles are available:

  • KB 2512783 – WSS 3.0
  • KB 2512782 – MOSS 2007
  • KB 2512804 – SharePoint Foundation 2010
  • KB 2512800 – SharePoint Server 2010
  • KB 2512801 – SharePoint Server 2010 with Project Server

The Full Server Packages for April 2011 CU are available through the following links:

  • Download WSS 3.0 April 2011 CU
  • Download MOSS 2007 April 2011 CU
  • Download SharePoint Foundation 2010 April 2011 CU
  • Download SharePoint Server 2010 April 2011 CU
  • Download SharePoint Server 2010 with Project Server April 2011 CU

Remember that after installing the fixes you need to run the SharePoint 2010 Products Configuration Wizard on each machine in the farm.

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

SharePoint 2010 Installation Error ! in Step 9

23 Monday Apr 2012

Posted by Mai Omar Desouki in SharePoint 2010, SharePoint Administration

≈ Leave a comment


I ran into this installation error for more then 4 hours ! I tried lots of stuff to make it & searched a lot till I found this article http://www.mattgrovesblog.com/2009/11/sp2010-installation-error.html#axzz1ssEbtjSV

so the exception I was getting was in step 9 is this;

Image

“An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: An error has occurred while validating the configuration settings.  An exception of type System.ArgumentNullException was thrown.  Additional exception information: The errorData argument cannot be null or zero length.“

After some diagnosis found this was due to the Windows firewall blocking PSConfig from talking to remote hosts!

So, what the error should say is:

Due to the Windows Firewall being enabled the PSConfig cannot create a connection to remote hosts (eg. your SQL server!!). Please allow PSConfig out through the firewall!

Having now created the firewall rule I am making progress!

Of course, some will simply disable Windows Firewall 😉

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

SharePoint 2010 vs SharePoint 2007 Security and Permissions: Are they the same?

26 Tuesday Jul 2011

Posted by Mai Omar Desouki in SharePoint 2010, SharePoint Administration, SharePoint Permissions

≈ Leave a comment

Tags

SharePoint 2010, SharePoint Administration, SharePoint Permissions


Are they the same? so let’s contribute about this question, I want to hear your experience …. what do you think? same?

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

Blog Visitors

  • 82,365 Visitors

Categories

  • About me (1)
  • Microsoft Teams (3)
    • SharePoint Online (1)
  • Microsoft Viva (1)
  • Migration (2)
  • OneDrive for Business (1)
  • Parents (1)
  • Power Platform (1)
  • SharePoint 15 (5)
  • SharePoint 2010 (56)
    • Content Types (1)
    • Developer Dashboard (1)
    • Document Set (1)
    • Events I am Speaking In (2)
    • External Lists (1)
    • FAQ (2)
    • FBA (1)
    • Form Based Authentication (1)
    • Integration of CRM 2011 with SharePoint 2010 (1)
    • JQuery (1)
    • Master Page (1)
    • My Site (1)
    • PowerShell (3)
    • SharePoint Administration (5)
    • SharePoint Branding (1)
    • SharePoint Customization (5)
    • SharePoint Designer (4)
    • SharePoint Designer Workflow (1)
    • SharePoint Events (2)
    • SharePoint Online (1)
    • SharePoint Permissions (1)
    • SharePoint Workflow (1)
    • User Profile (2)
    • User Profile Sync (1)
    • Videos (1)
    • WebParts (1)
    • Workflow (1)
  • SharePoint 2013 (91)
    • Cloud App (1)
    • Event Handler (1)
    • iPad (1)
    • IPhone (1)
    • Napa (1)
  • SharePoint Updates (1)
  • Visual Studio 2012 (3)
  • Viva Engage (1)
  • Yammer (1)

Tag Cloud

About me Document Set Events I am Speaking In FAQ FBA Form Based Authentication JQuery Master Page Microsoft Teams Migration My Site PowerShell SharePoint 15 SharePoint 2010 SharePoint 2013 SharePoint Administration SharePoint Branding SharePoint Customization SharePoint Designer SharePoint Designer Workflow SharePoint Events SharePoint Online SharePoint Permissions SharePoint Workflow User Profile User Profile Sync Videos Visual Studio 2012 WebParts Workflow

Calendar

March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Sep    

Archive

  • September 2022 (2)
  • August 2022 (2)
  • July 2022 (2)
  • March 2022 (1)
  • August 2021 (2)
  • September 2020 (2)
  • May 2020 (2)
  • April 2020 (6)
  • March 2020 (1)
  • September 2019 (2)
  • July 2015 (1)
  • May 2015 (3)
  • April 2015 (1)
  • March 2015 (1)
  • February 2015 (2)
  • January 2015 (1)
  • October 2014 (1)
  • September 2014 (3)
  • June 2014 (7)
  • May 2014 (5)
  • April 2014 (4)
  • March 2014 (3)
  • February 2014 (1)
  • January 2014 (2)
  • December 2013 (6)
  • November 2013 (5)
  • October 2013 (6)
  • September 2013 (5)
  • August 2013 (5)
  • July 2013 (5)
  • June 2013 (2)
  • May 2013 (2)
  • February 2013 (2)
  • January 2013 (1)
  • October 2012 (2)
  • September 2012 (7)
  • August 2012 (15)
  • July 2012 (5)
  • June 2012 (2)
  • May 2012 (4)
  • April 2012 (2)
  • March 2012 (1)
  • August 2011 (3)
  • July 2011 (15)

Blog at WordPress.com.

  • Follow Following
    • Mai Omar Desouki
    • Join 63 other followers
    • Already have a WordPress.com account? Log in now.
    • Mai Omar Desouki
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    %d bloggers like this: