Archive for the ‘Packaging and Deployment’ Category
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: code snippet, Packaging and deployment, Powershell, SharePoint 2010, SharePoint 2013 · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010, SharePoint 2013
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: Adding Web Part to page, Approve page, CheckIn page, CheckOut page, Powershell, SPFile, SPLimitedWebPartManager, Web Part · 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: Add-SPSolution, Deploying WSP with Powershell, Get-SPSolution, Install-SPSolution, JobExists, PowerShell 2.0, SharePoint 2010, Update-SPSolution · 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: Config file, PowerShell 2.0, Read xml file, SharePoint 2010 · 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: PowerShell 2.0, Powershell Logging, SharePoint 2010 · Posted in: Logging, Packaging and Deployment, Powershell, Sharepoint 2010
Copy or Replace list items in PowerShell
Introduction Based on the request from one of the audience of adicodes, I am providing one post which copies items from one list to another. If the destination list already has the item of the source list, the following code will update the item. If the item does not exist it will create a new […]
April 24, 2012
·
Adi ·
22 Comments
Tags: Client Object Model in SharePoint 2010, PowerShell 2.0, SharePoint 2010 · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010
PowerShell in Sharepoint 2010 – Basics Part 3
Introduction We learned how to use variables, arrays and hashtables in Powershell basics part 1. We learned how to use arithmetic, assignment and comparison operators in Powershell basics part 2. Now we will check how we can use logical operators and redirection operators Email this page
April 20, 2012
·
Adi ·
No Comments
Tags: > operator, -and operator, -or operator, 2> operator, PowerShell 2.0, SharePoint 2010 · Posted in: Operators, Packaging and Deployment, Powershell, Sharepoint 2010
PowerShell in Sharepoint 2010 – Basics Part 2
Introduction We learned how to use variable, arrays and hashtables in Powershell basics part 1. We will check how we can use arithmetic operators, assignment operators and comparision operators in powershell Email this page
April 16, 2012
·
Adi ·
No Comments
Tags: Powershell, PowerShell 2.0, Powershell Arthimatic operators, Powershell assignment operators, powershell basics, Powershell basics part2, Powershell comparision operators, Powershell operators, SharePoint 2010 · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010
Update, Delete & Copy list items with powershell in sharepoint 2010
Introduction This post will cover the list utilities such as how to update, delete and copy list items with powershell. With the generic code, now the handling list should be easy in powershell. Email this page
April 13, 2012
·
Adi ·
11 Comments
Tags: CAML, Copy list, Delete items in list with powershell, Get-SPList, GetItemById, GetItems, item.delete, SPQuery, Update items in List with powershell · Posted in: CAML, Packaging and Deployment, Powershell, Sharepoint 2010
Add items to fields with powershell in sharepoint 2010
Introduction Moving further from “Creating lists”, “Creating fields to List Part1” and “Creating fields to List Part2” with powershell; this post will cover how to implement SharePoint 2010 list utilities with powershell. We will learn how we can Add list items to various fields (columns) Email this page
April 12, 2012
·
Adi ·
4 Comments
Tags: Add items to fields with powershell, Add items to fields with powershell in sharepoint 2010, AddItem(), Choice column, Data and Time field, Get-SPList, GetItemById, ListItem.Update(), Number Column, Yes/No column · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010