Archive for the ‘Powershell’ Category

PowerShell script – Create Managed Accounts and Service Application Pools

Introduction When you’re configuring your farm, one of the first things you need to do is create the managed accounts and service app application pools your farm will use. The following PowerShell lines will do that: Email this page

May 13, 2014 · Adi · No Comments
Tags: , ,  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013

Code Snippet – Uninstall and Install SharePoint Solution Package

Introduction Quick snippet of power shell script how to uninstall and install a wsp in SharePoint 2013 Email this page

January 19, 2014 · Adi · No Comments
Tags: , , , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010, SharePoint 2013

Tip – Using F3 key in PowerShell

Tip – Using F3 key in PowerShell window Pressing the F3 function key in the console window displays the last-executed statement on the current prompt line. Using the up and down arrows, you can page through the other previous statements. This is useful for repeating or correcting previous command entries. Email this page

December 7, 2013 · Adi · No Comments
Tags: , ,  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013, Tips and Tricks

Download Images from SharePoint Picture Library with PowerShell

Introduction In this post we will see a generic function to download images to local folder from SharePoint Picture Library (Image Library) through PowerShell script The script include Download images from SharePoint Picture Library. Folder structure is preserved as it is Email this page

August 4, 2013 · Adi · No Comments
Tags: , , ,  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013

Sharepoint Tip – PowerShell Design Surface

If you are looking for syntax or initial help for Power Shell, don’t forget to visit this link http://www.microsoft.com/resources/TechNet/en-us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html It gives the nouns and verbs and design surface where we can drag drop to get what is the syntax and also some useful links related to the topic. It is same help we get with […]

August 2, 2012 · Adi · No Comments
Tags: ,  · Posted in: Powershell, Tips and Tricks

Set Welcome page with PowerShell in SharePoint 2010

Introduction It is very common that we want to set our custom page as a welcome page. Its always advisable instead of doing this from UI, provide script that can used in any environments. In this post we will see the script how to set welcome page for a site using PowerShell Email this page

June 22, 2012 · Adi · One Comment
Tags:  · Posted in: Powershell, Sharepoint 2010

Adding Web Part to Page with PowerShell

Introduction In this post we will see a generic function to add a Web Part from local drive to a page in a particular Web Part zone using PowerShell script The script include Reading Web Part details from config file Check out the page Adds Web Part to the page Check in the page Approve […]

May 14, 2012 · Adi · 19 Comments
Tags: , , , , , , ,  · Posted in: Packaging and Deployment, Powershell, Uncategorized

Deploying WSP with Powershell

Introduction In SharePoint 2010 if we want to deploy the wsp; we will just right click the project and select deploy. SharePoint will take care of deploying with the given settings. But,we can’t deploy the package in the same way in other environments like UAT, PreProduction or Production (unless you are a super user having […]

May 1, 2012 · Adi · One Comment
Tags: , , , , , , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010, Sharepoint Deployment

Config file for Powershell script in SharePoint 2010

Introduction In this article we will see how we can set a config file for a powershell script. While running script file, rather than setting the global variable values directly in the script; it’s always advisable and best practice to have a config file. So, we will only change the config file based on the […]

April 28, 2012 · Adi · No Comments
Tags: , , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010

Logging in Powershell in SharePoint 2010

Introduction The most common and mandatory thing while coding is logging the results or logging the errors. The log file will give overview of what happened or check if anything went wrong. In this post I will provide you a generic function how to log information while working with the script Email this page

April 28, 2012 · Adi · No Comments
Tags: , ,  · Posted in: Logging, Packaging and Deployment, Powershell, Sharepoint 2010